- ©«¤l
- 5
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 11
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-7-17
- ³Ì«áµn¿ý
- 2013-12-1
|
[µ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 |
|