Hey everyone,
Got a quick questions about a problem that I am having. I thought I might post it here first before I try to solve it myself because there might be an easy solution to it.
Basically, I have a C# program using VBA to control a Word document which is a template for a survery. The C# program uses Find/Replace to fill in appropriate fields in the survey.
The survery can be 2 - 5 pages long and it is for a mall. In the header of each survery I have it saying "Mall 1 mall_name, mall_address", and I am also using the Page {PAGE} out of {NUMPAGES} in the right side of my header. Everything thing works ok.
I now have to generate a batch of these surveys. I want them all to be one Word document. So i am using InsertFile so insert one copy do all the find/replace, go to a next page and insert another copy and so on. They problem now I have is with the headers. I need the header of the first survey to say Mall 1 mall_name1, mall_address_1, and then when we start survery 2 the header needs to say Mall 2 mall_name2, mall_address_2 and so on.
The pages at the start of survery one have to be One to SizeOfSurvey1, then at the start of survey two One to SizeOfSurver2 and so on...
Can anyone suggest a way to do this?
Mike