P
pk
Hello, I hope someone can help me with this tough one...
Am using VBA in Excel XP with Windows 2000.
I have several Excel files each consisting of several
pages. I need code to extract each individual page from
each file and save them into separate Excel files.
I was wondering if it is possible to do this, by using VBA
to print each page to a file (as in the [File][Print]
dialog box) to an Excel file rather than a text file. I
need to retain all formats.
Obviously, some pages have partial last pages that extend
beyond the last page break. Some pages include hard page
breaks, some don't. I think for the most part I only have
to worry about horizontal page breaks.
Whether this is or isn't the way to go, could you please
supply me with your example code and best ideas on the way
to proceed? Thanks mountains in advance...
Am using VBA in Excel XP with Windows 2000.
I have several Excel files each consisting of several
pages. I need code to extract each individual page from
each file and save them into separate Excel files.
I was wondering if it is possible to do this, by using VBA
to print each page to a file (as in the [File][Print]
dialog box) to an Excel file rather than a text file. I
need to retain all formats.
Obviously, some pages have partial last pages that extend
beyond the last page break. Some pages include hard page
breaks, some don't. I think for the most part I only have
to worry about horizontal page breaks.
Whether this is or isn't the way to go, could you please
supply me with your example code and best ideas on the way
to proceed? Thanks mountains in advance...