Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 07-20-2016, 04:16 AM
gmaxey gmaxey is offline Dynamically select a TextBox based on range value Windows 7 32bit Dynamically select a TextBox based on range value Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,636
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

If we can assume that you are looking for what will be there, then you can set the textbox directly.

Let's say it is a content control:
ActiveDocument.SelectContentControlsByTitle("TB301 ").Item(1).Range.Text = "whatever"

If it is not there you could use an error handler to trap the failed attempt.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
 

Tags
textbox, word vba

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro/VBA code to select ALL text in a textbox in microsoft excel and add a new row jyfuller Excel Programming 11 06-01-2015 08:49 PM
Dynamically select a TextBox based on range value select a cluster of point from a range based on x and y values sandcharles Excel 5 02-19-2015 06:15 AM
Dynamically select a TextBox based on range value Generating Print Labels Dynamically Based on SQL Server expinch Word 1 11-26-2014 10:05 PM
Dynamically select a TextBox based on range value Dynamically changing drop-down list based on selection? (Word Form) laurarem Word 1 02-21-2013 10:17 PM
Dynamically select a TextBox based on range value Display result in textbox based on the input of another textbox scarymovie Word VBA 5 05-16-2012 07:05 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:29 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