Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Macro to print plus list options?

Hi,

I've used the following code in a worksheet to bring up a printer dialog box:

Sub PrintGraphs()

ActiveSheet.PageSetup.PrintArea = "$1:$79"
ActiveSheet.PageSetup.PaperSize = xlPaperA3


Dim ActPrinter As String
Dim Answer As Boolean

With Application
ActPrinter = .ActivePrinter
Answer = .Dialogs(xlDialogPrinterSetup).Show
End With

If Answer = False Then
Exit Sub
Else

ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

End If

Application.ActivePrinter = ActPrinter


Is there any way to add the ability to show print options after selecting a
printer, such as paper size, portrait/landscape or number of copies?

Many thanks!
Marc
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Macro to print plus list options?

Application.Dialogs(xlDialogPageSetup).Show

"Marc T" wrote:

Hi,

I've used the following code in a worksheet to bring up a printer dialog box:

Sub PrintGraphs()

ActiveSheet.PageSetup.PrintArea = "$1:$79"
ActiveSheet.PageSetup.PaperSize = xlPaperA3


Dim ActPrinter As String
Dim Answer As Boolean

With Application
ActPrinter = .ActivePrinter
Answer = .Dialogs(xlDialogPrinterSetup).Show
End With

If Answer = False Then
Exit Sub
Else

ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

End If

Application.ActivePrinter = ActPrinter


Is there any way to add the ability to show print options after selecting a
printer, such as paper size, portrait/landscape or number of copies?

Many thanks!
Marc

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Macro to print plus list options?

Thanks for that, works a treat!

Marc

"dmoney" wrote:

Application.Dialogs(xlDialogPageSetup).Show

"Marc T" wrote:

Hi,

I've used the following code in a worksheet to bring up a printer dialog box:

Sub PrintGraphs()

ActiveSheet.PageSetup.PrintArea = "$1:$79"
ActiveSheet.PageSetup.PaperSize = xlPaperA3


Dim ActPrinter As String
Dim Answer As Boolean

With Application
ActPrinter = .ActivePrinter
Answer = .Dialogs(xlDialogPrinterSetup).Show
End With

If Answer = False Then
Exit Sub
Else

ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

End If

Application.ActivePrinter = ActPrinter


Is there any way to add the ability to show print options after selecting a
printer, such as paper size, portrait/landscape or number of copies?

Many thanks!
Marc

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
write a macro to print to search a list and print certain workshee Scott Smith[_2_] Excel Programming 3 September 26th 08 10:35 PM
Print macro to bring up print options Nelly[_2_] Excel Programming 1 May 13th 08 09:16 PM
Print macro to bring up print options Nelly[_2_] Excel Programming 6 May 13th 08 09:16 PM
What are the options in the print macro? TKoel Excel Programming 1 February 13th 08 05:55 PM
filter: how to print filter list options in dropdown box help please Excel Discussion (Misc queries) 2 October 17th 07 01:53 AM


All times are GMT +1. The time now is 04:19 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"