Can anyone offer thoughts on how to make the printarea property work for a noncontinguous range?
Dim r1, r2, r3, r4, r5, r6, r7, r8, r9, myMultipleinRange As Range
Set r1 = Sheets("in".Range("l274:l500"
Set r2 = Sheets("in".Range("d274500"
Set r3 = Sheets("in".Range("c274:c500"
Set r4 = Sheets("in".Range("d274:d500"
Set r4 = Sheets("in".Range("w274:w500"
Set r5 = Sheets("in".Range("o274500"
Set r6 = Sheets("in".Range("p274500"
Set r7 = Sheets("in".Range("q274:q500"
Set r8 = Sheets("in".Range("h274:q500"
Set r9 = Sheets("in".Range("j274:j500"
Set myMultipleinRange = Union(r1, r2, r3, r4, r5, r6, r7, r8, r9)
'Sheets("in".PageSetup.PrintArea = "myMultipleinRange"
I get an error message on the last line.
TIA
Dim r1, r2, r3, r4, r5, r6, r7, r8, r9, myMultipleinRange As Range
Set r1 = Sheets("in".Range("l274:l500"
Set r2 = Sheets("in".Range("d274500"
Set r3 = Sheets("in".Range("c274:c500"
Set r4 = Sheets("in".Range("d274:d500"
Set r4 = Sheets("in".Range("w274:w500"
Set r5 = Sheets("in".Range("o274500"
Set r6 = Sheets("in".Range("p274500"
Set r7 = Sheets("in".Range("q274:q500"
Set r8 = Sheets("in".Range("h274:q500"
Set r9 = Sheets("in".Range("j274:j500"
Set myMultipleinRange = Union(r1, r2, r3, r4, r5, r6, r7, r8, r9)
'Sheets("in".PageSetup.PrintArea = "myMultipleinRange"
I get an error message on the last line.
TIA