Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro That doesn't work - Please help
I have a macro which converts urls in a column to the words "Tax Record" but
the macro will not work. When I run the Macro it prompts for Column and then prompts for sheet name as expected. When valid inputis given to both questions the Macro ends without error but does not convert the urls in the column identified into the words "Tax Record" I would appreicate any help I can get. The Marco is: Sub chngelink() ' ' chngelink Macro ' ' Keyboard Shortcut: Ctrl+z 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro to sum doesn't work | Excel Discussion (Misc queries) | |||
Macro to update a column in a work based on another work sheet | New Users to Excel | |||
Macro works Macro does not work | Excel Discussion (Misc queries) | |||
If I have a work sheet protected and try to run a macro to hide rows or columns it won't work. Correct? | Excel Programming | |||
Why does the macro not work? | Excel Worksheet Functions |