L
luch
I have a macro that displays a form to print a Gantt chart - I would
like this form to also show the currently selected printer and a button
to change, the printer, if desired. I have this functionality in Excel
VBA, like so:
'button to change printer
Sub PrinterChg_Click()
Application.Dialogs(xlDialogPrinterSetup).Show
PrinterLabel.Caption = Application.ActivePrinter
End Sub
Unfortunately, while apparently I can change the printer with
FilePrintSetup in Project, I can't see a way to return the current
printer, like "Application.ActivePrinter", nor can I find a way to
display a printer selection box, like "xlDialogPrinterSetup" provides.
Are there built-in functions in Project that offer the same info as in
Excel? Or is there a way to do what I want through VBA?
thanks for any help.
Shaun
like this form to also show the currently selected printer and a button
to change, the printer, if desired. I have this functionality in Excel
VBA, like so:
'button to change printer
Sub PrinterChg_Click()
Application.Dialogs(xlDialogPrinterSetup).Show
PrinterLabel.Caption = Application.ActivePrinter
End Sub
Unfortunately, while apparently I can change the printer with
FilePrintSetup in Project, I can't see a way to return the current
printer, like "Application.ActivePrinter", nor can I find a way to
display a printer selection box, like "xlDialogPrinterSetup" provides.
Are there built-in functions in Project that offer the same info as in
Excel? Or is there a way to do what I want through VBA?
thanks for any help.
Shaun