Print Macro

Firecop1348

Board Regular
Joined
Oct 24, 2009
Messages
101
I have a EXCEL form that I store on a public drive that everyone can access using a shortcut placed on their computer Users open the document from their computer put in their data and are supposed to submit it to MY printer. MY printer can be accessed on that drive. My problem is I made a MACRO button so all they have to do is click on the form and it will print, clear the form and exit it without saving it. BUT it isnt printing on MY printer it is printing on their default printer. I have tried every thing to change it so it will print on mine it wont unless the user clicks on the down arrow and manually selects my printer Please help. thanks
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Go to one of the other users PC and open the wb and pput some fake data in it.

Create a second wb, turn on the macro recorder. Switch to your form and File|Print, change printer, print (ie - the steps the users are taking now).

Take a look at the recorded macro. It may be enough to give you what needs changed in your current code - something like:
Code:
    Windows("Your forms name").Activate
    Application.ActivePrinter = "Fax on Ne00:"
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
        "Fax on Ne00:"

Hope that helps,

Mark
 
Upvote 0

Forum statistics

Threads
1,215,049
Messages
6,122,864
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top