- ©«¤l
- 472
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 485
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- MS Office
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2010-7-4
- ³Ì«áµn¿ý
- 2014-12-28
|
¦U¦ì«e½ú¡A²{¦b¦]¤u§@¤W»Ýn
§Ú¦b a.xls ¤À¶1¡A©ñÓ«ö¶s
ÂI¥L¥i¥H¶}±ÒÀɮסA¬d¾\®Ñ¤W¦³Ó©R¥O¥i¥Î
...
a703130 µoªí©ó 2012-8-21 18:43 - Sub test()
-
- Dim wbNew As Workbook
- Dim result As Boolean
- '§AÀ´ªº
- result = Application.Dialogs(xlDialogOpen).Show("*.xls")
-
- '¦pªG¨ú®ø´N¤U¯Z
- If Not (result) Then
- Exit Sub
- End If
-
- '§ä¥X襴¶}ªºWORKBOOK
- Set wbNew = ActiveWorkbook
-
- '¤@¶¤@¶¦a§Û¨ìÂÂWORKBOOK, THISWORKBOOK=ÂÂWORKBOOK
- For Each s In wbNew.Sheets
- s.Copy after:=ThisWorkbook.Sheets(ThisWorkbook.Sheets.Count)
- Next
-
- 'Ãö±¼·sWORKBOOK
- wbNew.Close (False)
- End Sub
½Æ»s¥N½X |
|