¦p¦ó¥ÎVBA§ó§ï vba modular ªº¦WºÙ
- ©«¤l
- 522
- ¥DÃD
- 36
- ºëµØ
- 1
- ¿n¤À
- 603
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp sp3
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-12-13
- ³Ì«áµn¿ý
- 2021-7-11
|
¦p¦ó¥ÎVBA§ó§ï vba modular ªº¦WºÙ
¥»©«³Ì«á¥Ñ yen956 ©ó 2017-2-3 14:08 ½s¿è
¦p¦ó¥ÎVBA§ó§ï vba ¤¤ modular ªº¦WºÙ
¨Ò¦p:
sub test()
...
...
end sub
¦p¦ó§ï¦¨
sub test1()
...
...
end sub |
|
|
|
|
|
|
- ©«¤l
- 549
- ¥DÃD
- 152
- ºëµØ
- 0
- ¿n¤À
- 691
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-8-10
- ³Ì«áµn¿ý
- 2022-9-7
|
¦^´_ 1# yen956 - Function TEST3()
- '§ó§ïªº¼Ò²Õ
- Set Obj = Application.VBE.ActiveVBProject.VBComponents("Module1")
- Row2 = Obj.CodeModule.ProcStart("TEST1", 0)
- RowCount = Obj.CodeModule.ProcCounts("TEST1", 0)
- Text = Split(Obj.CodeModule.s(Row2, RowCount), vbCrLf)
- Randomize
- Call Obj.CodeModule.Replace(Row2, "Function TEST2()")
-
- End Function
- Function TEST1()
- '³Q§ó§ïªº¼Ò²Õ
- A = B
- End Function
½Æ»s¥N½X |
|
PKKO
|
|
|
|
|
- ©«¤l
- 522
- ¥DÃD
- 36
- ºëµØ
- 1
- ¿n¤À
- 603
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp sp3
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-12-13
- ³Ì«áµn¿ý
- 2021-7-11
|
¦^´_ 2# PKKO
ÁÂÁ§ֳt¦^ÂÐ, ÁÂÁÂ,
¤£¹L«Ü©êºp!¬Ý¤£á˦p¦ó´ú¸Õ,
¸ÕµÛ±q test5 ¶}©l´ú¸Õ(step by step),
µ²ªG¨ì¬õ¦â®Ø®Ø¨º¦C, §Y¥X²{¤U¦C°T®§, ¬°¦ó?
ps:ìpo¤å¼ÐÃD¿ù»~, À³§ï¬°
¡y¦p¦ó¥ÎVBA§ó§ï vba ªº macro ¦WºÙ¡z¤~¹ï
|
|
|
|
|
|
|
- ©«¤l
- 522
- ¥DÃD
- 36
- ºëµØ
- 1
- ¿n¤À
- 603
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp sp3
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-12-13
- ³Ì«áµn¿ý
- 2021-7-11
|
¥»©«³Ì«á¥Ñ yen956 ©ó 2017-2-6 10:01 ½s¿è
¦^´_ 3# yen956
¤j¤j±z̦n:
¦b§V¤Ogoogle«á, µo²{ì¨Ó¬O¡£¤Þ¥Î¶µ¥Ø¡¤¤Î¡£³]©w¥¨¶°¦w¥þ©Ê¡¤ªº°ÝÃD, §Y
1. ³]©w¤Þ¥Î¶µ¥Ø: Microsoft Visual Basic For Applications Extensibility 5.3
2. ¥¨¶°¦w¥þ©Ê:¤Ä¿ï«H¥ô Visual Basic
¦ý, ¤]¥u·|¦h°õ¦æ¤@¦C, ì¥ý°±¯d¦b¬õ¦â®Ø¨º¦C,
²{¦b°±¯d¦bÂŦâ®Ø®Ø¨º¦C, §Y·|¥X²{³oÓ°T®§, Why?
|
|
|
|
|
|
|
- ©«¤l
- 549
- ¥DÃD
- 152
- ºëµØ
- 0
- ¿n¤À
- 691
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-8-10
- ³Ì«áµn¿ý
- 2022-9-7
|
¥»©«³Ì«á¥Ñ PKKO ©ó 2017-2-6 12:30 ½s¿è
¬¡¶Ã¯1.rar (10.64 KB)
¦^´_ 4# yen956
¤£¥Î¤Þ¥Î¶µ¥Ø
¤U¸üÀɮת½±µ¶}±ÒVBEµe±°õ¦æ²Ä¤@Ó¥¨¶°§Y¥i§ó§ï²Ä¤GÓ¥¨¶°ªº¼Ò²Õ¦WºÙ
¼Ò²Õ¤£¥i¤WÂê
Y¦³¤WÂê¼Ò²Õ,·|»Ýn§ó¦hCODE |
|
PKKO
|
|
|
|
|
- ©«¤l
- 522
- ¥DÃD
- 36
- ºëµØ
- 1
- ¿n¤À
- 603
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp sp3
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-12-13
- ³Ì«áµn¿ý
- 2021-7-11
|
¦^´_ 5# PKKO
ªGµM¤£¥²¤Þ¥Î!! ¥Btest1()¥i§ï¬°test2()
ÁÂÁ¥Τ߫ü¥¿!!ÁÂÁÂ!! |
|
|
|
|
|
|