+ Reply to Thread
Results 1 to 2 of 2

1 touch printing macro

  1. #1
    Registered User
    Join Date
    08-29-2005
    Posts
    1

    1 touch printing macro

    I have a problem setting up my printer macro. Excel sets up a printing session that won't allow my macro to work. So is there a way to bypass or override the printing session (Ne01) that it sets up? This macro is supposed to choose a printer, then after printing the document, it should change it back to the default printer. Please tell me how to write the proper code.

    Sub Macro3()
    '
    ' Macro3 Macro
    ' Macro recorded 8/12/2005 by Tygi

    '
    Application.ActivePrinter = "\\ATLAS\DoorshopRicoh1013F on Ne01:"
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
    "\\ATLAS\DoorshopRicoh1013F on Ne01:", Collate:=True
    Application.ActivePrinter = "\\ATLAS\Ricoh1013FPCL6 on Ne01:"
    End Sub

  2. #2
    Registered User
    Join Date
    09-16-2003
    Location
    Waiau Pa NZ
    Posts
    81
    Not sure whether this could also be the problem at your place.............but

    I have been working with this solution for a while now.
    We had the problem of the network assigning different numbers to the network printers using Ne01, Ne02, Ne03 or Ne04.
    This macro will search the possibilities and always find the right one.
    It will then execute the print job and go back to the default printer



    Sub selectprntrandprintlbl()
    Dim oldpname As String
    Dim temppname As String
    oldpname = Application.ActivePrinter
    For j = 0 To 9
    On Error Resume Next
    temppname = "\\nzdfprn01\Label_UHT_Sato on Ne0" & j & ":"
    Application.ActivePrinter = temppname
    If Application.ActivePrinter = temppname Then
    Exit For
    End If
    Next j
    Application.ActivePrinter = "temppname"
    prntlbl 'prntlbl is the name of a macro
    Application.ActivePrinter = oldpname

    End Sub

    Hope that helps
    Greetings from New Zealand
    Bill Kuunders

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1