Moving hyperlinked files to a different folder

DJKempo

New Member
Joined
Sep 24, 2024
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have an Excel spreadsheet that has a list/table of trained employees. when I click on the employees surnames it opens a hyperlink to an individual training completion email file. The email files a stored in a folder on a shared company drive.

What I would like to do is create a number of folders (e.g., 2023, 2024, 2025) within the current folder they are stored in and then move the email files into them accordingly.

I know by doing this is I will be breaking the hyperlink, but as I have over 2000 email files and would really like to organize them better without having to update them one at a time.

Thanks
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
I presume you are looking for a vba solution? Easiest might be for you to have 2 columns; one with old path, the other with new path. The code linked to doesn't completely work since the OP hasn't written it correctly, but it should give you a start if you're familiar with vba. N.B. I have not done this before but the key line here seems to be the one with ChangeLink.
You could assign the path values to variables as that OP did, or just make use of cell references.
HTH
 
Upvote 0

Forum statistics

Threads
1,225,493
Messages
6,185,306
Members
453,286
Latest member
JCM

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