I have been using the following code to set up a print range
All worked as required until it didn't for no reason.
strPrintRange is a string variable of "$B$2:$Z$1088"
I am now getting the following error
Run-time error '-2147319767 (80028029)':
automation error
Invalid forward reference, or reference to uncompiled type
I have been tweaking code in the procedure to sort out page breaks, etc but other than this, no major difference between when it did work an when it stopped working.
TIA
VBA Code:
strPrintRange = Range("Dashboard_OutputAll").Address
ActiveSheet.PageSetup.PrintArea = strPrintRange
strPrintRange is a string variable of "$B$2:$Z$1088"
I am now getting the following error
Run-time error '-2147319767 (80028029)':
automation error
Invalid forward reference, or reference to uncompiled type
I have been tweaking code in the procedure to sort out page breaks, etc but other than this, no major difference between when it did work an when it stopped working.
TIA