A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Programming
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

xlDialogPrint arguments



 
 
Thread Tools Display Modes
  #1  
Old February 15th 10, 06:01 PM posted to microsoft.public.excel.programming
TWR
external usenet poster
 
Posts: 30
Default xlDialogPrint arguments

Can someone tell me how to disable the "Print Preview" button in the
xlDialogPrint dialog?

Thanks,
Ads
  #2  
Old August 6th 12, 06:15 PM
PPCGURU PPCGURU is offline
Banned
 
First recorded activity by ExcelBanter: Aug 2012
Location: Mission Beach, CA
Posts: 2
Default

Quote:
Originally Posted by TWR View Post
Can someone tell me how to disable the "Print Preview" button in the
xlDialogPrint dialog?

Thanks,
Bump!

Looking for the answer to this same question. Also I would like to specify the name of the document to print. This is what I have so far.

Quote:
Sub Macro1()
'
' Macro1 Macro
Application.ActivePrinter = "CutePDF Writer on CPW2:"


Application.Dialogs(xlDialogPrint).Show

End Sub
  #3  
Old August 6th 12, 07:05 PM
PPCGURU PPCGURU is offline
Banned
 
First recorded activity by ExcelBanter: Aug 2012
Location: Mission Beach, CA
Posts: 2
Default

Quote:
Originally Posted by PPCGURU View Post
retval = Application.Dialogs(xlDialogPrint).Show(Arg2:=1, Arg3:=100, Arg4:=5, Arg6:=False)

Found Answer to first disable preview, but I guess I meant I wanted to disable the dialouge box, not the print preview, still looking for that one.

I made this list.


Arg0
Arg1
Arg2 range_num
Arg3 from
Arg4 tocopies
Arg5 draft
Arg6 preview
Arg7 print_what
Arg8 color
Arg9 feed
Arg10 quality
Arg11 y_resolution
Arg12 selection
Arg13 printer_text
Arg14 print_to_file
Arg15 collate

Last edited by PPCGURU : August 6th 12 at 07:36 PM.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
xldialogprint arguments TWR Excel Programming 1 January 25th 10 10:16 AM
Open xldialogprint dialog box GreenFuze Excel Programming 2 April 21st 09 04:13 PM
xlDialogPrint [email protected] Excel Programming 9 October 18th 08 03:18 AM
application.dialogs(xlDialogPrint) - arguments David Excel Programming 0 October 17th 05 08:01 AM
VBA : xlDialogPrint function Gilbert Aponte[_2_] Excel Programming 0 October 15th 03 12:23 AM


All times are GMT +1. The time now is 12:42 PM.


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