Solved

Date range using macro including selected dates, exluding sundays and holidays

Posted on 2014-12-10
2
272 Views
Last Modified: 2014-12-25
Hi all,

I need help with date range using macro including selected dates, exluding sundays and holidays.

What i want to do is the following:

On sheet Saturday:

Enter Start date (B12)
Enter End date (B13)
Select type (B14)
Select if there are working saturdays (B16 checkbox)
If working saturdays (checkbox checked), macro will list dates of saturdays in date range, and then you must choose which of them will you work


On sheet Types:

There are templates of, for this example, 2 types (there will be around 6, 7 types later).

I need help with macro that will, depending on Type copy type template from sheet Type to sheet Saturday (f4) and fill the date range (in columns) from starting date to ending date (both entered by user), including saturdays selected and exluding sundays and holidays (there si a list of holidays in V column on sheet Saturday). Macro should run by pressing button GENERATE.

I don't have any macro for that, because i'm quite new to macros and don't even know where to start it :)

There is Saturday_Final result sheet where is example how it should look at the end.

If anyone can help, i would appreciate it very much.

Kind regards,
Matija

date-range.xlsm
0
Comment
Question by:matija385
2 Comments
 
LVL 20

Accepted Solution

by:
Ejgil Hedegaard earned 500 total points
Comment Utility
Try attached file.
I have inserted some range names for start (B12) and end date (B13), type selection (B14), working saturdays (C12:D16), holidays (V2 to used), and copy insertion point (F4) on sheet Saturday.
The types on sheet Types are named Type1 and Type2.
date-range-copy-type.xlsm
0
 

Author Comment

by:matija385
Comment Utility
Hi Ejgil,

This is perfect, just what i needed. Thank you so much.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now