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

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

GTO

MrExcel MVP
Joined
Dec 9, 2008
Messages
6,154
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,151,984
Messages
5,767,440
Members
425,414
Latest member
chwein

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
Top