- ©«¤l
- 552
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 578
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-2-8
- ³Ì«áµn¿ý
- 2024-7-9
|
¦^´_ 1# linlin00
Workbooks.Openn§¹¾ãªº¸ô®|©MÀɦW¡A¦ý Workbooks("¬¡¶Ã¯¦WºÙ")?¤£¥Î¸ô®|¡A?¥unÀɦW´N¥i¥H
¦p¤Uµ{¦¡¸ÑÄÀ¡G- For i = 1 To 2
- fpath = ThisWorkbook.ActiveSheet.Cells(i, 1) '¸ô®| "C:\Documents and Settings\Administrator\My Documents\"
- ffile = ThisWorkbook.ActiveSheet.Cells(i, 2) 'ÀɦW "vbatest2.xls"
- Workbooks.Open (fpath & ffile)
- Workbooks("ffile").Sheets ("¤u§@ªí1")...
- ...
- ...¨ä¤º®e¦Û¦æ¶ñ¸É
- ...
- ...
- Workbooks("ffile").Close True
- Next
½Æ»s¥N½X |
|