This code works fine on the sheet until I try to add a page. When I say "add a page" I mean there is a macro that adds an additional page to this sheet, when the user runs out of lines, they click and add page button and it adds another page to the sheet.
When you try to add a page it gives a:
"Runtime Error"
"Application-defined or object defined error"
Then if you debug it it takes you to this code and highlights in yellow the line
.Offset(, IIf(.Column = 1, 1, -1)).ClearContents
Im an amatuer at best, when it comes to VBA code sometimes I can understand and work my way through some of this stuff, but this line has me baffled.
I would like to attach the file but even zipped it is to large to attach.
Thanks for all the help
Bookmarks