- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2014-4-13 08:41 ½s¿è
¦^´_ 1# jason77456
µ{¦¡°Ï¦³«Ü¦h¬Û¦Pªº´£°Ý,(·s·|û½Ð¦h·j¯Á,¤F¸Ñ.)
CALL°õ¦æ ¤u§@ªíª«¥ó¼Ò²Õ¤¤ªºµ{¦¡.¥²¶·«ü©ú©Ò°õ¦æµ{¦¡ªº¤u§@ªíª«¥ó¼Ò²Õ¦WºÙ.
CALL°õ¦æ ¤@¯ë¼Ò²Õ¤¤ªºµ{¦¡,¦p¬°¤½¥Îµ{¦¡«h¤£»Ý«ü©ú¼Ò²Õ¦WºÙ
Sheet1ªºµ{¦¡- Option Explicit
- Sub Ex()
- Module1_A
- Sheet2.EX_A
- Call Sheet2.EX_A
- Run "Sheet2.EX" 'Run ¥i©I¥s¨p¥Îµ{¦¡
- Run "Module1.Module1_B" 'Run ¥i©I¥s¨p¥Îµ{¦¡
- End Sub
½Æ»s¥N½X Sheet2ªºµ{¦¡- Option Explicit
- Private Sub Test()
- Ex '°õ¦æ³o¼Ò²Õ¤ºªº ¨p¥Îµ{¦¡
- End Sub
- Private Sub Ex() 'Private '¼Ò²Õ¨p¥Îµ{¦¡¶È³o¼Ò²Õªºµ{¦¡¥i CALL
- MsgBox "Sheet2 Private ¨p¥Îµ{¦¡"
- End Sub
- Sub EX_A() 'Public ¥i¬Ù²¤ ¤½¥Îªº '©Ò¦³µ{¦¡³£¥i CALL
- MsgBox "Public ¤½¥Îµ{¦¡"
- End Sub
½Æ»s¥N½X ¤@¯ë¼Òªý Module1ªºµ{¦¡- Option Explicit
- Sub Module1_A()
- MsgBox "Module1_A "
- End Sub
- Private Sub Module1_B()
- MsgBox "Private Module1_B"
- End Sub
½Æ»s¥N½X |
|