Advertisement

01.26.2008 at 03:24PM PST, ID: 23113860
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

VBA Macro to auto-generate dates on worksheet names

Asked by danno03 in Microsoft Excel Spreadsheet Software

Tags: , , ,

I have a workbook that consists of 28-31 worksheets, depending on the number of days in a particular month.  A template is utilized to provide a new workbook for the upcoming month.  The worksheet names are currently edited manually for each day of the month (i.e. '1-1', '1-2', etc. for January).  The full date and day of the week are currently entered manually in seperate cells in each worksheet.

What I'm looking for is a VBA macro to automatically detect whether or not the workbook name either contains '*.xlt' or 'template' in the file name (a template file).  That would automatically trigger a prompt requesting the following input: "Which month do you want to initialize (1-12)?"  Depending on the month entered, the worksheet names would automatically be created (i.e. if '2' is entered, the worksheet names would become '2-1', '2-2, '2-3', etc.) and any additional worksheets beyond the end of the month would be deleted or created as needed (i.e if last month's template had worksheets named 1-1 thru 1-31, and '4' is chosen, worksheet '1-31' would be deleted and if last month's template had worksheets named 4-1 thru 4-30, then May's template would add an additional worksheet for the 31st day).

The last worksheet always is the summary worksheet which totals entries from the other worksheets (utilizing formulas such as sum('1-1:1-31':q6), so any worksheets added or deleted would need to be inserted or deleted prior to that worksheet (which is always named 'Monthly Totals').

Once the worksheet names (and the correct # of worksheets for the # of days of the chosen month) are completed, a cell in each worksheet needs to have the date put into 1 cell (doesn't matter where) and the day of the week in another.  I can get day of the week with "=text(a1,"dddd") as long as I manually enter a date such as 1-26 into the other cell with the date.  I've been unable to locate any means of accessing the name or title property of a worksheet with an inline formula (which contains the date I want to use).

Thanks for your help,
DannoStart Free Trial
[+][-]01.26.2008 at 03:55PM PST, ID: 20751709

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.26.2008 at 06:39PM PST, ID: 20752096

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.26.2008 at 07:07PM PST, ID: 20752167

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.26.2008 at 07:11PM PST, ID: 20752179

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.26.2008 at 07:24PM PST, ID: 20752204

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.26.2008 at 07:28PM PST, ID: 20752214

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.26.2008 at 08:19PM PST, ID: 20752321

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.26.2008 at 10:47PM PST, ID: 20752776

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.27.2008 at 02:26AM PST, ID: 20753299

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.27.2008 at 08:25AM PST, ID: 20754195

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.27.2008 at 02:26PM PST, ID: 20755533

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]01.27.2008 at 04:13PM PST, ID: 20755889

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: Microsoft, Excel, 2003, VBA
Sign Up Now!
Solution Provided By: webtubbs
Participating Experts: 2
Solution Grade: A
 
 
[+][-]01.27.2008 at 05:10PM PST, ID: 20756100

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628