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

[µo°Ý] ¦p¦ó¶}±Ò¥t¤@excelÀɪºªí³æ

[µo°Ý] ¦p¦ó¶}±Ò¥t¤@excelÀɪºªí³æ

¥»©«³Ì«á¥Ñ minshing ©ó 2011-7-17 11:06 ½s¿è

¤p§Ì­è¾Çvba
½Ð¦U¦ìÀ°­Ó¦£!!ÁÂÁÂ!!
§Ú¦³¨â­ÓexcelÀÉ(a.xlsm¤Îb.xlsm)
aÀɪº¥\¥Î¬O¤u§@¬yµ{
bÀɪº¥\¥Î¬O¸ê®Æ®w¡A§Ú¦bbÀɤw¸g°µ¦n¤@­Ó¿é¤Jªí³æuserform1
§Ú·Q¦baÀɬY¤@¬yµ{¥s¥XbÀɤºªºuserform1¥X¨Ó¿é¤J¸ê®Æ¨Ï¥Î(µù:userform1¤w¹ïÀ³¦nbÀɤºªºsheet)
¦ý¬O¤@ª½°õ¦æ¿ù»~
§Úªºµ{¦¡½X¦p¤U¡A³Â·ÐÀ°¤p§Ì§ó¥¿¿ù»~¡AÁÂÁÂ!!
(¿ù»~¦æ:Workbooks(Filename).UserForm1.Show )

Sub ¶}±Ò¿é¤Jªí³æ()
    p = ThisWorkbook.Path
    Filename = "b.xlsm"
    Dim w As Workbook, c As Boolean
    For Each w In Workbooks
    If LCase(w.Name) = Filename Then c = True: Exit For
    Next
    If Not c Then Workbooks.Open Filename:=p & "\" & Filename
    Workbooks(Filename).UserForm1.Show
End Sub

¦^´_ 1# minshing
Private Sub Ex()   'bÀÉ «Ø¤@¨p¥Î¥¨¶°
     UserForm1.Show
End Sub
Run "bÀÉ!ThisWorkbook.Ex"                 'bÀɪº¥¨¶° ¦p¦bª«¥ó¼Ò²Õ(¦p¬O  ThisWorkbook )

Run "bÀÉ!Ex"                                                'bÀɪº¥¨¶° ¦p¦b¤@¯ë¼Ò²Õ(Module1 )

TOP

¥i¥H¤F!!
«D±`·PÁ¤j¤j¸Ñµª!!·P®¦³á!!

TOP

        ÀR«ä¦Û¦b : ¤£­nÀH¤ß©Ò±ý¡A­nÀH¤ß±Ð¨|¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD