A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Use date document created in formula?



 
 
Thread Tools Display Modes
  #1  
Old November 7th, 2003, 11:14 AM
jamieuk
external usenet poster
 
Posts: n/a
Default Use date document created in formula?

We have a template that requires the user to enter the date they
started using the workbook. This date is used in many formulas within
the template.

Rather than requiring the user to enter this date, it would be nice to
be able to derive this information, for example, using the date the
workbook was created. The stipulation is, however, the user should be
able to use the workbook with macros disabled i.e. we don't want a VBA
solution.

Is this possible?

Many thanks,
Jamie.
  #2  
Old November 7th, 2003, 01:39 PM
Bernie Deitrick
external usenet poster
 
Posts: n/a
Default Use date document created in formula?

Jamie,

You could set a conditional format linked to the value of the date
cell - if it is empty, most cells could be red, for example, with one
cell that is colored green, is formatted for a large font, and has a
formula like:

=IF(A1="","Enter a date in cell A1","")

HTH,
Bernie
MS Excel MVP

"jamieuk" wrote in message
om...
We have a template that requires the user to enter the date they
started using the workbook. This date is used in many formulas

within
the template.

Rather than requiring the user to enter this date, it would be nice

to
be able to derive this information, for example, using the date the
workbook was created. The stipulation is, however, the user should

be
able to use the workbook with macros disabled i.e. we don't want a

VBA
solution.

Is this possible?

Many thanks,
Jamie.



  #3  
Old November 10th, 2003, 09:24 AM
jamieuk
external usenet poster
 
Posts: n/a
Default Use date document created in formula?

Thanks, Bernie. But I don't want the *user* to enter the date cell
value. Instead, I want to derive the date.

For example, I could do this:

Private Sub Workbook_Open()

With ThisWorkbook.Worksheets("Main").Range("StartDate")

' test for start date
If CLng(.Value) = 0 Then
.Value = CLng(Now)
End If

End With

End Sub

....HOWEVER I want a solution that will work with macros disabled.

Is there a way of doing the same without using VBA?

"Bernie Deitrick" wrote in message ...
Jamie,

You could set a conditional format linked to the value of the date
cell - if it is empty, most cells could be red, for example, with one
cell that is colored green, is formatted for a large font, and has a
formula like:

=IF(A1="","Enter a date in cell A1","")

HTH,
Bernie
MS Excel MVP

"jamieuk" wrote in message
om...
We have a template that requires the user to enter the date they
started using the workbook. This date is used in many formulas

within
the template.

Rather than requiring the user to enter this date, it would be nice

to
be able to derive this information, for example, using the date the
workbook was created. The stipulation is, however, the user should

be
able to use the workbook with macros disabled i.e. we don't want a

VBA
solution.

Is this possible?

Many thanks,
Jamie.

  #4  
Old November 10th, 2003, 01:20 PM
Bernie Deitrick
external usenet poster
 
Posts: n/a
Default Use date document created in formula?

Jamie,

" Is there a way of doing the same without using VBA?

No.

The best you can do is use conditional formatting to draw the user's
attention to the fact that there is data missing.

HTH,
Bernie
MS Excel MVP



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.