Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Print macro to bring up print options

Hi probably a stupid question but did know how to do this. What macro do I
need to bring up the printer dialog box? I have one that just prints but
need to change paper type.

Thanks in advance
Nelly




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Print macro to bring up print options

hi
there are a number of printer dialog boxes but the code to call any dialog
is the same'
Application.Dialogs(xlDialogPageSetup).Show
the above lets you change paper size. i think. if not then curse my foul
memory and try one of these......
xldialogprintersetup
xldialogprintpreview
xldialogPrint
i think that's it.

Regards
FSt1

"Nelly" wrote:

Hi probably a stupid question but did know how to do this. What macro do I
need to bring up the printer dialog box? I have one that just prints but
need to change paper type.

Thanks in advance
Nelly





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Print macro to bring up print options

Sub kl()
prtSetUp = Application.Dialogs(xlDialogPrintPreview).Show
End Sub


"Nelly" wrote:

Hi probably a stupid question but did know how to do this. What macro do I
need to bring up the printer dialog box? I have one that just prints but
need to change paper type.

Thanks in advance
Nelly





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Print macro to bring up print options

On May 13, 2:06*pm, "Nelly" wrote:
Hi probably a stupid question but did know how to do this. What macro do I
need to bring up the printer dialog box? I have one that just prints but
need to change paper type.

Thanks in advance
Nelly


Application.Dialogs(xlDialogPrint).Show
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Print macro to bring up print options

You can probably do what you want with:

ActiveSheet.PrintOut(Preview:=True)

"Nelly" wrote:

Hi probably a stupid question but did know how to do this. What macro do I
need to bring up the printer dialog box? I have one that just prints but
need to change paper type.

Thanks in advance
Nelly







  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Print macro to bring up print options

Use it without parentheses

ActiveSheet.PrintOut Preview:=True

"Nelly" wrote:

Hi probably a stupid question but did know how to do this. What macro do I
need to bring up the printer dialog box? I have one that just prints but
need to change paper type.

Thanks in advance
Nelly





  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Print macro to bring up print options

Thanks for all the relies your stars ******

"JLGWhiz" wrote in message
...
Use it without parentheses

ActiveSheet.PrintOut Preview:=True

"Nelly" wrote:

Hi probably a stupid question but did know how to do this. What macro do
I
need to bring up the printer dialog box? I have one that just prints but
need to change paper type.

Thanks in advance
Nelly









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 macro to bring up print options Nelly[_2_] Excel Programming 1 May 13th 08 09:16 PM
What are the options in the print macro? TKoel Excel Programming 1 February 13th 08 05:55 PM
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
How to set DEFAULT print options in Excel to print gridlines? LKR Excel Discussion (Misc queries) 1 September 23rd 05 06:16 PM
Need Help w/ Print Macro to Print All Visible Sheets (including Charts) in a Workbook will Excel Programming 3 September 23rd 04 08:05 PM


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