VBA¬O§_¥i¥H«Ø¥ß°ÊºAUserForm
- ©«¤l
- 132
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taipei
- µù¥U®É¶¡
- 2011-4-14
- ³Ì«áµn¿ý
- 2024-2-28
|
VBA¬O§_¥i¥H«Ø¥ß°ÊºAUserForm
½Ð±Ð¦U¦ì°ª¤â¡A¤£ª¾¹DVBA¬O§_¯à«Ø¥ß°ÊºAªºUserForm¡A¤Î§Y®É¨M©w³oӰʺAªºµøµ¡¸Ì±ªº±±¨î¶µ¼Æ¥Øªº¦h¤Ö©O¡H
¨Ò¦p¡Aµ{¦¡¦b°õ¦æ¤¤¡A·|§ì¨ú¤£¦P¸ê®Æªº¤H¼Æ¡A¨C¤@Ó¸ê®Æ°Ï¶ôªº¤H¼Æ¤£¦P¡An²£¥Íµøµ¡¨Ó§@¿ï¾Ü¨º¨Ç¤H¬OÁÙn«O¯d¦b¸s²Õ¤º¡A¥i¯à²Ä¤@Ó¸s²Õ¤º¦³4Ó¦¨û¡A§Ú»Ýn¤@ӰʺAµøµ¡¸Ì±¦³¥|Ó¤H¦WªºCheckBox¡AÅý§Ú¿ï¾Ü«O¯d¤U¨Óªº¤H¡A±µ¤U°õ¦æ²Ä¤G¸s²Õ¡A¸Ì±¥i¯à¦³¤KÓ¤H¡A¨º´Nn°ÊºA²£«~¤@Óµøµ¡¡A¸Ì±¦³¤KÓ¹ïÀ³ªºCheckBox¡A¥Ñ©óµ{¦¡·|¦]§ì¨ì¸s²Õ§PÂ_¸Ì±ªº¤H¼Æ¦A¨Ó²£«~¬Û¹ïÀ³¼Æ¶qªºCheckBox¡A³o¼Ëµ{¦¡¦³¿ëªk¼g¶Ü¡HÁٽЦU¦ì°ª¤âµ¹¤©¶}¸Ñ¡A·PÁ±zÌ |
|
clio
|
|
|
|
|
- ©«¤l
- 319
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 309
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- 2k
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-6-24
- ³Ì«áµn¿ý
- 2024-4-27
|
¥»©«³Ì«á¥Ñ jackyq ©ó 2016-3-11 01:05 ½s¿è
¤j¤j¦Û¤v¬ã¨s¬Ý¬Ý
http://stackoverflow.com/questions/10944064/change-individual-listbox-item-font-in-excel |
|
|
|
|
|
|
- ©«¤l
- 132
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taipei
- µù¥U®É¶¡
- 2011-4-14
- ³Ì«áµn¿ý
- 2024-2-28
|
VBA¬O§_¥i¥H«Ø¥ß°ÊºAUserForm¤Î¸Ì±¤@±±¨î¶µ¤Î¼Æ¥Ø
½Ð±Ð¦U¦ì°ª¤â¡A¤£ª¾¹DVBA¬O§_¯à«Ø¥ß°ÊºAªºUserForm¡A¤Î§Y®É¨M©w³oӰʺAªºµøµ¡¸Ì±ªº±±¨î¶µ¼Æ¥Øªº¦h¤Ö©O¡H
¨Ò¦p¡Aµ{¦¡°õ¦æ¤¤¡A§Ú¥i¥H¨Ì¾Ú¿é¤Jªº¤Þ¼Æ¡A¨M©wn¦³´XÓCheck Box ¡A´XÓOption Button¡A´XÓList Box¶Ü¡H·PÁ±zÌ |
|
clio
|
|
|
|
|
- ©«¤l
- 132
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taipei
- µù¥U®É¶¡
- 2011-4-14
- ³Ì«áµn¿ý
- 2024-2-28
|
·PÁ±z¡K°£¤F³oÓ¡A¯à§_¦³¿ëªk¯à¦Û°Ê·s¼W¨ä¥¦ªº±±¨î¶µ¡A¦pOption Button, Check box, Label... µ¥©O¡H |
|
clio
|
|
|
|
|
- ©«¤l
- 319
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 309
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- 2k
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-6-24
- ³Ì«áµn¿ý
- 2024-4-27
|
¦^´_ 3# clio
Dim TextBox As MSForms.TextBox
Set TextBox = UserForm1.Controls.Add("forms.TextBox.1")
TextBox.Top = 0
Dim ListBox As MSForms.ListBox
Set ListBox = UserForm1.Controls.Add("forms.ListBox.1")
ListBox.Top = 30
Dim Label As MSForms.Label
Set Label = UserForm1.Controls.Add("forms.Label.1")
Label.Top = 120
Label.BorderStyle = fmBorderStyleSingle
Label.Caption = "13123" |
|
|
|
|
|
|
- ©«¤l
- 319
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 309
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- 2k
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-6-24
- ³Ì«áµn¿ý
- 2024-4-27
|
¥»©«³Ì«á¥Ñ jackyq ©ó 2016-3-15 14:23 ½s¿è
¥Î°ÊºAªº¸Ü
¨Æ¥ó´N³Â·Ð¤F
ÁÙn¦h¤@°ï Class ©ÎªÌ¥Î hook
¤~·|«Øij§A¥i¥Hªº¸Ü ¥Î Listbox ´N¦n¤F |
|
|
|
|
|
|
- ©«¤l
- 132
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taipei
- µù¥U®É¶¡
- 2011-4-14
- ³Ì«áµn¿ý
- 2024-2-28
|
·PÁ¤j¤jªº§iª¾¡A³o¼Ë§Ú´N·|¥Î¤F¡A¥t¥~½Ð±Ð¤@Ó°ÝÃD¡A¦P²z¬O¤£¬O¤]¥i¥H°ÊºACreate UserForm©O¡A¥i¥H¥Îµ{¦¡ª½±µCreate¤@Ó·sªºUserForm¶Ü¡H |
|
clio
|
|
|
|
|
- ©«¤l
- 319
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 309
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- 2k
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-6-24
- ³Ì«áµn¿ý
- 2024-4-27
|
' UserForm1 ¥²¶·¨Æ¥ý¤w¸g¦s¦b
Dim F As UserForm1
Dim TextBox As MSForms.TextBox
Dim ListBox As MSForms.ListBox
Set F = New UserForm1
F.Show 0
F.Caption = "Form 1"
Set TextBox = F.Controls.Add("forms.TextBox.1")
TextBox.Top = 0
Set ListBox = F.Controls.Add("forms.ListBox.1")
ListBox.Top = 30
Set F = New UserForm1
F.Show 0
F.Top = F.Top + 100
F.Left = F.Left + 100
F.Caption = "Form 2"
Set TextBox = F.Controls.Add("forms.TextBox.1")
TextBox.Top = 0
Set ListBox = F.Controls.Add("forms.ListBox.1")
ListBox.Top = 30 |
|
|
|
|
|
|
- ©«¤l
- 132
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 167
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taipei
- µù¥U®É¶¡
- 2011-4-14
- ³Ì«áµn¿ý
- 2024-2-28
|
©Ò¥H¤@©wn¦³¤@Ó¥ý¦s¦bªºUserForm¡A¦Ó¸Ì±ªºControls³£¥i¥H¦Û°Ê¥[¡A°ß¦³³Ì¤W¼hªºUserForm¤@©wn¥ý¦s¦b¡AµLªk¦Û°Ê«Ø¥ß³Ì¤W¼hªºUserForm¡A³o¼Ë»¡¹ï§a |
|
clio
|
|
|
|
|
- ©«¤l
- 319
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 309
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- 2k
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-6-24
- ³Ì«áµn¿ý
- 2024-4-27
|
¦Û°Ê«Ø¥ß UserForm
https://support.microsoft.com/en-us/kb/204330 |
|
|
|
|
|
|