Hi
I have a pretty basic knowledge on excel so please bear with me. I have created a spreadsheet and in the final column have put in a hyperlink to link to a folder on a network drive.
The folder contains about 200 other folders (customer names) with about 20,000 files (part numbers) in total. I want the hyperlink to go to a specific file in one of the folders depending on what part number is typed in another column on the spreadsheet ie column B is the part numbers so when the hyperlink is clicked on that line it searches the folder for for that particular part number. Is this possible?
If you want me to post the spreadsheet I can
Thanks
Paul
You can do this via VBA. Just post the sample spreadsheet and provide the folder path.
Cheers,
Arlette
If I helped, Don't forget to add to my reputation (click on the star below the post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [/code]
Hi Arlette
Thanks for the reply, I have attached the sample. The folder path would be V:drillshop\drill history
I would like the link in column H to find the part number written in column D
Thanks again for any help
Paul
Hello Paul,
Use HYPERLINK function. H2 copy down.
=HYPERLINK("V:\drillshop\drill history\"&D2&".xls","Click for file")
If it is not works replace V: with server name, \\Server name\
HTH; Haseeb
If your problem is solved, please say so clearly, and mark your thread as Solved:
Forum Rules & How to Mark a thread as SOLVED
Hi Haseeb
Thanks for the help, I tried that formula but the link still just opens up the main folder with all the other folders inside. It doesn't search for the part number in column D unless I'm doing something wrong.
Thanks
Paul
So if you click the link in column h and part number 222222 is in column D I want it to open up drill history (main folder) / customer 2 (sub folder) / 222222 (part number)
Regards
Paul
My last post was assuming, part number is inside the drill history without any sub folder. If you have sub folders in drill history & you are NOT sure in which sub folders contains the part numbers file. In that case VBA only the way to loop on those folders & open it.
If all the part numbers are in a specific folder you can add an additional path in HYPERLINK. eg:
=HYPERLINK("V:\drillshop\drill history\Customer\"&D2&".xls","Click for file")
Or, if your customer folder in drill history is same (NOT case sensitive) as entered in Col_C, you can use like,
=HYPERLINK("V:\drillshop\drill history\"&C2&"\"&D2&".xls","Click for file")
HTH; Haseeb
If your problem is solved, please say so clearly, and mark your thread as Solved:
Forum Rules & How to Mark a thread as SOLVED
Hi Haseeb
I don't know which sub folders contain the part numbers so I guess it will need VBA.
Would it be possible for you to help me with the code for this please?
Thanks
Paul
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks