text boxes

W

William

hi,

i have a template with text boxes from the control tool box. the template
creates a new doc. from it. but, i want to get rid of the text boxes on the
new doc, and replace them with regular text. does anyone has any experience
on vba for office xp?

thank you,

will.
--
 
J

Jezebel

You can retrieve the contents of your textboxes with code like this --

Dim pRange As Word.Range

Set pRange = ActiveDocument.StoryRanges(wdTextFrameStory)
Do Until pRange Is Nothing
Debug.Print pRange.Text
Set pRange = pRange.NextStoryRange
Loop


What you actually do with the textbox contents is a separate issue. But why
not just fix the template?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top