Link to home
Start Free TrialLog in
Avatar of Frank Freese
Frank FreeseFlag for United States of America

asked on

Delete columns or rows when wroksheet close

Folks,
I would like to know the code and what event to place it when a worksheet is closed (workbook remains open) and I go to another worksheet, coded columns and rows would be deleted.
I believe I have the correct code but I do not see an worksheet close event?
Range("F1").EntireColumn.Delete
Range("A21,A31").EntireRow.Delete
ASKER CERTIFIED SOLUTION
Avatar of Ejgil Hedegaard
Ejgil Hedegaard
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Phillip Burton
Phillip Burton

Use Workbook_BeforeClose
Avatar of Frank Freese

ASKER

BTW - there is no Event Before_Close is why I elected the answer I did