HELP: print macro woes :S

K

KevinGPO

I find that the 'print' macro immediately calls the default printer in EXCEL
but it opens the Printer selection dialog window in WORD. How can one stop
the PRINT button from selecting the default printer? Surely, it can open
the Printer selection window?
 
T

tfoster

Hey Kevin! I know it is a week later, but have you thought of selecting
File->Print through a macro that you create? This will surely take care of
your problem...
 
K

KevinGPO

Yep. Tried that thanks. Nothing gets recorded in the macro. It could be
something me doing not right.


:S
 
D

David McRitchie

Are you using file, print when you record the macro.
Make sure your printer is set correctly during use of file, print.
 
K

KevinGPO

Yes I am. Am not wanting the worksheet to be printed. I just want the
command to display the Print Options/Dialog window.


David McRitchie said:
Are you using file, print when you record the macro.
Make sure your printer is set correctly during use of file, print.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

KevinGPO said:
Yep. Tried that thanks. Nothing gets recorded in the macro. It could be
something me doing not right.


:S
 
B

broro183

Hi Kevin,
Yes I am. Am not wanting the worksheet to be printed. I just want the
command to display the Print Options/Dialog window.

I'm not sure if this exactly what you want but try:
1)
application.dialogs(xlDialogPrint).show 'opens the "Print
Options/Dialog window"
'found by searching "Built-In Dialog" in Excel's VB help.
or
2)
expression.PrintOut(From, To, Copies, Preview, ActivePrinter,
PrintToFile, Collate, PrToFileName)
'found by searching "print" in Excel's VB help.

I think 1) is what you are after.

hth,
Rob Brockett
NZ
Always learning & the best way to learn is to experience...
 

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