Discussion Locked
0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I know how to create macros in Access. How do you create a print macro on a worksheet in Excel referencing another worksheet within the book? I can not get it to work.
4 replies
by dklippert
One of the easiest ways is to go to Tools>Macros
Record New Macro.
Walk through the steps and then turn the recorder off.
You'll find that what Access calls macros is not the same as macros in Word/Excel etc.
Access strings prewritten procedures to gether and call them Macros.
Other applications use VBA--what Access calls Modules.
by megan26
Poster rated this answer.
by megan26
what are the steps to do a print macro then? I have a button that I want it to select a certain worksheet and print that. I have gotten to the record a new macro but then I am lost from there.
by dklippert
Sub PrintSheet2()
Sheets("Sheet2").Select
ActiveWindow.SelectedSheets.PrintOut
Sheets("Sheet1").Select
End Sub
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
1 helpful
9 replies
1 helpful
3 replies
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply
Discussion
Optimizing WordPress widgets and DOM size
0 helpful
3 replies
Discussion Locked
Best Ways to Improve Website Visibility
0 helpful
5 replies