Hi
is there a macro i can use to delete all data in the 'Serial Nš' cells on all the RED tabbed worksheets when the close button is clicked to close the worklbook?
Hi
is there a macro i can use to delete all data in the 'Serial Nš' cells on all the RED tabbed worksheets when the close button is clicked to close the worklbook?
A macro could be written, bu are the cells in the same range in each sheet?
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
Yes they are all in H7
Pasting this code in "ThisWorbook" object should do it.
I am deleting from all sheets whose name starts with "S". You may want to change the if condition to check for tab color.
hthPlease Login or Register to view this content.
Ajay
This checks the Tab colour & deletes H7 in the tabs that match the rquirement
Please Login or Register to view this content.
Thanks but neither of them seem to work
Mine works in the example workbook that you posted. attach the workbook with the code in
HI
i have attached the document as requested...
You've pasted the code in the wrong place. the code is WorkBook_event code & should be in the workbook module, not a Standard Module
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks