Hi all, I am a bit new to VBA. I want to write a macro where the macro will always hide 2 columns to the right of a reference cell value/column, in this case column "B".
I also want to insert a column between "E" and "F" after the two columns "C" and "D" have been hidden, the new column between "E" and "F" needs to have the same date cell as E3 with the Plan and Actual headers I have.
After that I need the macro to insert a new column after the last used column with a date header that is a week later than the last column header. So in this case column "T" needs to have a date value of 2023/02/18.
So this is what it looks like before the macro above, and here is a picture of what I need the table to look like after:
I also want to insert a column between "E" and "F" after the two columns "C" and "D" have been hidden, the new column between "E" and "F" needs to have the same date cell as E3 with the Plan and Actual headers I have.
After that I need the macro to insert a new column after the last used column with a date header that is a week later than the last column header. So in this case column "T" needs to have a date value of 2023/02/18.
So this is what it looks like before the macro above, and here is a picture of what I need the table to look like after: