add and remove rows for 5 week rota

harbour1302

New Member
Joined
Jun 13, 2017
Messages
25
Hi Guys,

I have a rota that has the entire year form 26/12/16 - 31/12/17 in column A from A2 down.
I have a row from each date with shift codes and staff names.

What I would like to achieve is to only show 5 weeks of rota and any given time.

Is there a VBA to hide rows and unhide.

So for example week 1 -6 shown at all times when data entered into week 6, week 1 is automatically hidden and week 7 is unhidden.

I hope this is making sense :laugh:

Any help would be awesome ! You guys rock!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi there

A non VBA solution may be to use a filter. You would need to change it once a week, but it may be the easiest way.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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