[tt]I have a 3-tabbed worksheet for which I want to create a few print macros. 1 macro each to print the 3 tabs individually and then a 4th macro to print all 3. I recorded a macro to print one of the tabs and this is what it gave me:
Sub Print_Gaps()
Range("A1:J80"
.Select
ActiveSheet.PageSetup.PrintArea = "$A$1:$J$80"
ActiveWindow.SelectedSheets.PrintOut Copies:=1
End Sub
I thought that the keystrokes would have been captured rather than the cell references at the time. For example, the keystrokes were: [HOME] [UP ARROW] [UP ARROW]...etc. to capture the desired range and the macro saved the actual cell references. Users can add and delete rows of information so "A1:J80" won't always be the range.
First question: Can I set up a macro to record the actual keystrokes rather than cell references?
Second question: Can I instruct the macro to work on a particular or multiple tabs (all with the same format)?
Although I've used VB in Access, this is my first attempt at using it in Excel and would really appreciate the help. Thanks in advance!
[/tt]
Jim DeGeorge![[wavey] [wavey] [wavey]](/data/assets/smilies/wavey.gif)
Sub Print_Gaps()
Range("A1:J80"
ActiveSheet.PageSetup.PrintArea = "$A$1:$J$80"
ActiveWindow.SelectedSheets.PrintOut Copies:=1
End Sub
I thought that the keystrokes would have been captured rather than the cell references at the time. For example, the keystrokes were: [HOME] [UP ARROW] [UP ARROW]...etc. to capture the desired range and the macro saved the actual cell references. Users can add and delete rows of information so "A1:J80" won't always be the range.
First question: Can I set up a macro to record the actual keystrokes rather than cell references?
Second question: Can I instruct the macro to work on a particular or multiple tabs (all with the same format)?
Although I've used VB in Access, this is my first attempt at using it in Excel and would really appreciate the help. Thanks in advance!
Jim DeGeorge
![[wavey] [wavey] [wavey]](/data/assets/smilies/wavey.gif)