VBA for printing weekdays in every page

willy292

New Member
Joined
Oct 2, 2017
Messages
2
Hi Everyone , if I want to print all the weekdays in between a range , i.e 3 Feb 2017 & 23 Feb 2017,
one single weekdays per every page,for example the first page will be 3 Feb 2017, second page will be 5 Feb 2017
and till 23 Feb 2017, is there any easy way to do that ?
Thanks
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Re: Help: VBA for printing weekdays in every page

Hi Everyone , if I want to print all the weekdays in between a range , i.e 3 Feb 2017 & 23 Feb 2017,
one single weekdays per every page,for example the first page will be 3 Feb 2017, second page will be 5 Feb 2017
and till 23 Feb 2017, is there any easy way to do that ?
Thanks

Have the macro ( I have the date in column A)

Establish the days of the week by referencing the date and using the TEXT function
'=TEXT(A30,"DDD")

Do a logical test for it's weekdayness

'=AND(B30<>"Sat",B30<>"Sun")

If the Result of that test is True then it is a weekday

Filter the spreadsheet to 'TRUE'... hide anything you don't want to see on the paper, and Print it!
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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