Excel Print to PDF Macro - How to make it work on multiple users computers

Tim935

New Member
Joined
Sep 17, 2008
Messages
34
All,

Description:
I have a workbook with many macros and reports that get generated, and this one report in particular (simple chart) I need printed to PDF.

This macro is activated by clicking on a print button for this report and then it prompts them to name and save the file.

Problem:
The workbook is on the network that multiple users will work out of (at different times) so how do I get the VBA to allow these different users to print to PDF?

It works fine for me bit I've noticed the "Adobe PDF on Ne02:" is unique to each user that tries to print, my coworker is Ne04: etc.


Code that works for my machine:
-----------------------------------------------------------------------
Sub Chart()
Application.ScreenUpdating = False
Application.StatusBar = "Printing PE Review Performance Per Site to Adobe"
Sheets("Performance Report").Visible = True
Sheets("Performance Report").Select
Application.ActivePrinter = "Adobe PDF on Ne02:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"Adobe PDF on Ne02:", Collate:=True
Sheets("Rollup Review Console").Select
Sheets("Performance Report").Visible = False
Application.ScreenUpdating = True
End Sub
-----------------------------------------------------------------------
Thanks in advance!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,203,630
Messages
6,056,422
Members
444,863
Latest member
powerdt

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