Article ID: 162239
Article Last Modified on 1/19/2007
Sub GetActivePrinter() ' This constant is used to hold the title of the message box Const Caption As String = "Active Printer Name" ' This variable is used to hold the name of the active printer Dim PrinterName As String ' Assign the active printer to the variable PrinterName = Application.ActivePrinter ' Display the message box MsgBox PrinterName, vbInformation, Caption End Sub
Additional query words: wordcon 8.00 97 off97 ppt8 vbe word8 word97 xl97 ppt97 xlvbahowto
Keywords: kbprogramming KB162239