Hi guys, I'm having a bit of difficulty with my code not working properly. It is not returning any errors, but it does not seem to have much effect on the sheet either. Here is the code (context explanation below):
The variable "ShadingRow" is set earlier in the code and refers to the final row that needs to be included in the print area.
The Do Loop cycles through looking for a blank space in column C since that designates the beginning of a new section (with Heading in column D). It is supposed to insert a page break before this new section.
I need this to print one page wide and have a page break after every section as I mentioned before. The code keeps it at one page wide, but cuts it off after column L no matter what. Also, the page breaks do not show despite the code finding the location and running the line of code properly. I have tried inserting various lines of code (both as a "With" grouping and individually) such as:
in various places with no luck. I also tried varying the format to see if that had any effect. The sheet will not always be a set number of pages tall.
Can anyone give me some advice as to why this may be happening?
Thanks!
Jeff
Bookmarks