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

[µo°Ý] ¤£¦P¤u§@ï½Æ»s¸ê®Æ

[µo°Ý] ¤£¦P¤u§@ï½Æ»s¸ê®Æ

§Ú·Q±NEXCEL(A)¯S©wÄæ¦ìCOPY¨ìEXCEL(B)

¦]¬°°Ñ·ÓªºÀÉ®×EXCEL(A)©ñ¦b¬Y¯S©w¦a¤è¥B·|ÀH®É§ó·s

©Ò¥H§Ú·Q¥H¸ô®|ªº¤è¦¡¨Ó°õ¦æ

ÅýEXCEL(B)¨C¦¸¤@¶}±Ò´N¥i¥H¦Û°Ê§ó·s

Sub owner()

    Cells(1, 1).Select
    Do
    Cells(1, 1).Offset(1).FormulaR1C1 = _
        "='C:\Documents and Settings\***\®à­±\***\[ª¬ºAªí_2013.xls]sheet1'!$RC[11]"
    ActiveCell.Offset(1).Select
    Loop Until ActiveCell.Offset(-1).Value = ""
   
End Sub

§Ú¥Î¨ç¼Æªº¤èªk
¤£ª¾³o¼Ë°õ¦æ¬O¤£¬O¥¿½Tªº

¸ê®Æ¥i¥H¤ñ¹ï¥¿½T
¦ý¬O§Ú¥u­n¶]¨ì
Cells(1, 1).Offset(1).FormulaR1C1 = _
        "='C:\Documents and Settings\***\®à­±\***\[ª¬ºAªí_2013.xls]sheet1'!$RC[11]"

¥L´N·|­n§Ú¶}±ÒEXCELÀÉ®×
§Ú°Ñ·Óªºª¬ºAªí¤]¨S¦³§ó°Ê
¤£ª¾¹D¬°¤°»ò???

·Ð½Ð¤j¤jÀ°¦£   ÁÂÁ  : )

¦U¦ì¤j¤j©êºp

´ú¤F´X¦¸­ì¨Ó¬O¤p§Ì§Ú¦Û¤v§â¸ô®|¥´¿ù@@
¿ù¤F¤@­Ó³æ¦r= =


¥t¥~½Ð°Ý¤j¤j
¦³¤ñ¸ûÁo©úªº¤è¦¡¶Ü???
³o¼Ë¼g¬Ý°_¨Ó¦n¹³¦³ÂI²Â ¨þ¨þ

ÁÙ¦³ §Ú¯à¤£¯à¥Î¸ô®|ªºªí¥Ü¤è¦¡¨ÓŪ¨ú¤u§@ï¸Ì­±¯S©wÄæ¦ìªº­È
(¦b»yªk¤W¥[¤Wµ´¹ï¸ô®|ªºªí¥Ü¤è¦¡)
¦Ó¤£¬O¹³
workbooks("OOO.xls").worksheets(1).range("A1")³o¼Ë


ÁÂÁ¦U¦ì¤j¤j   : )

TOP

¦U¦ì¤j¤j©êºp

´ú¤F´X¦¸­ì¨Ó¬O¤p§Ì§Ú¦Û¤v§â¸ô®|¥´¿ù@@
¿ù¤F¤@­Ó³æ¦r= =


¥t¥~½Ð°Ý¤j¤j
¦³¤ñ¸ûÁo©úªº ...
li_hsien µoªí©ó 2013-11-29 16:05

thisworkbook.path ¥i¤Þ¥Î·í«eÀɮ׸ô®|
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

¦^´_ 3# kimbal

ÁÂÁªO¤j

¤£¹L§Ú³]­pªº¤è¦¡¬O
¤u§@ïA¤@¥´¶}­n°Ñ·Ó¤u§@ïB¡B¤u§@ïC¡B¤u§@ïD
¨Ó§ó·s¸ê®Æ¤u§@ïAªº¸ê®Æ
©Ò¥H§Ú¥Î¸ô®|ªº¤è¦¡¼g
³o¼Ë¬O¤£¬O´N¤£¯à¥ÎªO¤jªº¤è¦¡¤F


¥t¥~ §Ú·Q½Ð°Ý¯à¤£¯à¥Î¸ô®|ªºªí¥Ü¤è¦¡
¨ÓŪ¨ú¤u§@ï¸Ì­±¯S©wÄæ¦ìªº­È
(¦b»yªk¤W¥[¤Wµ´¹ï¸ô®|ªºªí¥Ü¤è¦¡)
¦Ó¤£¬O¹³
workbooks("OOO.xls").worksheets(1).range("A1")³o¼Ë
¯à¤£¯à¥ÎC:\Documents and Settings\OOO\XXX\ABC.xls¤§Ãþªº¤è¦¡ªí¥Ü

§ÚŪ¨ú¤ñ¹ïªº¤è¦¡
¬O¥Îvlookupªº¤è¦¡
  1.     Cells(i, 5).FormulaR1C1 = _
  2.         "=If('C:\Documents and Settings\OOO\XXX\ABC.xls]Hsien'!RC[10]="""","""",'C:\Documents and Settings\OOO\XXX\ABC.xls]Hsien'!RC[10])"
½Æ»s¥N½X
½Ð°Ý¤@¤U
R[5]C[6]
[ ] ¸Ì­±ªº­È¦³¿ìªk±aÅܼƶÜ???


ÁÂÁ¦U¦ì¤j¤j  :  )

TOP

        ÀR«ä¦Û¦b : ¡i®É¤é²öªÅ¹L¡j¤@­Ó¤H¦b¥@¶¡°µ¤F¦h¤Ö¨Æ¡A´Nµ¥©ó¹Ø©R¦³¦hªø¡C¦]¦¹¥²¶·»P®É¶¡Ävª§¡A¤Á²ö¨Ï®É¤éªÅ¹L¡C
ªð¦^¦Cªí ¤W¤@¥DÃD