Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Repeating a Macro For Each Selected Worksheet
I have this macro:
Sub temp() Range("B19").Select Range(Selection, Selection.End(xlDown)).Select Range(Selection, Selection.End(xlToRight)).Select ActiveWorkbook.Names.Add Name:="NameOfWorksheetHere", RefersToR1C1:= _ "='throttling 01102005'!R19C2:R115C6" End Sub Is it possible to run this macro on all worksheets in the workbook and have the name of the worksheet inserted into the "NameOfWorksheetHere" ? Thank you in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Editing a simple macro | Excel Worksheet Functions | |||
Not apply macro to every worksheet in activeworkbook | Setting up and Configuration of Excel | |||
How to run a macro when a worksheet is selected | Excel Worksheet Functions | |||
macro help | Excel Discussion (Misc queries) | |||
How do I get my personal macro worksheet to open whenever I open . | Excel Discussion (Misc queries) |