- ©«¤l
- 258
- ¥DÃD
- 77
- ºëµØ
- 0
- ¿n¤À
- 385
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taiwan
- µù¥U®É¶¡
- 2010-8-8
- ³Ì«áµn¿ý
- 2021-1-25
|
¥»©«³Ì«á¥Ñ yangjie ©ó 2017-12-1 09:23 ½s¿è
¦^´_ 2# adrian_9832
¥Dn¬On¸õÂ÷Excel¦w¥þ©Ê¿ï¶µ
¦p¤U
Sub Main()
Dim f1
f1 = App.EXEName
Dim fso, f As Object
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFile(f1 & ".exe")
Dim n
n = fso.GetParentFolderName(f.Path)
Dim objXLApp
Dim objXLBook
Set objXLApp = CreateObject("Excel.Application")
objXLApp.Visible = True
Set objXLBook = objXLApp.Workbooks.Open(n & "\M1 ¸ê®Æ®w\" & f1 & ".xls")
End Sub
VB¥i¦³ªk¤l³B¸Ì¸ê®Æ§¨µe±©Î¨Ï©Ò¶}Excel¬°³Ì¤W¼h?
(Y¥Î*.xlsª½±µ¶},©Ò¶}Excel¬°³Ì¤W¼h¨S°ÝÃD)
(¦¸n§Ú¦b³B¸Ì¤@Ó1.xls ¥iÅý¨â¤H¦P®É¶},³B²z2.xls¸ê®Æ¦Ó°{Á×°ßŪ) |
|