Launch URL in Cell by Clicking Command Button?

Rekd

Banned
Joined
Apr 28, 2010
Messages
136
I've got a userform in a spreadsheet and want to launch a link that is stored in a cell based on a search result.

For example, user types in a part number. If the part number is found it calculates based on quantity in one cell and grabs pricing data for that part. I'd also like to be able to click a command button and have it launch a link stored in a different cell on the same row as the part number.

How can I get the URL from the cell in column B row 155? I've tried things like

Code:
 Result = Range("B" & FoundRow).Hyperlinks

But it errors. When I type "Hyperlinks." it gives me an option to "add" and some other optionss, but not to simply get the value.

TYIA
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,225,510
Messages
6,185,386
Members
453,289
Latest member
ALPOINT_AIG

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