I am generating an Excel spreadsheet within a Progress program. Excel is automatically inserting a vertical page break in the middle of the spreadsheet. The Visual Basic macro code generated to manually move the page break to the right edge of the spreadsheet is:
Set ActiveSheet.VPageBreaks(1).Location = Range("M1")
The application is running under Excel 97, SR-2.
Does anyone have a suggestion to:
1. Block Excel from automatically inserting this vertical page break
or
2. Convert the above statement to work in Progress.
I have tried:
worksht1:VPageBreaks(1):Location
worksht1:Range("L1")).
and get the error:
** Unable to understand after -- "(1):Location". (247)
Any help and/or suggestions would be appreciated!
Set ActiveSheet.VPageBreaks(1).Location = Range("M1")
The application is running under Excel 97, SR-2.
Does anyone have a suggestion to:
1. Block Excel from automatically inserting this vertical page break
or
2. Convert the above statement to work in Progress.
I have tried:
worksht1:VPageBreaks(1):Location

and get the error:
** Unable to understand after -- "(1):Location". (247)
Any help and/or suggestions would be appreciated!
