ªð¦^¦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 : ¡i¥Í©R¦b©I§l¶¡¡j¦òªû»¡¡G¡u¥Í©R¦b©I§l¶¡¡C¡v¤HµLªkºÞ¦í¦Û¤vªº¥Í©R¡A§óµLªk¾×¦í¦º´Á¡AÅý¦Û¤v¥Ã¦í¤H¶¡¡C¬JµM¥Í©R¥h¨Ó³o»òµL±`¡A§Ú­Ì§óÀ³¸Ó¦n¦n¦a·R±¤¥¦¡B§Q¥Î¥¦¡B¥R¹ê¥¦¡AÅý³oµL±`¡BÄ_¶Qªº¥Í©R¡A´²µo¥¦¯uµ½¬üªº¥ú½÷¡A¬M·Ó¥X¥Í©R¯u¥¿ªº»ù­È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD