Macro won't work - Please help

J

JayLatimer

I have a macro to convert urls in a column to the words Tax record. I can not
get it to work. Any help would be greatly appreicated. The Marco is:

Sub chngelink()
'
' chngelink Macro
'
' Keyboard Shortcut: Ctrl+z
Sub ChangelinkT()
Dim MyCol As String
Dim MySht As String
On Error Resume Next
MyCol = InputBox("Enter column LETTER(S)")
MySht = InputBox("Enter sheet name")
Lastrow = Sheets(MySht).Cells(Cells.Rows.Count, MyCol).End(xlUp).Row
For Each c In Sheets(MySht).Range(MyCol & "2:" & MyCol & Lastrow)
c.Hyperlinks(1).TextToDisplay = "Tax record"
Next
End Sub
 
S

Steve Schapel

Jay,

The focus of this newsgroup is macros in Access, the database program. Your
question seems to relate to Excel (where VBA procedures are called macros,
which is not the case in Access). You will have a better chance of a good
answer if you re-post your question to an Excel related group.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top