Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Can I put button on spreadsheet to make it print a specific part?

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Can I put button on spreadsheet to make it print a specific part?

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JCS JCS is offline
external usenet poster
 
Posts: 93
Default Can I put button on spreadsheet to make it print a specific part?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
print button macro & specific tabs to print Chuck[_3_] Excel Worksheet Functions 2 November 22nd 07 12:21 AM
How do I make my spreadsheet so part of it has it's own scrollbar SarahQ Excel Discussion (Misc queries) 1 September 5th 06 08:41 AM
Make a 'Print button' BrianT New Users to Excel 2 June 30th 06 09:57 PM
NEED TO MAKE THE PRINT BUTTON FUNCTION IN WORKSHEET dlc-forbes Excel Worksheet Functions 2 April 9th 06 01:11 PM
Add new button to spreadsheet to print Paul Excel Worksheet Functions 1 February 22nd 06 07:21 PM


All times are GMT +1. The time now is 11:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"