- ©«¤l
- 150
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 215
- ÂI¦W
- 0
- §@·~¨t²Î
- windows xp
- ³nÅ骩¥»
- sp3
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2013-7-15
- ³Ì«áµn¿ý
- 2024-10-2
|
[µo°Ý] ¦p¦ó¨ú±o¤v¶}±ÒEXCEL±±¨îÅv,°õ¦æ¥~³¡ÀÉ®×¥¨¶°
½Ð±Ð¤j¤j
ªþÀÉ1 & 2¥Ñ¨âÓEXCEL¦U§O¥´¶}«á,
°õ¦æ1.xlsb OpenApp¥¨¶°,¦p¤Uµ{¦¡½X,
Àɮצb¤v¶}±Òªºª¬ºA¤U,¦p¦ó¨ú±o¤v¶}±ÒEXCEL±±¨îÅv?,°õ¦æ2.xlsb´ú¸Õ¥¨¶°
x.rar (21.65 KB)
- Private Sub OpenApp()
- On Error Resume Next
- Err.Clear
- Open ThisWorkbook.Path & "\" & 2 & ".xlsb" For Append As #1
- Close #1
- If Err.Number > 0 Then '¦¹¬¡¶Ã¯¤v³Q¶}±Ò
- '¦¹¬¡¶Ã¯¤v³Q¶}±Ò,¦¹³Bn¦p¦ó¨ú±o¤v¶}±ÒEXCEL±±¨îÅv?,°õ¦æ´ú¸Õ¥¨¶°
- app1.Run "´ú¸Õ"
- Else
- Set app1 = CreateObject("Excel.Application")
- Set book1 = app1.Workbooks.Open(ThisWorkbook.Path & "\2.xlsb")
- app1.Visible = True
- app1.Run "´ú¸Õ"
- End If
- Set app1 = Nothing
- Set book1 = Nothing
- End Sub
½Æ»s¥N½X |
|