- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 14
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-6
|
·s¤âµo°Ý°ÝÃD½Ð¦h¦h¥]²[
§Ú·Q½Ð°Ý°ª¤âÌ¡AVBA¨ç¼Æ¡A¥i¥H¨Ï¥Î¦bVB6 or VB.NET¦Uª©¥» or VB2010 Express ³Â?
©ÎªÌ¬O»¡¥i¥H¥Î¦bþÓÀô¹Ò¶}µo?
...
z15935712 µoªí©ó 2014-8-26 13:11
? ¤£¬O«ÜÀ´§A©Ò°Ýªº·N«ä,¥H¤U¬O§Úªº²z¸Ñ,§A¬Ý¬Ý¬O¤£¬O§A·Qnªºµª®×.
³oÓ°Q½×ª©¬O "Excelµ{¦¡°Ï" °Q½×ªº¬O Excel VBA ³oÓ³nÅ骺¨ç¼Æ¥Îªk»P¹ê§@½d¨Ò.
ÅU¦W«ä¸q³o¸Ì°Q½×ªº VBA ¤j³¡¤À³£¬O¥Î¦b Excel ³nÅé(¦Ó³o¤]´N¬O§A·Q°Ýªº¶}µoÀô¹Ò)¤Wªº,
¶}±Ò Excel ³nÅé«á,
«öµÛ Alt Á䤣©ñ, ¦A«ö¤@¤UÀH§Y©ñ¶} F11 Áä, ±µµÛ¦A©ñ¶} Alt Áä(§Y¤@¯ë©Ò»¡ªº«ö Alt + F11 Áä)
¦AÂI¤@¤U¥ª¤è°¾¤W¤@¨Ç "±M®×" ¤å¦r¤U¤èªº "À˵øµ{¦¡½X" «ö¶s,
¥k¤è¦³¬Ý¨ì Option Explicit ¤å¦rªº°Ï°ì´N¬O¥´µ{¦¡½Xªº¦a¤è.
¦Ó¦]¬°¥¦¬O VB ³nÅ骺ÅܧÎ(¥H VB ¬°°ò¦, ©Ò¶}µo¥X¨Ó¾A¥Î©ó Excel ªº³nÅé),
©Ò¥H¥L¤j³¡¤Àªº¨ç¼Æ³£»P VB ¬Û®e, (¨Ò¦p Windows API ¤¤¤j³¡¤Àªº¨ç¼Æ¥Îªk½d¨Ò®³¨Óקï¤@¤U, ÁÙ¬O¥i¥H¦b Excel ¤W¨Ï¥Î)
¦ý¤]¦]¬°¥¦¬O¨Ìªþ¦b Excel ¤¤ªº,
©Ò¥H¥¦¤]¥]§t¤F¤@¨Ç VB ¤W¤£¯àª½±µ®³¨Ó¨Ï¥Îªº¨ç¼Æ»P¥Îªk.(¨Ò¦p: Range, Sheet...) |
|