ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VB code to open Print window (https://www.excelbanter.com/excel-programming/318435-vbulletin-code-open-print-window.html)

OscarC

VB code to open Print window
 
Hello,

Just a quick one. Does anyone know what the VB code is to open the
Print box (ie when you click FilePrint)

thanks,

Michael

Bob Phillips[_6_]

VB code to open Print window
 
Application.Dialogs(xlDialogPrint).Show

--

HTH

RP
(remove nothere from the email address if mailing direct)


"OscarC" wrote in message
...
Hello,

Just a quick one. Does anyone know what the VB code is to open the
Print box (ie when you click FilePrint)

thanks,

Michael




Jim Thomlinson[_3_]

VB code to open Print window
 
Application.Dialogs(xlDialogPrint).Show

Hope this helps

"OscarC" wrote:

Hello,

Just a quick one. Does anyone know what the VB code is to open the
Print box (ie when you click FilePrint)

thanks,

Michael


OscarC

VB code to open Print window
 
On Mon, 6 Dec 2004 22:35:13 -0000, "Bob Phillips"
wrote:

Application.Dialogs(xlDialogPrint).Show




Thanks!

N10

VB code to open Print window
 

"OscarC" wrote in message
...
Hello,

Just a quick one. Does anyone know what the VB code is to open the
Print box (ie when you click FilePrint)

thanks,

Michael


Hi Michael

Sub prinit ()

ActiveWindow.SelectedSheets.PrintPreview

End Sub

n10




All times are GMT +1. The time now is 03:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com