Hello everyone. I'm trying to set a print area within my spread sheet. When I record the macro, this is the code I get...
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlDown)).Select
ActiveCell.Range("A1:AA256"
.Select
ActiveSheet.PageSetup.PrintArea = "$C$10:$AC$265"
I need the program to actually to perform "Shift-EndDown" keysequence three times. When I run the macro though, the selection never moves past the first key sequence. I think I know why, but I don't know any VBA way to step around this.
Also, my row count will always be different each time I run the macro, but, once again, I'm not sure how to digest that solution into VBA.
Any help would be greatly appreciated.
Chris
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlDown)).Select
ActiveCell.Range("A1:AA256"
ActiveSheet.PageSetup.PrintArea = "$C$10:$AC$265"
I need the program to actually to perform "Shift-EndDown" keysequence three times. When I run the macro though, the selection never moves past the first key sequence. I think I know why, but I don't know any VBA way to step around this.
Also, my row count will always be different each time I run the macro, but, once again, I'm not sure how to digest that solution into VBA.
Any help would be greatly appreciated.
Chris