Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro eliminating named ranges
HI
I have a macro that runs whenever I refresh my worksheet. I also have dynamic named ranges in the worksheet that I use for charts. Problem is that whenever I run the macros to refresh the worksheet, two ofhte namved ranges are erased. I've tried moving them to different parts of the workbook, or redefining the names, and any of a number of things. They still get erased every time I refresh the workbook. The really frustrating part is that it only happens for these two named ranges, which only affect one chart. Everything else runs perfectly. Any idea what is going on here? I don't have much hair left to rip out.. TIA |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro eliminating named ranges
Just guessing--when you refresh your workbook, you delete the range that is
named. If that's the case, just have your macro that refreshes the workbook create the name (again). Just record it when you add it manually and incorporate that into your code. JonR wrote: HI I have a macro that runs whenever I refresh my worksheet. I also have dynamic named ranges in the worksheet that I use for charts. Problem is that whenever I run the macros to refresh the worksheet, two ofhte namved ranges are erased. I've tried moving them to different parts of the workbook, or redefining the names, and any of a number of things. They still get erased every time I refresh the workbook. The really frustrating part is that it only happens for these two named ranges, which only affect one chart. Everything else runs perfectly. Any idea what is going on here? I don't have much hair left to rip out.. TIA -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Problem creating named ranges in a Macro! | Excel Discussion (Misc queries) | |||
macro to delete all named ranges in a workbook en masse? | Excel Discussion (Misc queries) | |||
Macro (Print) - Calling Named Ranges | Excel Discussion (Misc queries) | |||
Named Ranges - Macro Problems | Excel Programming | |||
Problems with VBA macro for creating named ranges - ARRRG! | Excel Programming |