Find and Link VBA Code

Mission_Control

New Member
Joined
Aug 6, 2013
Messages
7
I have a basic spreadsheet to indicate bill payment status but what I would like is to automate my hyperlinks in this sheet. My first column is simply an invoice number followed by other information in the adjacent columns. I'm sure it's possible and may have already been done (but I couldn't find such a script).

What I am looking to do is have a VBA code automatically link a cell to a file or directory on my computer with the same corresponding name, without all the files having to be in one file as a mass conglomerate?
So, if cell A2 = "Invoice #23456" the cell would link to John Smith's home over in my residential work folder with the file name "Invoice #23456".
The path name would look roughly: /username/company/residential/JohnSmithAddress/Invoice #23456
But, if cell A3 = "Invoice #23457" the cell would link to Jane Doe's company over in my commercial work folder with the file name "Invoice #23457"
The path name would look roughly: /username/company/commercial/JaneDoeCompany/Invoice #23457

If there is already a script or add-on or something made that would be fantastic as I do not have the experience in VBA to execute this idea myself. Any ideas would be greatly appreciated.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,216,095
Messages
6,128,795
Members
449,468
Latest member
AGreen17

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