Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I am using a set range in numerous macros and I anticpate the size of the range changing over time, ie ("A1:A10") may become ("A1:A35"). Is there a way by which I can have the spreadsheet run a check of the size of certain set of data (row and column numbers), and name the range so it can be referenced in the macros? I was thinking of setting the name as "StaffNames" and as more staff are employed, the size of the range will increase. The macros simply loop through the range identifying certain criteria and then carry out an action such as changing background colours or counting certain occurancies. I have heard of named ranges but have never set one up. Would a named range solve the issue I have described and if so, how would I do that? Matt |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You probably want a dynamic named range. That being the case here is a
reference for you... http://www.cpearson.com/excel/named.htm -- HTH... Jim Thomlinson "MJKelly" wrote: Hello, I am using a set range in numerous macros and I anticpate the size of the range changing over time, ie ("A1:A10") may become ("A1:A35"). Is there a way by which I can have the spreadsheet run a check of the size of certain set of data (row and column numbers), and name the range so it can be referenced in the macros? I was thinking of setting the name as "StaffNames" and as more staff are employed, the size of the range will increase. The macros simply loop through the range identifying certain criteria and then carry out an action such as changing background colours or counting certain occurancies. I have heard of named ranges but have never set one up. Would a named range solve the issue I have described and if so, how would I do that? Matt |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dynamic Range Name Macro | Excel Discussion (Misc queries) | |||
dynamic range based on criteria, within a dynamic range, passed to a function | Excel Programming | |||
creating a dynamic range based on criteria, within a dynamic range, and passing it to a function | Excel Programming | |||
Sum on Dynamic Data Range - Macro | Excel Programming | |||
Macro to print a dynamic range | Excel Programming |