VBA question

jsambrook

Board Regular
Joined
Feb 1, 2010
Messages
214
I have a spreadsheet for timesheets and there is a mix between 4 and 5 week months that means the formatting changes and so do some of the formulas. I'm wondering if it would be easier to use two seperate spreadsheets depending on the month, or if it would be reasonable easy to do a macro that read
if this cell equals 5 then insert columns and change put these formulas in.
or if its easier to do it the other way and have if this cell reads 4 then delete these cells.
I'm a bit of a newbie to VBA in the grand scheme of things, but I have written a few macros that use loops and some other bits. I just havent come across how to do this yet!
Help is always appreciated.
Janni
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,224,521
Messages
6,179,285
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top