View Single Post
 
Old 04-07-2016, 04:13 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by JakeLRL View Post
Do I just copy and paste this into the VBA coding area and change the relevent things?
Yes.
Quote:
Originally Posted by JakeLRL View Post
I started editing it, how do I get the text to go into a certain content control section like the start of the dropdown is linked with the word "Client", in this casse, I want it to go into a text content control area named "ClientDetails".
In that case, you could replace:
ActiveDocument.ContentControls(2).Range.Text = StrDetails
with:
ActiveDocument.SelectContentControlsByTitle("Clien tDetails").Item(1).Range.Text = StrDetails
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote