ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¤u§@ªí¦P¨B¼W¥[¸ê®Æ

¦^´_ 20# oshi


    §A¥i¥H¨Ï¥Îoffset
     Sheets("sheet2").Range(tar).offset(0,2) = .Value

TOP

¦^´_ 21# owen06


    owen¤j~

§Ú¤S¹J¨ì¤@­Ó°ÝÃD¬O~
§Ú¦³¨â­Ó¤u§@ªí(A,B)³£·Q­n¦P¨B¼W¥[¸ê®Æ¨ì¤u§@ªíC

·í¥u¦³¤@­Ó¤u§@ªíªº®É­Ô¡A³£¥i¥H¥¿±`¦P¨B¼W¥[¸ê®Æ
¥i¬O¦pªG§Ú§â¦P¤@²Õ¥N½X¶K¦bA,B¤u§@ªí¤º¤§«á¡A¦P¨B¸ê®Æ´N·|¸õ¥X" Run time error '1004' "
¦pªþ¹Ï

½Ð°Ý­n«ç»ò¸Ñ¨M³o­Ó°ÝÃD©O?

Image 001-1424708209.png (4.6 KB)

error

Image 001-1424708209.png

TOP

¦^´_ 22# oshi


    ¯à§_ªþ­ÓÀɮפW¨Ó¡A¥H«K¤F¸Ñ°ÝÃD©Ò¦b¡C

TOP

¦n¹³¤£¯à¾ã­ÓÄæ¦ì½Æ»s¶K¤W¡A§Ú¦pªG¥u½Æ»s¦³¸ê®ÆªºÄæ¦ì´N¤£·|³øerror
¦pªG§Ú¬Oª½±µÂI¿ïexcel¤W­±ªºÄæ¦ìª½±µÂI½Æ»s´N·|³ø¿ù

TOP

¥»©«³Ì«á¥Ñ owen06 ©ó 2015-2-24 11:32 ½s¿è

¦^´_ 24# oshi


    §Úªºoffice 2013¤£·|§o¡K
    ¤£µM§A¦bwith targetªº¤W­±¥[­Ó¡yon error resume next¡z¸Õ¸Õ¬Ý
    ¥i¬O³o¼Ë¡A¦n¹³¾ã­Ó¶K¤Wªº¸ê®Æ¤]¤£·|¦P¨B¹L¥h¡C

TOP

¦^´_ 25# owen06

«á¨Ó§ï¥Î currentRegionªº¤è¦¡¸Ñ¨M¤F
  1. Private Sub Worksheet_Change(ByVal Target As Range)
  2. With Target
  3. Range("A:B").CurrentRegion.Copy
  4. Sheets("Comparing").Range("A2").PasteSpecial Paste:=xlPasteValues
  5. End With
  6. End Subs
½Æ»s¥N½X

TOP

¤£¹L¦pªG¹J¨ì§ó·sªº¸ê®Æ¶q¤ñ¥Ø«e¤Ö¦n¹³¨S¿ìªk²M°£Âªº¸ê®Æ

´N·|§âªºÄæ¦ì¯d¦b¨ºÃäQQ

¦³¤°»ò¦n¤èªk¥i¥H¸Ñ¨M¶Ü?

TOP

¦^´_ 27# oshi


    ¦b·s¸ê®Æcopy¹L¥h¤§«e¡A¥ý§â¸ê®Æ¨º±iªíªºa:b¥þ³¡¥ý²M±¼¡A
    ¦A¶K¤W·s¸ê®Æ¡A´N¦æ¤F¤£¬O¶Ü¡H

TOP

«Ü¦³·N¸qªº½d¨Ò

TOP

¥»©«³Ì«á¥Ñ HUNGCHILIN ©ó 2015-2-27 02:13 ½s¿è

ªü¦N«Ü¤[¨S¹q¸£¤F
¦pªG¤£¥Î·Q¥Î¨ç¼Æ

1.¤â°Êªº¸Ü.¥Î¶i¶¥¿z¿ï
2.¥¨¶°´N¿ý»s¤@­Ó¶i¶¥¿z¿ï.§Y¥i¸Ñ¨M
µ{¦¡Â²µu«Ü¦h.¤]²LÅã©öÀ´.­n¤â°Ê»P¥ÎVBA§¡¥i¾Þ§@

·íµM±z¤]¥i¥H§â ¥¨¶° ©ñ¦b Private Sub Worksheet_Change(ByVal Target As Range) ¤º

Book1.zip (14.03 KB)

TOP

        ÀR«ä¦Û¦b : ­n¤ñ½Ö§ó¨ü½Ö¡D¤£­n¤ñ½Ö§ó©È½Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD