excel 2007/2010¶}±Òexcel 2003½s¿èªºvba¬Û®e©Ê°ÝÃD
- ©«¤l
- 102
- ¥DÃD
- 17
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-5-16
- ³Ì«áµn¿ý
- 2020-9-2
|
excel 2007/2010¶}±Òexcel 2003½s¿èªºvba¬Û®e©Ê°ÝÃD
쥻¬O¦b2003Àô¹Ò¤U¼¶¼gªº
¶]°_¨Ó¨S°ÝÃD
¦ý¬O¤µ¤Ñ±NÀɮײ¾¦Ü¥t¤@¥x¹q¸£¥Hexcel 2010¶}±Ò®É¥X²{¿ù»~
¥H2007¶}±Ò¥ç¦P
" °õ¦æ¶¥¬q¿ù»~:'1004':
À³¥Îµ{¦¡©Îª«¥ó©w¸q¤Wªº¿ù»~ "
µo¥Í¿ù»~ªºµ{¦¡½X¬°
Workbooks("Trading.xls").Sheets("DataSource").Range("J" & Rows.Count).End(xlUp).Row
¸g¹L´ú¸Õ¤§«á
µo²{À³¸Ó¬O¦]¬°¦³¨ä¥¦¬¡¶Ã¯¶}°_©ÒP(¥»¨Ò¤¤¬O¨Ó¦Û©ó¥ý«e¨Ï¥Î¤Fapplication.workbooks.add)
¦b쥻2003¤U
workbooks("Trading.xls")·|±qTrading.xls³oÓÀɮתº¤u§@ªí"DataSource"¨ú±oÀx¦s®æ¸ê®Æ
¦ý¬O¨ì¤F2007/2010«hµLªk
¥H¤U¬O§Úªº±À´ú:
´ú¸Õ¤@¬qµ{¦¡½X- Sub s()
- MsgBox Workbooks("Trading.xls").Sheets("DataSource").Range("J" & Rows.Count).End(xlUp).Row
- MsgBox CStr(Workbooks("Trading.xls").Sheets("DataSource").Cells(2, 10))
- End Sub
½Æ»s¥N½X ¥i¥H°õ¦æ¨Ã¦^³ø¥¿½T¸ê®Æ
¦ýYActiveWorkbook ¤£¬O Trading.xls®É «hµo¥Í¿ù»~
¹³¬O¥t¥~¶}±Ò¤@ÓEXCELÀÉ(¦^¨ìì¥ýÀɮסA·s¼W¬¡¶Ã¯®É¡AActiveWorkbook·|Åܦ¨·s¼Wªº¬¡¶Ã¯)
·Q½Ð°Ý¦¹¬Û®e©Ê°ÝÃD(§Ú²qªº¹ï¶Ü?)¤Î¸Ñ¨M¿ìªk
·P¿E¤£ºÉ!! ¤£µM¥u¦n§ä2003¨ÓÄé¤F.... |
|
|
|
|
|
|
- ©«¤l
- 102
- ¥DÃD
- 17
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-5-16
- ³Ì«áµn¿ý
- 2020-9-2
|
¦^´_ 2# GBKEE
·PÁª©¤j!
³o¬qµ{¦¡½X¸g´ú¸Õ«á¥i¥H¨Ï¥Î
¥i¬O§Ú¤£À´³o¸ò쥻ªº®t§O¦bþ...? ¬°¤°»ò³o¼Ë´N¥i¥H
©Ò¥H2007¥H«áªºª©¥»¤£¯à¨Ï¥Îworkbooks(index)¤èªk¤Þ¤J¸ê®Æ¶Ü...." |
|
|
|
|
|
|
- ©«¤l
- 102
- ¥DÃD
- 17
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-5-16
- ³Ì«áµn¿ý
- 2020-9-2
|
¥»©«³Ì«á¥Ñ lalalada ©ó 2012-8-5 15:43 ½s¿è
¦^´_ 4# GBKEE
·PÁª©¤j!
´ú¸Õ msgbox workbooks(2).name ·|¥¢±Ñ
¥u¦³ msgbox workbooks(1).name ¥i¥H
§Ú·QÀ³¸Ó¤£¬Orowªº°ÝÃD
«á¨Ó¬d¨ì¤F³oÓ http://support.microsoft.com/kb/928283/zh-tw
¨Ì·Ó¨ä«ü¥Ü¥[¤J Application.DefaultSaveFormat = xlWorkbookNormal
³ºµM´N¥i¥H¥Î¤F= =
¦ý¤£¬O«ÜÀ´µo¥Í¤°»ò¨Æ´N¬O¤F
¤j·§¸ò2007¤§«áÅܦ¨xlsm/xlsx¦³Ãö?
¦Ó¥B¦b2007¤§«á·|µo²{¥i¥H¶}¥X¨âÓ¥H¤WªºVBA½s¿è¾¹
¥t¥~§Úµo²{¦b2007¤¤ ¨Ï¥Î.SaveAs¤èªk¦n¹³µLªkÀx¦sÀɮצ¨.xlsm/.xlsx |
|
|
|
|
|
|