Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,564
- Office Version
- 365
- 2016
- Platform
- Windows
I have two named ranges I use as sources for their respective combobox lists.
Since the ranges are dynamic, I use a formula as reference ...
WHat is happening though, from within my VBA application, the worksheet will many times get altered with the deletion and/or addition of rows, and the first parameter of OFFSET will change. When it changes, my list source is off.
For example,if I delete a row, the $A$2 will change to $A$3. If I delete another row, it changes to $A$4. When this happens my list source misses the first two values of the column, and makes up for the difference with empty spaces.
How can I prevent the involuntary changing of this parameter?
Since the ranges are dynamic, I use a formula as reference ...
Rich (BB code):
=OFFSET(ROSTER!$A$2,0,0,COUNTA(ROSTER!$E:$E)-2,1)
WHat is happening though, from within my VBA application, the worksheet will many times get altered with the deletion and/or addition of rows, and the first parameter of OFFSET will change. When it changes, my list source is off.
For example,if I delete a row, the $A$2 will change to $A$3. If I delete another row, it changes to $A$4. When this happens my list source misses the first two values of the column, and makes up for the difference with empty spaces.
How can I prevent the involuntary changing of this parameter?