rickyckc
Active Member
- Joined
- Apr 1, 2004
- Messages
- 327
Hi all,
I have a workbook call Sales.xls
In this workbook, there is a sheet call Sales Staff. In column C, there is a sales person name list. In C2, I want it to be blank. From C3 down-wards, are names of sales person. This name list are varied all the time, i.e. could be 10 people (C2:C12), could be 23 people (C2:25), etc. How to use macro to create a name for this (un-fixed) list ?
Currently, what I have is this, which is done by manually selection...
ActiveWorkbook.Names.Add Name:="SalesStaff", RefersToR1C1:= "='Sales Staff'!R2C3:R7C3"
Please help. Thanks.
Best Regards,
Ricky
I have a workbook call Sales.xls
In this workbook, there is a sheet call Sales Staff. In column C, there is a sales person name list. In C2, I want it to be blank. From C3 down-wards, are names of sales person. This name list are varied all the time, i.e. could be 10 people (C2:C12), could be 23 people (C2:25), etc. How to use macro to create a name for this (un-fixed) list ?
Currently, what I have is this, which is done by manually selection...
ActiveWorkbook.Names.Add Name:="SalesStaff", RefersToR1C1:= "='Sales Staff'!R2C3:R7C3"
Please help. Thanks.
Best Regards,
Ricky