New To VBA
I wrote a macro to print a specific range on a specific sheet:
Sub PrintPreview()
If ActiveSheet.Name <> "Sheet2" Then _
Sheets("database").Range("C1:AE12").PrintPreview
End Sub
However, the table I am attempting to print will have additional rows added (number of columns will remain constant). So I then created a dynamic range called "Print_Area". However, I can't figure out how to incorporate the dynamic range into my macro.
Thanks in advance
I wrote a macro to print a specific range on a specific sheet:
Sub PrintPreview()
If ActiveSheet.Name <> "Sheet2" Then _
Sheets("database").Range("C1:AE12").PrintPreview
End Sub
However, the table I am attempting to print will have additional rows added (number of columns will remain constant). So I then created a dynamic range called "Print_Area". However, I can't figure out how to incorporate the dynamic range into my macro.
Thanks in advance