InsatiableAmos
New Member
- Joined
- Jan 7, 2010
- Messages
- 8
I've got a workbook that's used in a pretty unusual way - it's a dynamic set of checklists with buttons that do things for the checklist operator based on parameters they've selected. We've been updating this workbook since it's inception a few years ago, and one of the best parts about it is that it deletes all currently-occurring command buttons and sets them up anew every time the user selects different parameters.
The problem is that Excel assigns a incremental ID number to every button we've ever created within that workbook, and even though we rename all the Buttons on creation, we've finally hit the maximum number of buttons excel allows!
We can copy everything into a new workbook, code and all, but that seems silly, temporary, and it's a pain. We can also refactor the code such that it hides/reuses buttons instead of deleting/recreating them, but that's a large undertaking for folks that don't necessarily know VBA too well (i won't be able to make the changes myself).
Is there a way to reset the incremental object count within a workbook? Just this tweak would solve our problem, and it would merely be a one-line add to reset that number every time the workbook was opened.
The problem is that Excel assigns a incremental ID number to every button we've ever created within that workbook, and even though we rename all the Buttons on creation, we've finally hit the maximum number of buttons excel allows!
We can copy everything into a new workbook, code and all, but that seems silly, temporary, and it's a pain. We can also refactor the code such that it hides/reuses buttons instead of deleting/recreating them, but that's a large undertaking for folks that don't necessarily know VBA too well (i won't be able to make the changes myself).
Is there a way to reset the incremental object count within a workbook? Just this tweak would solve our problem, and it would merely be a one-line add to reset that number every time the workbook was opened.