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

¦p¦óÅýa=a+1²Ö¥[

¶}±ÒUserForm1«á~ ¦p¦ó³]©w«ö¤UCtrl+Enter«á°õ¦æCommandButton1

¤@¯ëUserForm1¤º·|¦³³\¦h¤¸¥ó~³Ì±`¨£ªº´N¬OCommandButton1«ö¶s
¦p¦ó«ö¤UCtrl+Enter«á¡A¥i¥HÀ°§Ú«ö¤UCommandButton1«ö¶s

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-11-14 17:20 ½s¿è

¦^´_ 1# av8d
¨t²Î±±¨îÅv¦b UserForm µLªk°õ¦æ¦Û©wªº²Õ¦XÁä
UserForm1.Show False  ªí³æ¬°¬O«D±j¨î¦^À³ªº¡C(¨t²Î±±¨îÅv¥iÂಾ¨ì¤u§@ªí)
UserFormªºµ{¦¡½X
  1. Option Explicit
  2. Sub CommandButton1_Click()
  3.     MsgBox CommandButton1.Caption
  4. End Sub
  5. Private Sub UserForm_Initialize()
  6.     Application.OnKey "^h", "Ex"
  7. End Sub
  8. Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
  9.     Application.OnKey "^h"   '¦p¬°¨t²Î¹w³]²Õ¦XÁä:ÁÙ­ì­ì¨Óªº«ü¥O
  10. End Sub
½Æ»s¥N½X
¤@¯ë¼Ò²Õªºµ{¦¡½X
  1. Option Explicit
  2. Sub Ex()
  3.     UserForm1.CommandButton1_Click
  4. End Sub
  5. Sub Ex1()
  6.     UserForm1.Show False
  7. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ av8d ©ó 2013-11-15 11:50 ½s¿è

¦^´_ 2# GBKEE


    test.rar (442.97 KB)

¨S¦³§@¥Î~¦A¦¸·PÁÂ!

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-11-15 12:53 ½s¿è

¦^´_ 3# av8d
  1. Áä ¥N½X
  2. BREAK {BREAK}
  3. CAPS LOCK {CAPSLOCK}
  4. CLEAR {CLEAR}
  5. DELETE ©Î DEL {DELETE} ©Î {DEL}
  6. END {END}
  7. ENTER ~ (ªiª¬²Å¸¹)
  8. ENTER (¼Æ¦r¤pÁä½L) {ENTER}
½Æ»s¥N½X
  1. Private Sub CommandButton1_Click() 'Private ¨p¥Îªºµ{§Ç,¥u¦³³o¼Ò²Õªºµ{§Ç¥i©I¥s¦¹µ{§Ç

  2. Sub CommandButton1_Click()         '¹w³]¬°¤½¥Îµ{§Ç,¨ä¥L¼Ò²Õªºµ{§Ç¤]¥i©I¥s¦¹µ{§Ç
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦p¦óÅýa=a+1²Ö¥[

Sub CommandButton1_Click()
    '²Î­p¸ê®Æ¼Æ
        Dim Label23 As Integer
        Label23 = Label23 + 1
End Sub

¦^´_ 5# av8d
  1. Option Explicit
  2. Dim Label23 As Integer '¼Ò²Õªº(¤½¥Î,¨p¥Î)ÅܼÆ,¦b END «á³QÄÀ©ñ ©Î SET ??? = NOTHING
  3. 'ªí³æ¼Ò²Õªº(¤½¥Î,¨p¥Î)ÅܼÆ,¦bªí³æµ²§ô©Î Unload(±N¤@­Óª«¥ó¦Û°O¾ÐÅ餤²¾°£)«á³QÄÀ©ñ
  4. Sub CommandButton1_Click()
  5.   'Dim Label23 As Integer 'µ{¦¡¸ÌªºÅܼÆ:µ{¦¡µ²§ô·|³QÄÀ©ñ
  6.         Label23 = Label23 + 1
  7.         MsgBox Label23
  8. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ av8d ©ó 2013-11-19 10:27 ½s¿è

¦^´_ 6# GBKEE


    GBKEE¤j¤j±z¦n~
¥Ø«e§Ú¬O¦bUserForm¤º«Ø¥ßªº~

«ö¤U«ö¶sCommandButton«á~

·|¥X²{ «¬ºA¤£²Å¦X ªº¿ù»~          Label23 = Label23 + 1

¥\¯à¦b©ó¨C«ö¤U¤@¦¸CommandButton~«h·|À°§Úµù°O¤@¦¸

TOP

¦^´_ 7# av8d
¤W¶ÇÀɮ׬ݬÝ
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ av8d ©ó 2013-11-19 13:17 ½s¿è

¦^´_ 8# GBKEE

½Ð¹L¥Ø
123.rar (30.54 KB)

-----------------------------
§ä¨ì°ÝÃDÂI¤F~§Ú¨S+Caption©M¹w³]­È

TOP

¦^´_ 9# av8d
  1. Private Sub CommandButton1_Click()
  2.     '²Î­p¸ê®Æ¼Æ
  3.     Label23.Caption = Val(Label23.Caption) + 1
  4.     '³oLabel23¬Oªí³æ±±¨î¶µ
  5.     '¥¦ªºÄÝ©ÊCaption¬O¦r¦ê,­n¥ÎVal¨ç¼Æ:¶Ç¦^¥]§t©ó¦r¦ê¤ºªº¼Æ¦r¡C
  6. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¤Hªº§Ö¼Ö¡D¤£¬O¦]¬°¥L¾Ö¦³±o¦h¡A¦Ó¬O¦]¬°¥L­p¸û±o¤Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD