Display Print Dialog with Selection: Excel 2003

C

Colleen M

I am using Application.Dialogs(xlDialogPrint).Show
to display the print dialog.

How do I activate "Selection" under Print What?
 
J

JLGWhiz

Not sure I understand the question, but the Selection option would apply to
a range that was selected prior to displaying the dialog box. i.e. If you
had selected Range("A1:D10") prior to opening the Print dialog box, you
would simply select the "Selection" option and it would print that range.
You cannot make the selection after you have opened the dialog box.
 
C

Colleen M

Sorry, I should have given more detail.

I have 3 control buttons in a spreadsheet. Each one selects a specific range
in the sheet, then opens the Print dialog box. I would like to have the
"Selection" box automatically selected so the user simply has to select the
printer and number of copies (and not have to remember to choose to print the
selection).
 
J

Jim Cone

Application.Dialogs(xlDialogPrint).Show , , , , , , , , , , , 1
'--
Also, try it with 2, 3 and 4 and see what happens.
--
Jim Cone
Portland, Oregon USA
(3 week free trial of "Special Print" Excel add-in)




"Colleen M" <[email protected]>
wrote in message
Sorry, I should have given more detail.

I have 3 control buttons in a spreadsheet. Each one selects a specific range
in the sheet, then opens the Print dialog box. I would like to have the
"Selection" box automatically selected so the user simply has to select the
printer and number of copies (and not have to remember to choose to print the
selection).
 
J

JLGWhiz

Well, it shows the arguments for it, but somebody smarter than me will have
to show you how to use it. I have tried every conventional way to apply the
argument for Selection and it will not take. I will try the knowledge base
for more info, but for now it looks like the user will have to remember to
click it in the dialog box.
 
J

JLGWhiz

Hi Jim, I could swear that I had tried that syntax, but apparently it was
one that I missed. Thanks for the input and edification.
 
J

Jim Cone

I once spent a long time screwing with another dialog and some of what I learned stuck with me.
At least Excel (most of the time) doesn't crash when you put in an incorrect value.
--
Jim Cone


"JLGWhiz" <[email protected]>
wrote in message Hi Jim, I could swear that I had tried that syntax, but apparently it was
one that I missed. Thanks for the input and edification.
 
J

JLGWhiz

I think the software engineer who was developing that project must have left
the company before he put the finishing touches to it.
 
C

Colleen M

Jim, worked like a charm, thanks!
--
Colleen


Jim Cone said:
Application.Dialogs(xlDialogPrint).Show , , , , , , , , , , , 1
'--
Also, try it with 2, 3 and 4 and see what happens.
--
Jim Cone
Portland, Oregon USA
(3 week free trial of "Special Print" Excel add-in)




"Colleen M" <[email protected]>
wrote in message
Sorry, I should have given more detail.

I have 3 control buttons in a spreadsheet. Each one selects a specific range
in the sheet, then opens the Print dialog box. I would like to have the
"Selection" box automatically selected so the user simply has to select the
printer and number of copies (and not have to remember to choose to print the
selection).
--
Colleen



.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top