Hello,
I need to make a report using an Excel Macro that will write to a new page when the previous page is filled. I set up a For Loop to go through records in a dbf which will determine the number of pages to write out to. This is what I have written to test whether or not to go to the next page
It only works for the first few pages
'Test to see if at bottom of page
If ((53 * (NumPages + 1)) > (NumStart + 39))Then
NumStart = NumStart + 19
Else
NumPages = NumPages + 1
NumStart = (58 * NumPages) + 1
End If
I need to make a report using an Excel Macro that will write to a new page when the previous page is filled. I set up a For Loop to go through records in a dbf which will determine the number of pages to write out to. This is what I have written to test whether or not to go to the next page
It only works for the first few pages
'Test to see if at bottom of page
If ((53 * (NumPages + 1)) > (NumStart + 39))Then
NumStart = NumStart + 19
Else
NumPages = NumPages + 1
NumStart = (58 * NumPages) + 1
End If