Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Macro to be used in any cell
How do I make a macro available in any cell of a worksheet.
I created it in a cell, but I want to be able to use it in any cell. Thanks. Range("L1058").Select ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _ "..\..\..\Customer Filing\" Range("L1058").Select Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True Range("C1").Select Application.CommandBars("Stop Recording").Visible = True End Sub |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Macro to be used in any cell
Try reducing it to just:
ActiveSheet.Hyperlinks.Add Anchor:=Selection, _ Address:="..\..\..\Customer Filing\" Selection.Hyperlinks(1).Follow _ NewWindow:=False, AddHistory:=True Regards Trevor "Diane" wrote in message ... How do I make a macro available in any cell of a worksheet. I created it in a cell, but I want to be able to use it in any cell. Thanks. Range("L1058").Select ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _ "..\..\..\Customer Filing\" Range("L1058").Select Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True Range("C1").Select Application.CommandBars("Stop Recording").Visible = True End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Conditional Format as a MACRO | Excel Worksheet Functions | |||
Row Expansion | Excel Worksheet Functions | |||
Closing File Error | Excel Discussion (Misc queries) | |||
macro help | Excel Discussion (Misc queries) | |||
GET.CELL | Excel Worksheet Functions |