View Full Version : Import text document and format headers


Elvis
10-11-2007, 02:48 AM
Hi All,

I have a text document that I need to copy into word then search the document and format the headers.

I can create the text document so that the headers are all prefixed with H2H or any other string for search purposes.

My question is how to create a macro to search the document for each instance of a header, remove any header prefix and format the header as say header1.

I know how to create macros, its just the content for searching, replacing and formating I need help with.

I appreciate any help you guys can give here. Thanks

Dumbfounded
11-21-2007, 06:26 AM
Hi,

You would make your macro and then carry out the find and replace and then stop recording - it will store this for you for the next time you use it, but there will be no prompts, it will automatically do a find and replace as soon as you run the macro so beware.

Hope it helps.

Thanks,

Donna