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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,226,116
Messages
6,189,057
Members
453,524
Latest member
AshJames

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