Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy Header information
Message
From
06/10/2011 22:28:44
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Copy Header information
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01525836
Message ID:
01525836
Views:
83
Hi All:

I want to write a macro, eventually translatig it into VFP code, to combine a number of Word files into 1 file for either viewing or printing.

I plan to do this:
open a blank 'master' file in word

for as many files as there are in the folder do this:
    open up file n
    select the entire file
    copy
    close the file
    paste into the master file
    simulate a control->enter to get a new page
end for
The problem is that when I've tested doing this by hand, all the pages in the master file get the header of the first file I pasted. I want the header to change every time I paste to the header of the file I copied from.

How do I do this?

Thanks,

Yossi
Next
Reply
Map
View

Click here to load this message in the networking platform