How to save a PDF from an Excel file with macro in every user

Klairy Chrysopoulou 0 Reputation points
2023-07-12T14:47:43.37+00:00

Good evening,

I'd like to know how to export a complete Excel worksheet as a PDF for each user who utilizes it via macro. My issue is that when you record the macro, the last step is to choose where to save the PDF file, which is dependent on the user's path. Can you modify the macro to make it function for every user who uses it? For example (I'm not sure if it's possible to write it in an excel programming environment) read the user's path when the excel file is opened and replace the user name in the save option.)

Thank you in advance!

Microsoft 365 and Office Development Other
Microsoft 365 and Office Excel For business Windows
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.