Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-02-2021, 02:34 PM
garydp garydp is offline Run VBA code when text box value changes Windows 10 Run VBA code when text box value changes Office 2019
Novice
Run VBA code when text box value changes
 
Join Date: Dec 2021
Posts: 2
garydp is on a distinguished road
Default Run VBA code when text box value changes


I am trying to run some VBA code within an active document. I have placed two text boxes on the document and want one to be populated with a specific value when the other is populated. this is just a trial and two boxes wont be used.

i have tried

If textbox1.value > 100 then
textbox2.value = "In spec"
elseif textbox1.value < 100 then
textbox2.value = "Out of spec"
end if

i dont know how to get this to run when textbox1 is populated on the active word document.

when i select this document in project then document i dont know what decleration will make the code run. i tried contentcontrolonenter but that didnt work

any help will be appreciated.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Run VBA code when text box value changes AutoOpen code to change date code to date text Legal Learning Center Word VBA 6 02-22-2020 02:24 PM
Wrap text code not working Bluebell Word VBA 5 03-25-2018 04:26 AM
Run VBA code when text box value changes VBA Code to search for field codes with certain text before the Field code and to change style welcometocandyland Word VBA 4 02-08-2017 06:53 PM
Run VBA code when text box value changes Help with VBA code to find and highlight text mpdsal Word VBA 8 09-11-2014 03:55 PM
Code Request - Text to Columns OTPM Excel Programming 0 02-13-2013 04:44 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:32 AM.


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