Solved

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

Posted on 2014-12-10
2
274 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 21

Accepted Solution

by:
Ejgil Hedegaard earned 500 total points
ID: 40513748
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
ID: 40517421
Hi Ejgil,

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

26 Experts available now in Live!

Get 1:1 Help Now