- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¥»©«³Ì«á¥Ñ c_c_lai ©ó 2016-4-13 05:36 ½s¿è
¦^´_ c_c_lai
¥i¬OC¤j§ÚDDE¬O¦b²Ä¤G¦C¡A§Ú¤W¶Çªº¹Ï²Ä¤G¦C¦³¸ê®Æ¡A²Ä¤T¦C¤~¥X²{N/Aªº¤£¬O¶Ü??
ÂŤÑÄR¦À µoªí©ó 2016-4-12 22:26
¦b Excel ¤@¶}©l³s¤W DDE ®É¦]¨t²Î©|¥¼´Nºü (DDE»P¨é°Ó³nÅ鶡)¡A©Ò¥H²Ä¤G¦C±µ¦¬È¬° #N/A¡A ¤S¦]¤@¶}©l®É²Ä¤T¦C¸ê®Æ¬°ªÅ¡A- If .Row = 2 Or .Row > 2 And .Value <> Range(E.Name).Value Then ' (¦UªÑÁ`¶q¦³ÅÜ°Ê)
½Æ»s¥N½X .Row = 2 (¸ê®Æ³Ì¦ìµ§¬°²Ä¤G¦C) «h³w¦æ ( #N/A) ¼g¤J¡A±µµÛ·í²Ä¤G¦C±µ¦¬¨ìDDE±µ¦¬È (¹ê»Ú¼Æ¾Ú) «á¡A¦A¦¸Ä²µo
Worksheet_Calculate()¡A¦¹®É .Row > 2 And .Value <> Range(E.Name).Value «K²£¥Í¿ù»~°T®§¤F¡C- ' #N/A (DDE©|¥¼±Ò°Ê) -> Excel ¤@¶}©l³s¤W DDE ®É¦]¨t²Î©|¥¼´Nºü¡A¦¹®É±µ¦¬È¬° #N/A¡A
- ' ·í .Row = 2 (¸ê®Æ³Ì¦ìµ§¬°²Ä¤G¦C) ¤S³{²Ä¤G¦C¶Ç¤JȬ° #N/A¡A©Ò¥H«h³w¦æ±N (#N/A) ª½±µ¼g¤J¡F
- ' ±µµÛ·í²Ä¤G¦C±µ¦¬¨ìDDE¶Ç¤JÈ (¹ê»Ú¼Æ¾Ú) «á¡A¦A¦¸Ä²µo Worksheet_Calculate()¡A
- ' ¦¹®É .Row > 2 And .Value <> Range(E.Name).Value ©ó¤ñ¹ï®É«K²£¥Í¿ù»~°T®§¤F¡C
- ' ----------------------------------------------------------
- ' Cells(Rows.Count, cts).End(xlUp).Value : ¿ù»~ 2042 : Variant/Error
- ' °õ¦æ¶¥¬q¿ù»~ '13'¡G «¬ºA¤£²Å¦X
- ' ----------------------------------------------------------
½Æ»s¥N½X ¬°¤F½T«O¥¼¨Ó¸ê®Æ§¡¯à¥¿½T³B²z¡A¦b·sªº "ªÑ²¼10C.xlsm" ªºµ{¦¡ùØ¥[¤J¤F¤@¦æ§PÂ_¡C- For cts = 4 To 400 Step 4
- Set Rng = Cells(2, cts)
- If IsError(Rng.Value) Then Exit Sub ' Á`¶q¦p¬°¿ù»~ (#N/A¡B#REF!)¡A¸õÂ÷¤£°µ³B²z
½Æ»s¥N½X
ªÑ²¼10C.rar (21.99 KB)
¤µ¦½Ðª½±µ¥Î³o¤ä·sªº "ªÑ²¼10C.xlsm" °µ´ú¸Õ§a¡I |
|