ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Delete the contents of columns if the month changes (https://www.excelbanter.com/excel-programming/371142-delete-contents-columns-if-month-changes.html)

[email protected]

Delete the contents of columns if the month changes
 
I have a reference cell A1= current month like ( jan, feb , mar etc)
I have 12 columns JAN- Dec
if A1= FEB, i want a macro to delete the contents in JAN and FEB
columns and hide them .
if A1= MAR , then hide JAN & FEB & MAR and delete the contents in them
.. And so on.

Please help me write this macro.

Thanks



All times are GMT +1. The time now is 05:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com