LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default XLDialogPrint - PrintWhat- Selection Option

Sub AABB()
res = Application.Dialogs( _
xlDialogPrint).Show(, , , , , , , , , , , 1)
End Sub

worked for me.

--
Regards,
Tom Ogilvy



"TonyD" wrote:

Is there any way that I can make the windows printer dialogue box appear and
select the option "Selection" automatically in the "Print_What" area? I tried
the following but it doesn't select "Selection" and when I try to print it
keeps coming back.

Application.Dialogs(xlDialogPrint).Show ,,,,,,selection


 
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
Testing a group of option buttons for a selection. Amber_D_Laws[_71_] Excel Programming 1 February 15th 06 09:17 PM
Controlling the 'cancel' button in xldialogprint JNW Excel Programming 1 September 15th 05 09:08 PM
Tools - Option - "move selection after enter" jules75 Excel Worksheet Functions 0 August 17th 05 10:56 PM
Other option of InputBox for range selection yogee Excel Programming 7 April 23rd 05 10:47 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 08:41 AM.

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"