Import text document and format headers (1 Viewer)

Elvis

Registered User.
Local time
Today, 12:58
Joined
Sep 28, 2001
Messages
26
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

Registered User.
Local time
Today, 04:58
Joined
Jul 26, 2007
Messages
92
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
 

Users who are viewing this thread

Top Bottom