Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Using Today without Updating after first use

Posted on 2006-03-24
5
Medium Priority
?
151 Views
Last Modified: 2010-04-07
I have script that creates a worksheet and a range of dates based the Today() function.  But I don't what the start date to update everyday.  So how do I start the range using the date the worksheet was created without it updating each day?

Troy

0
Comment
Question by:troyhalsey
  • 3
  • 2
5 Comments
 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 16284978
Hi troy,

Instead of sticking a formula in there, just stick in a value:

Cells(r, c) = Date
Cells(r + 1, c) = Date + 1
Cells(r + 2, c) = Date + 2
etc.

Regards,

Patrick
0
 

Author Comment

by:troyhalsey
ID: 16285029
I don't think that is what I want....I need the first cell in the range "B1"...when created to equal Today()....but then I want the date to stay regardless of the actual date.  Know what I mean?

Troy
0
 
LVL 93

Accepted Solution

by:
Patrick Matthews earned 2000 total points
ID: 16285085
Then do that:

Range("b1") = Date
0
 

Author Comment

by:troyhalsey
ID: 16285099
I gotcha....sweet thanks man!

Troy
0
 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 16285397
You're most welcome :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

580 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