Solved

Excel - Macro to open a worksheet in a specific way

Posted on 2008-10-22
2
2,036 Views
Last Modified: 2012-05-05
Is it possible to have a macro that opens a worksheet in a specific way. What i have is a weekly time sheet and at the moment the days are divided using 'Outlining'. What i would like to be able to do is when i enter the the 'Site Name' and 'Start Date' into the 'New Sheet' Worksheet it automatically opens the duplicated template at the specific day as per the start date. All the other dates and week numbers are automatically filled out in the duplicate worksheet from what is entered already in the enw sheet.
Weekly-Pay-Schedule-9.xls
0
Comment
Question by:Carlandrewlewis
2 Comments
 
LVL 18

Accepted Solution

by:
Curt Lindstrom earned 500 total points
ID: 22792383
Carl,

Is this what you want?

I used the file from your last question instead of the one you uploaded in this question since this is a later file.

Why do you step up the date started by +1 for each weekday in the template? It looks confusing to me. I assume that the start date is only meaningful as the date when the project started so you would be better off to leave it as =m4 in the Tuesday to Sunday time sheets in the template.

Curt

Mod2-Weekly-Pay-Schedule-15.xls
0
 

Author Closing Comment

by:Carlandrewlewis
ID: 31508657
Curt, your an absolute star! thanks for that! one last thing is there any way to change the times so that i could just type 12 for 12:00 or 1215 for 12:15? I've got a question with regards to this as well if your interested called Excel - Time Formats.

Thanks again
Carl
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

With the internet and the ease of information transference, many professional jobs can be done anywhere today.  Why should it make a difference whether an x-ray is read in India or the United States as long as the radiologist is qualified?   Outso…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
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…

828 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