script to update hyperlink base on cell value

jim5130

New Member
Joined
Dec 11, 2014
Messages
2
Hi Guys,

Would you please help to find a script I want to open a hyperlink by selecting a cell value first, then run the script. I have almost the same script which is working perfectly but this one is by selecting the cell value and run the RDP:

==============
Sub rdpnow()

' Get currently selected server name
serverName = Selection.Value

If (serverName <> "") Then

RDPWindow = Shell("C:\windows\system32\mstsc.exe /v:" & serverName & " /admin", 1)

End If

End Sub

=========

This time I want to select the cell value and open a URL. Let say on Cell A1=192.168.1.1. The output should be https://192.168.1.1:4343. ​Can you please help? Thanks.
 

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