#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default Print

The VB book I have is very limited for excel. Is there a command in which I
can put for my input button that will print the page that I selected??

Thanks.. Michael



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Print

I'm not sure what you mean by "selected". did you select
it with the mouse? I think i tryed that and ran into
problems. I think i it would be best to have the code
select the print area but you gave no data structure so i
don't know really. but here is some code i use to select
and print.
Range("A1").Select
Selection.CurrentRegion.Select
ActiveWorkbook.Names.Add Name:="PrintStuff", _
RefersTo:=Selection, Visible:=True

ActiveSheet.PageSetup.PrintArea = "PrintStuff"
'ActiveWindow.SelectedSheets.PrintPreview
'ActiveWindow.SelectedSheets.PrintOut Copies:=2,
Collate:=True

the printpreview line and printout line are commented out
here. use when ever one you want.
-----Original Message-----
The VB book I have is very limited for excel. Is there a

command in which I
can put for my input button that will print the page that

I selected??

Thanks.. Michael



.

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 Error Message: Print titles must be contiguous and complete sum1029 Excel Discussion (Misc queries) 1 September 16th 09 07:27 PM
Print and Print Preview Graphic Moving Resizing 2007/2003 Adam Rayburn Excel Discussion (Misc queries) 0 April 4th 07 04:18 PM
cell borders that I create dont show on print preview or print scott3435 Excel Discussion (Misc queries) 2 April 6th 06 02:37 AM
Pivot Table macro to set print area and print details of drill down data Steve Haskins Excel Discussion (Misc queries) 2 December 28th 05 04:59 PM
Active cell counting in particular print page (one sheet having different print area) ananthmca2004 Excel Worksheet Functions 1 November 24th 05 11:29 AM


All times are GMT +1. The time now is 03:57 AM.

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

About Us

"It's about Microsoft Excel"