willow1985
Well-known Member
- Joined
- Jul 24, 2019
- Messages
- 929
- Office Version
- 365
- Platform
- Windows
Hi, I was hoping someone could help me with a macro that could hyperlink every cell in column A to the directory/file name in column D and F. I have a list of hundreds of employees and am looking for a quick way to link to their folders without doing it manually.
Thank you very much to anyone that can help!
Thank you very much to anyone that can help!
Book1 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | Employee # | Last Name | First Name | File Name | Directory | Hyperlink in column A | ||||||
2 | P2562 | Medina | Dorian | Medina, Dorian | \\198.100.2.77\mydata\Employee Files\M\ | |||||||
3 | P5551 | Mata | Meredith | Mata, Meredith | \\198.100.2.77\mydata\Employee Files\M\ | |||||||
4 | P1287 | Pruitt | Juan | Pruitt, Juan | \\198.100.2.77\mydata\Employee Files\P\ | |||||||
5 | P6524 | Harrison | Annabel | Harrison, Annabel | \\198.100.2.77\mydata\Employee Files\H\ | |||||||
6 | P0185 | Copeland | Gary | Copeland, Gary | \\198.100.2.77\mydata\Employee Files\C\ | |||||||
7 | P1830 | Mcclure | Mckenna | Mcclure, Mckenna | \\198.100.2.77\mydata\Employee Files\M\ | |||||||
8 | P8641 | Hammond | Ben | Hammond, Ben | \\198.100.2.77\mydata\Employee Files\H\ | |||||||
9 | P7135 | Neal | Pedro | Neal, Pedro | \\198.100.2.77\mydata\Employee Files\N\ | |||||||
10 | P0876 | Macdonald | Moshe | Macdonald, Moshe | \\198.100.2.77\mydata\Employee Files\M\ | |||||||
11 | P8626 | Ellis | Alena | Ellis, Alena | \\198.100.2.77\mydata\Employee Files\E\ | |||||||
12 | P4444 | Parrish | Nathan | Parrish, Nathan | \\198.100.2.77\mydata\Employee Files\P\ | |||||||
13 | P2384 | Cross | Jaquan | Cross, Jaquan | \\198.100.2.77\mydata\Employee Files\C\ | |||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2:D13 | D2 | =B2&", "&C2 |
E2:E13 | E2 | ="\\198.100.2.77\mydata\Employee Files\"&LEFT(B2,1)&"\" |