ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   TODAY() and NOW() being reflected as zero (https://www.excelbanter.com/excel-programming/440633-today-now-being-reflected-zero.html)

Barb Reinhardt

TODAY() and NOW() being reflected as zero
 
The formulas TODAY() and NOW() are being reflected as ZERO when I enter them
in a separate cell today. I'm betting it's related to a recent update, but
am wondering if others have seen it as well.

Thanks,

Barb Reinhardt


JLGWhiz[_2_]

TODAY() and NOW() being reflected as zero
 
Hi Barb, the results described seem very unusual. How did you use the
function?



"Barb Reinhardt" wrote in message
...
The formulas TODAY() and NOW() are being reflected as ZERO when I enter
them
in a separate cell today. I'm betting it's related to a recent update,
but
am wondering if others have seen it as well.

Thanks,

Barb Reinhardt




Barb Reinhardt

TODAY() and NOW() being reflected as zero
 
=TODAY()
=NOW()

both formatted as GENERAL.

I have some other formulas that check the dates and they were behaving
strangely, so I broke the formulas apart and found that this seems to be the
issue.

Barb Reinhardt



"JLGWhiz" wrote:

Hi Barb, the results described seem very unusual. How did you use the
function?



"Barb Reinhardt" wrote in message
...
The formulas TODAY() and NOW() are being reflected as ZERO when I enter
them
in a separate cell today. I'm betting it's related to a recent update,
but
am wondering if others have seen it as well.

Thanks,

Barb Reinhardt



.


Peter T

TODAY() and NOW() being reflected as zero
 
What do you debug with this

With ActiveCell
..Clear
..Formula = "=NOW()"
Debug.Print .Formula, .Value, .Text, .NumberFormat
End With

If not as anticipated, close Excel and try again with a new workbook

Regards,
Peter T

"Barb Reinhardt" wrote in message
...
The formulas TODAY() and NOW() are being reflected as ZERO when I enter
them
in a separate cell today. I'm betting it's related to a recent update,
but
am wondering if others have seen it as well.

Thanks,

Barb Reinhardt




Dave Peterson

TODAY() and NOW() being reflected as zero
 
And maybe trying it a second time with events disabled:

application.enableevents = false
With ActiveCell
.Clear
.Formula = "=NOW()"
Debug.Print .Formula, .Value, .Text, .NumberFormat
End With
application.enableevents = true



Peter T wrote:

What do you debug with this

With ActiveCell
.Clear
.Formula = "=NOW()"
Debug.Print .Formula, .Value, .Text, .NumberFormat
End With

If not as anticipated, close Excel and try again with a new workbook

Regards,
Peter T

"Barb Reinhardt" wrote in message
...
The formulas TODAY() and NOW() are being reflected as ZERO when I enter
them
in a separate cell today. I'm betting it's related to a recent update,
but
am wondering if others have seen it as well.

Thanks,

Barb Reinhardt


--

Dave Peterson

Barb Reinhardt

TODAY() and NOW() being reflected as zero
 
OK, I inadvertently posted this in the wrong group. When I enter either
=TODAY() or =NOW() in a cell on a worksheet, the result is 0, when formatted
as general. And of course, when I look at it now, it's working fine. I
have no idea what happened.

Thanks,

Barb Reinhardt



"Dave Peterson" wrote:

And maybe trying it a second time with events disabled:

application.enableevents = false
With ActiveCell
.Clear
.Formula = "=NOW()"
Debug.Print .Formula, .Value, .Text, .NumberFormat
End With
application.enableevents = true



Peter T wrote:

What do you debug with this

With ActiveCell
.Clear
.Formula = "=NOW()"
Debug.Print .Formula, .Value, .Text, .NumberFormat
End With

If not as anticipated, close Excel and try again with a new workbook

Regards,
Peter T

"Barb Reinhardt" wrote in message
...
The formulas TODAY() and NOW() are being reflected as ZERO when I enter
them
in a separate cell today. I'm betting it's related to a recent update,
but
am wondering if others have seen it as well.

Thanks,

Barb Reinhardt


--

Dave Peterson
.



All times are GMT +1. The time now is 07:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com