Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 06-20-2024, 07:18 PM
rimmerthecat rimmerthecat is offline how to clear a text box in a form in word Windows 10 how to clear a text box in a form in word Office 2021
Novice
how to clear a text box in a form in word
 
Join Date: Jun 2024
Posts: 4
rimmerthecat is on a distinguished road
Default

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
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to clear a text box in a form in word Reset "Button" to clear Word user-filled form, from all filled details. 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
how to clear a text box in a form in word Word Form to Save as and clear sfitzsimmons Word VBA 1 01-11-2019 02:03 PM
how to clear a text box in a form in word Don't clear form fields when protecting as a form BruceM Word 5 10-06-2016 08:26 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:50 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft