0 votes
in VBA by Beginner (2 points)

I need help in creating a macro. We maintain hours worked by each of team members daywise in columns and we have lot of calculations build based on this sheet. One of our client is asking to submit the hours in their template which is Team, Resource and date wise hours in rows. I have attached a sample base sheet and target sheet, although it has only two are three members in each team we have around 50 team members and that make bit complicated to manual do this. Request your help in creating this macro which can create the file based on the hours from Base Sheet after every month end for the previous month.

enter image description here enter image description here

by Expert (849 points)
Can you post sample workbook?

1 Answer

+1 vote
by Beginner (6 points)
Before looking at a macro solution - just a thought - why not look at a pivot table to produce this.

                                    Columns Dates  Group By Day , Month

Rows Team                 Values Hours

Rows Name


Best regards

Mike H
by Beginner (23 points)
Agree with the suggestion re: pivot tables. Personally I like the Classic View (but then I put it down to an aversion to change!)

Welcome to wellsr Q&A
wellsr Q&A is the VBA and Python programming community that rewards you for learning how to code.

Getting Started
VBA Cheat Sheets (On Sale Now)

Earn free prizes for asking VBA and Python questions and for answering questions asked by others in our community.

Looking for something else? Hire our professional VBA Help, instead.

What makes us different?
Our points system rewards you with a chance for free gifts based on the quality of your questions and answers. All you have to do is post and you could get rewarded, like these members:

ParserMonster $25 Amazon Gift Card
Hightree $10 Amazon Gift Card
Thales1 $10 Amazon Gift Card
runfunke $10 Amazon Gift Card
coolag $10 Amazon Gift Card
Siew Hun $10 Amazon Gift Card

So, why don't you join us? It really is an encouraging way to motivate members in our VBA and Python community.


For more programming tips visit the VBA Tutorials Blog and the Python Tutorials Blog.