Workbook clear on close
Sat, 07 May 2016 - 9:26 PM
Hi everyone,
Is there any code to make a worksheet clear all textboxes when the workbook is closed. even if new data has been saved i would like it to open next time with no data in the 2 lists or data in the textboxes.
Thanks for any help in advance
Sat, 07 May 2016 - 11:07 PM
#2
hi mark_t
thanks again for
hi mark_t
thanks again for your replies
the reason i want to clear on close is so that when the workbook is opened the user does not see their previous selection. all fields would be empty so that new selections could be made.
Sun, 08 May 2016 - 12:19 PM
#3
It would work the same if it
It would work the same if it clears on opening, the user still wouldn’t see the previous data.
If you clear when the workbook is closed the cleared data might not be saved.
Write a macro to clear the data, then assign that macro to execute on workbook open even. Check under “Tools”, “Customise”, Events to find the workbook open event, then use the macro button to select your macro.