C
Carjoy
Clients of ours can create what is called "string documents". This is a
document that uses the PRIVATE field and VBA code to append all the documents
listed into one document. All the documents use the Normal style with manual
formatting so you can guess what happens when they are appended into one
document. Things become a mess when one document is Times 11 and the other
is Time 12 (and it can't change from that). Historically they never used
styles -- ever. Being new the company, the problem of helping the clients
retain the formatting used in each separate document after they are combined
falls to me. Use Master and Subdocuments are not an option.
What I want to do via VBA is search the document for anything that is using
Normal and create a new style based on (No Style) and call it the 8 character
file name. All files are guaranted to have a 8 character name. Plus if
there is manual paragraph formatting such as center or justified, I want to
create an additional style called FileName2, FileName3.
Am I dreaming? I've found several examples of searching the document for
styles and changing the base font but not one that creates a style on the fly
based on the fomatting of the selected paragraph.
document that uses the PRIVATE field and VBA code to append all the documents
listed into one document. All the documents use the Normal style with manual
formatting so you can guess what happens when they are appended into one
document. Things become a mess when one document is Times 11 and the other
is Time 12 (and it can't change from that). Historically they never used
styles -- ever. Being new the company, the problem of helping the clients
retain the formatting used in each separate document after they are combined
falls to me. Use Master and Subdocuments are not an option.
What I want to do via VBA is search the document for anything that is using
Normal and create a new style based on (No Style) and call it the 8 character
file name. All files are guaranted to have a 8 character name. Plus if
there is manual paragraph formatting such as center or justified, I want to
create an additional style called FileName2, FileName3.
Am I dreaming? I've found several examples of searching the document for
styles and changing the base font but not one that creates a style on the fly
based on the fomatting of the selected paragraph.