[½Ð±Ð]±±¨î¶µ¸s²Õ¤Æ½Æ»s°ÝÃD
- ©«¤l
- 34
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 67
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 10
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2016-4-1
- ³Ì«áµn¿ý
- 2021-5-5
|
[½Ð±Ð]±±¨î¶µ¸s²Õ¤Æ½Æ»s°ÝÃD
¦bform¤¤¸m©ñ¤@Óframe¡A¨ä¤W¦³¤@ÓCommandButton¤Î¤@Ólabel
½Ð°Ý¡A¥i¥H¦b°õ¦æ®É¡A½Æ»s¥X¬Û¦Pµ²ºc·sªºframe¶Ü |
|
|
|
|
|
|
- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
¥»©«³Ì«á¥Ñ luhpro ©ó 2019-11-23 13:32 ½s¿è
ì¤å¤£Åý½s¿è¥u¯à«¶}¤@½g§ó·s¤F.
4# luh¤j¡A³oÓFrame¥Î¦bSheet¤W¥i¦æ¡A¦ý¥Î¦bUserForm¤W¡A«K·|¿ù»~¡A½Ð°Ý¬OMeªº°ÝÃD¶Ü¡H
Frame1.Copy
Me.Paste
èè¸Õ¹LUserform ¤ºªºª«¥ó¤£¯à¶K¤WSheet,
§Ú²qÀ³¸Ó¬O¦]¬° UserForm ¬O¦b½s¿èµøµ¡¤¤«Ø¥ßªºª«¥ó,
¥¦¤º³¡ªºª«¥ó¤]¥u¯à±M¥Î©ó UserForm,
©Ê½è»P¤u§@ªí¤¤ªºª«¥ó¤£¤@¼Ë,
(³Ì©úÅ㪺¨Ò¤l¬O CommandButton ³oÓª«¥ó,
Worksheet ¤¤¦³ Copy ¤èªk ¦Ó Userform «hµL.)
©Ò¥H¤£¯à¤¬¬Û½Æ»s¨Ï¥Î.
¤£¹L Userform ÁÙ¬O¥i¥H°ÊºA(¤£¬O½s¿è®É´N«Ø¥ß¦nªº)·s¼Wªº,
½Ð°Ñ¬Ý³o½g :
[µo°Ý] °ÊºA·s¼W UserForm ¤Î CommandButton «á ¦p¦ó¼gclickªº°Ê§@¡H
©Ò¥Hn¦A·s¼W¤@Ó¦³¬Û¦Pª«¥óªº Userform ¬O¨S°ÝÃDªº.
¦Ü©óY¬O§An (½Æ»s) ¤@Ó Userform ¤Wªºª«¥ó¹L¥h Sheet,
¦b Sheet ¤W·s¼W¦P«¬ª«¥ó,
¦A³vÓ±NÄÝ©Ê«ü©wµ¹·s¼Wªºª«¥ó¤]¬O¤@Ó¥i¦Ò¼{ªº¤è¦V. |
|
|
|
|
|
|
- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
¥»©«³Ì«á¥Ñ luhpro ©ó 2019-11-23 09:28 ½s¿è
½Ð°Ý¦b±zªº¦^µª¤W¡Aframe1¥H¤Î¶K¤W«áªºframe2¤WªºCommandButton1¡BLabel1§¡¬O¬Û¦P¦WºÙ¡A³on¦p¦ó¤Þ¥Î©O¡H
abbay262 µoªí©ó 2019-11-22 20:48
¦]¬°¥¦Ì¬OÁõÄݩ󤣦Pªº Frame ª«¥ó°Ú,
¤@Ó¬O frame1.CommandButton1
¥t¤@Ó¬O frame2.CommandButton1
¦b¨ú¥Î¤W¬O¨S¦³½Ä¬ðªº.
luh¤j¡A³oÓFrame¥Î¦bSheet¤W¥i¦æ¡A¦ý¥Î¦bUserForm¤W¡A«K·|¿ù»~¡A½Ð°Ý¬OMeªº°ÝÃD¶Ü¡H
Me ¦b¦¹³B¬Oªí¥Ü Worksheet ¤£¬O UserForm,
§Ú¬O·~¾lªº,
¨S¸Õ¹L³o¼Ë¶K,
²{¦b»°µÛn¥Xªù,
±ßÂI¦A¸Õ¸Õ...
For Each ctl In Me.Controls
If TypeName(ctl) = "TextBox" Then ctl.Text = ""
Next
ì¦]¦P¤W,
Me ¦b¦¹³B¬Oªí¥Ü Worksheet ¤£¬O UserForm,
§A¥i¥H¦b "§Y®É¹Bºâµøµ¡"(«ö Ctrl + G ¶}±Ò) ¤W¥´ debug.print me.name ¦A«ö Enter Áä´N¥i¥H½T»{ Me ¬OþÓª«¥ó.
§A¸Õ¸Õ :
With Me .Frame1
For Each ctl In .Controls
If TypeName(ctl) = "TextBox" Then ctl.Text = ""
Next
End With
·íµM Frame2 ¤ñ·Ó§Y¥i. (Ps §Ú¨S´ú¹L, ¤£½T©w¥i¤£¥i¥H, µ¥¦^¨Ó«á¦A¤W¨Ó¦^¤å) |
|
|
|
|
|
|
- ©«¤l
- 34
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 67
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 10
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2016-4-1
- ³Ì«áµn¿ý
- 2021-5-5
|
¦Ûµª#3°ÝÃD
#4ªº°ÝÃDÁÙ¦b¡A½Ð°ª¤â¸Ñ´b°Ú
For Each ctl In Me.Controls
If TypeName(ctl) = "TextBox" Then ctl.Text = ""
Next |
|
|
|
|
|
|
- ©«¤l
- 34
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 67
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 10
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2016-4-1
- ³Ì«áµn¿ý
- 2021-5-5
|
©Ó¤W¡A
luh¤j¡A³oÓFrame¥Î¦bSheet¤W¥i¦æ¡A¦ý¥Î¦bUserForm¤W¡A«K·|¿ù»~¡A½Ð°Ý¬OMeªº°ÝÃD¶Ü¡H
Frame1.Copy
Me.Paste |
|
|
|
|
|
|
- ©«¤l
- 34
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 67
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 10
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2016-4-1
- ³Ì«áµn¿ý
- 2021-5-5
|
§Ú쥻¬On°ÝVBA¤WªºUSERCOTROLS¡A«á¨Ógoogle«á¡A¨Ã¨S¦³³o¥\¯à¡A·PÁ±zªº¦^µª¡A³º¯à¦p¦¹À³¥Î¡I¤Q¤À¯«©_¡I
½Ð°Ý¦b±zªº¦^µª¤W¡Aframe1¥H¤Î¶K¤W«áªºframe2¤WªºCommandButton1¡BLabel1§¡¬O¬Û¦P¦WºÙ¡A³on¦p¦ó¤Þ¥Î©O¡H |
|
|
|
|
|
|
- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
¦bform¤¤¸m©ñ¤@Óframe¡A¨ä¤W¦³¤@ÓCommandButton¤Î¤@Ólabel
½Ð°Ý¡A¥i¥H¦b°õ¦æ®É¡A½Æ»s¥X¬Û¦Pµ²ºc·sªºfra ...
abbay262 µoªí©ó 2019-11-19 18:43
¥i¥Hªº, ½Æ»s¶K¤W´N¦n..- Private Sub cbCopyFrame_Click()
- Frame1.Copy
- Me.Paste
- End Sub
½Æ»s¥N½X
¨î¶µ¸s²Õ¤Æ½Æ»s-ans.zip (18.8 KB)
|
|
|
|
|
|
|