VBA Changing Directory for different users

Status
Not open for further replies.

Camel_Rider

Spammer
Joined
Jun 21, 2022
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hello there!
I've only recently started learning VBA and wanted to know if there was a way to have the directory change for different users. I have a basic excel VBA macro which performs the function of importing data. I want to share it with my colleagues but they have to manually change the code for the users name and to fit their file addresses. Was wondering if there was a way to have this automated.
Thank you in advance!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Are you using sharepoint? If so, use the complete sharepoint path and make sure everyone has access to that file.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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