Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Named ranges in macros?
How do I write a macro refering to a named range in the sheet rather than the range itself. Ie. I have named cells A1 to F7 as "test". When writing a macro I want to refer to "test" rather than Range("A1:A7").select? -- fverlaine ------------------------------------------------------------------------ fverlaine's Profile: http://www.excelforum.com/member.php...o&userid=29637 View this thread: http://www.excelforum.com/showthread...hreadid=493469 |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Named ranges in macros?
worksheets("sheet1").range("Test").clearcontents
Most times, you don't have to select a range to work on it. fverlaine wrote: How do I write a macro refering to a named range in the sheet rather than the range itself. Ie. I have named cells A1 to F7 as "test". When writing a macro I want to refer to "test" rather than Range("A1:A7").select? -- fverlaine ------------------------------------------------------------------------ fverlaine's Profile: http://www.excelforum.com/member.php...o&userid=29637 View this thread: http://www.excelforum.com/showthread...hreadid=493469 -- Dave Peterson |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Named ranges in macros?
Range("Test").select
-- Kind regards, Niek Otten "fverlaine" wrote in message ... How do I write a macro refering to a named range in the sheet rather than the range itself. Ie. I have named cells A1 to F7 as "test". When writing a macro I want to refer to "test" rather than Range("A1:A7").select? -- fverlaine ------------------------------------------------------------------------ fverlaine's Profile: http://www.excelforum.com/member.php...o&userid=29637 View this thread: http://www.excelforum.com/showthread...hreadid=493469 |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Named ranges in macros?
Thanks thats great :) -- fverlaine ------------------------------------------------------------------------ fverlaine's Profile: http://www.excelforum.com/member.php...o&userid=29637 View this thread: http://www.excelforum.com/showthread...hreadid=493469 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Named ranges: don't want absolute references | Excel Discussion (Misc queries) | |||
Named ranges: don't want absolute references | Excel Discussion (Misc queries) | |||
Like 123, allow named ranges, and print named ranges | Excel Discussion (Misc queries) | |||
Macro (Print) - Calling Named Ranges | Excel Discussion (Misc queries) | |||
Named dynamic ranges, copied worksheets and graph source data | Charts and Charting in Excel |