+ Reply to Thread
Results 1 to 1 of 1

Error Settind Default Printer in VBA

  1. #1
    Registered User
    Join Date
    07-28-2006
    Posts
    7

    Error Settind Default Printer in VBA

    Hello,

    When I try to run the following code in a macro:

    Sub PrintToAnotherPrinter()

    Dim STDprinter As String

    STDprinter = Application.ActivePrinter

    Application.ActivePrinter = "Adobe PDF on Ne02"

    End Sub


    I am getting an error code that looks like this:

    Microsoft Visual Basic
    Red Cross "400"
    OK Help

    Help brings up a blank screen and OK just cancels the operation. Can anyone help me with my code?

    Thanks!
    Last edited by Vassago; 08-17-2006 at 06:46 PM.

+ 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