![]() |
|
#1
|
||||
|
||||
![]()
You are asking for clearing a text box and we would need more information on how to determine which text box. It is certainly possible to do this but the macro needs to be set up with some kind of input parameters eg
Are we clearing every text box in the document Are we clearing a specific text box (how will the macro know which text box to clear) Are we clearing a selected text box If you already have a button that adds a text box, wouldn't it be better to delete the text box rather than emptying it?
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#2
|
|||
|
|||
![]()
very basically im creating a form to use to record the purchase of scrap metal, more often than not a customer has more than one type of metal, what id like to happen is you enter the type of metal into a text box on a form, click a button and the data is transferred to a doccument and the text box is cleared ready for a second type of metal etc
here is what i have at the moment, apologies im sure it looks horrible : Private Sub ADDCOMMODITY_Click() Selection.GoTo What:=wdGoToBookmark, Name:="COMMODITY" Selection.TypeText Text:=COMMODITYBOX Selection.TypeParagraph End Sub hope this is helpful |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Rafi | Word VBA | 20 | 01-20-2023 02:16 PM |
Clear all content controls (Text, dropdown) AND change option button values to FALSE in MS Word Form | Janet D | Word VBA | 7 | 01-14-2023 02:36 AM |
Clear Values from All Controls on Form | ScottyBee | Word VBA | 2 | 04-02-2019 09:55 AM |
![]() |
sfitzsimmons | Word VBA | 1 | 01-11-2019 02:03 PM |
![]() |
BruceM | Word | 5 | 10-06-2016 08:26 AM |