Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using the macro below:
Sub maketable() Set SheetList = ActiveWindow.SelectedSheets For Each sh In SheetList sh.Activate Range("B19").Select Range(Selection, Selection.End(xlDown)).Select Range(Selection, Selection.End(xlToRight)).Select ActiveWorkbook.Names.Add Name:=Application.InputBox("Enter Table Name"), RefersToR1C1:= _ "=throttling20051222!R19C2:R97C6" Next sh End Sub I need to change this part - RefersToR1C1:= "=throttling20051222!R19C2:R97C6" so that the new name refernences the selected worksheet. Is it possible ? Thank you in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to work only on selected worksheets | Excel Discussion (Misc queries) | |||
Run A Macro On Selected Worksheets | Excel Worksheet Functions | |||
Modify a Macro to Repeat for all Selected Worksheets | Excel Worksheet Functions | |||
named ranges - changing ranges with month selected | Excel Programming | |||
Help: Macro to to sum across selected visible worksheets | Excel Programming |