Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
'ActiveWorkbook.Names.Add Name:' how to make range variable?
Data is coming into a worksheet, and from a macro, I determine the range
using Selection.CurrentRegion.Select, I then .Add Name, but the macro is setting the range. I want the range to change each time the macro is run. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
'ActiveWorkbook.Names.Add Name:' how to make range variable?
Hard to say what the problem is without seeing your code.
Perhaps Range("A1").CurrentRegion.Name = "Data1" -- Regards, Tom Ogilvy "TeeSea" wrote in message ... Data is coming into a worksheet, and from a macro, I determine the range using Selection.CurrentRegion.Select, I then .Add Name, but the macro is setting the range. I want the range to change each time the macro is run. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how to make range names universal in workbook | Excel Discussion (Misc queries) | |||
Variable names for named range | Excel Discussion (Misc queries) | |||
Mutiple names in ActiveWorkbook.SendMail Recipients:= | Excel Discussion (Misc queries) | |||
Activeworkbook.range --- Not supported by VBScript? | Excel Programming | |||
Using ActiveWorkbook.Names.Add Name:= | Excel Programming |