Monday, January 7, 2013

How to Convert Cell Values To Hyper Links using Excel VBA Macro

Excel VBA Macro to Convert Cell Values To Hyper Links
The following Macro will Convert the Cell Values of Range ['A1:A100'] to Hyperlinks
Sub Convert_To_Hyperlinks()
Dim x As Integer
For x = 1 To 100

If Cells(x, 1) <> "" Then Cells(x, 1).Select

ActiveSheet.Hyperlinks.ADD Anchor:=Selection, _
Address:=Cells(x, 1).value, TextToDisplay:=Cells(x, 1).value
'Adress:="www.google.com",TextToDisplay:="Google"

End If

Next x

End Sub

Th@nks..Tamatam
    

No comments:

Post a Comment

Hi User, Thank You for visiting My Blog. Please post your genuine Feedback or comments only related to this Blog Posts. Please do not post any Spam comments or Advertising kind of comments which will be Ignored.

Featured Post from this Blog

How to compare Current Snapshot Data with Previous Snapshot in Power BI

How to Dynamically compare two Snapshots Data in Power BI Scenario: Suppose, we have a sample Sales data, which is stored with Monthly Snaps...

Popular Posts from this Blog