ashleywanless
Board Regular
- Joined
- Aug 4, 2009
- Messages
- 158
Hi,
I have created a form with 40 checkboxes and each one relates to a column. When the user clicks the command button on the form i want the code to check if checkbox value is true and if so delete column.
The only way i can think of to do this is by writing 40 if statements and for each if stating if value is true use the find function to find the column header name, the delete the active column.
Is there a better way of doing this? i can set find to start in A1 and find by row but still worried this may not be the best way of doing this|?
Thanks
I have created a form with 40 checkboxes and each one relates to a column. When the user clicks the command button on the form i want the code to check if checkbox value is true and if so delete column.
The only way i can think of to do this is by writing 40 if statements and for each if stating if value is true use the find function to find the column header name, the delete the active column.
Is there a better way of doing this? i can set find to start in A1 and find by row but still worried this may not be the best way of doing this|?
Thanks