Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have created a spreadsheet with several pages on it. I would like to be
able to have a button at each page that can be pushed to print that particular page. I am fairly familiar with excel but not with macros. Can I do this with a macro? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Ok, this is pretty simple. Turn on the macro recorder:
http://www.anthony-vba.kefra.com/vba/vbabasic1.htm Another example of how to get started with VBA: http://www.vbtutor.net/VBA/vba_chp1.htm Follow the short example here to set the print area: http://spreadsheets.about.com/od/exc...printing_6.htm Turn off the macro recorder. Try that and post back and let me know how you're gettin' along. HTH, Ryan-- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "CindyMc" wrote: I have created a spreadsheet with several pages on it. I would like to be able to have a button at each page that can be pushed to print that particular page. I am fairly familiar with excel but not with macros. Can I do this with a macro? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Cindy,
Yes you can do what your are asking. Open up the Macro Editor (Alt-F11) Select Insert and then Module Paste in the following code: Sub Page1() ' Range("A23").Select Selection.CurrentRegion.Select Selection.PrintOut Copies:=1 Range("A23").Select End Sub Sub Page2() ' Range("A45").Select Selection.CurrentRegion.Select Selection.PrintOut Copies:=1 Range("A45").Select End Sub and so forth... Change the cell names in the Range command to the upper left corner of your range for each page. Then create a macro button located on the Forms toolbar (Excel 2003) and assign each macro to the appropriate button. If this helps, please press YES. JCS "CindyMc" wrote: I have created a spreadsheet with several pages on it. I would like to be able to have a button at each page that can be pushed to print that particular page. I am fairly familiar with excel but not with macros. Can I do this with a macro? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
print button macro & specific tabs to print | Excel Worksheet Functions | |||
How do I make my spreadsheet so part of it has it's own scrollbar | Excel Discussion (Misc queries) | |||
Make a 'Print button' | New Users to Excel | |||
NEED TO MAKE THE PRINT BUTTON FUNCTION IN WORKSHEET | Excel Worksheet Functions | |||
Add new button to spreadsheet to print | Excel Worksheet Functions |