Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA macro 1

Status
Not open for further replies.

DotNetGnat

Programmer
Mar 10, 2005
5,548
IN
Hi Guys,

i wrote a VBA macro that does "find and replace" in the word document...i mean when i run the macro, i have this predefined array of acronym words that are to be replaced with the actual definitions...

so macro searches through all the text on the word document and if it finds any acronymn it replaces it with its definition...ok everything works fine...

but i have some word documents that i have textboxes on them...and these textboxes have text in it and my find and replace function ignores the text inside the textbox?? i dont know why?

i feel like textbox is a different layer and its not including the active search area??

any suggestions

-DNG
 
Have a look at the StoryRanges collection.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
PHV,

did i tell you that you were awesome and amazing ;)

it worked like charm...thanks for pointing me in the right direction...

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top