ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦p¦ó¤U«ü¥O ¥i±N©Ò¦³µøµ¡¦¬°_

[µo°Ý] ¦p¦ó¤U«ü¥O ¥i±N©Ò¦³µøµ¡¦¬°_

½Ð±Ð½Ñ¦ìª©¥D¤j¤j:
VB¤¤·Q¦bSub Main() ªº ²Ä¤@¦C ¤U«ü¥O ±N©Ò¦³µøµ¡¦¬¨ì³Ì¤U­±ªº¤u§@¦C¸Ì
(¥ØªºÅý±µ¤U¨Ó  ¥»µ{¦¡©Ò¤Þµoªºµøµ¡ ¦b³Ì¤W¼h)
Sub Main()
    «ü¥O '±N©Ò¦³µøµ¡¦¬¨ì³Ì¤U­±ªº¤u§@¦C¸Ì
    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)
    Set objXLApp = CreateObject("Excel.Application")
    objXLApp.Visible = True
    objXLApp.Workbooks.Open (n & "\" & f1 & "¸ê®Æ®w\" & f1 & ".xls")
End Sub

·q½Ð¨ó§U  À³¦p¦ó¤U«ü¥O?
ÁÂÁ«ü¾É   ÁÂÁÂ

¦p¦ó¨Ïuserform1¥X²{¬°¦b³Ì¤WÀYªºµøµ¡?

½Ð±Ð¤j¤j:
§Ú¦b®à­±¶}¤@µøµ¡(ÀÉ®×Á`ºÞ)¡A
ÂùÀ»A.exe¥h±Ò°ÊA.xls,
book_open before·|¦Û°Ê°õ¦æapplication.visible=false,userform1.show
µ²ªG¬O¦]¬°userform1ª©­±¤p,±`¸ú¦bµøµ¡(ÀÉ®×Á`ºÞ)ªº«á­±¡AÅܬݤ£¨ì¡A
¦p¦ó¨Ïuserform1¥X²{¬°¦b³Ì¤WÀYªºµøµ¡???
(¥Øªº¤£Åý¨Ï¥ÎªÌ»~¥H¬°¤£¨£¤F,¥H¬°¨S¦³¤ÏÀ³)
·Ð´o«Ü¤[,·q½Ð±Ð¾É,ÁÂÁÂ

TOP

¦^´_ 1# yangjie
¦Û¦æÃä½®ÑÃätry  µo²{¦¹¤èªk¤£¿ù  ¤j®a°Ñ¦Ò
Private Sub UserForm_Initialize()
        Dim mysh As Object
        Set mysh = CreateObject("Shell.Application")
        mysh.minimizeAll
        Set mysh = Nothing
End Sub

TOP

¦^´_ 1# yangjie
¦Û¦æÃä½®ÑÃätry  µo²{¦¹¤èªk¤£¿ù  ¤j®a°Ñ¦Ò
Private Sub UserForm_Initialize()
        Dim mysh As Object
        Set mysh = CreateObject("Shell.Application")
        mysh.minimizeAll
        Set mysh = Nothing
End Sub

TOP

        ÀR«ä¦Û¦b : ¦h°µ¦h±o¡C¤Ö°µ¦h¥¢¡C
ªð¦^¦Cªí ¤W¤@¥DÃD