Hyperlink to Folder Location

Eurekaonide

Active Member
Joined
Feb 1, 2010
Messages
433
Hi All

I have a form which the user inputs data into and then the data gets fed into the set relevant cells on a worksheet.

One of the boxes they need to fill in is a Hyperlink to a folder location.

What I guess i would liek to happen is that when they click (or in deed Tab) to this cell that the normal dialogue box pops up to select the path to the document location and then show this path. in the corresponding cell (say Cell AJ)
does anyone have any code that i could try for this please, tried searching but cannot find what I'm after.
 
I'm getting an error code of 1004
"Application-defined or object-defined error"

Should I be declaring something?

my code;
HTML:
Range("AJ" & iRow).Formula = "=Hyperlink(" & TextBox34.Text & ")"
 
Upvote 0

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
forgot the double quotes, sorry
PHP:
Range("AJ" & iRow).Formula = "=Hyperlink(""" & TextBox34.Text & """)"
 
Upvote 0
Fantastic - thank you so much you have saved me so much work trying to locate or remember where over 200 files are kept :-D
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,719
Members
452,939
Latest member
WCrawford

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