Solved

Excel - Macro to open a worksheet in a specific way

Posted on 2008-10-22
2
2,027 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
In this article I will provide some simple productivity hacks that will help you use Google to specifically show results from any web site (Experts-Exchange.com in my example), with minimal effort in Chrome and Firefox. I've seen a common theme a…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

746 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

15 Experts available now in Live!

Get 1:1 Help Now