ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   one line!!! (https://www.excelbanter.com/excel-programming/361957-one-line.html)

John

one line!!!
 
what is wrong with this one... noob question

Sheets("CP").Range("a5") = "=Updated on " & Now

Thanks for the help

Paul B

one line!!!
 
John, try this,

Sheets("CP").Range("a5") = "Updated on " & Now


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"John" wrote in message
...
what is wrong with this one... noob question

Sheets("CP").Range("a5") = "=Updated on " & Now

Thanks for the help




Elkar

one line!!!
 
I think the problem is with the = symbol before the word Updated. Excel is
going to try to evaluate that as a formula. Either remove that = or add an
apostrophe before it to force Text Formatting.

HTH,
Elkar


"John" wrote:

what is wrong with this one... noob question

Sheets("CP").Range("a5") = "=Updated on " & Now

Thanks for the help


excelent

one line!!!
 
try
Sheets("CP").Range("a5") = " =Updated on " & Now
and dont ask :-)



"John" skrev:

what is wrong with this one... noob question

Sheets("CP").Range("a5") = "=Updated on " & Now

Thanks for the help


Don Guillett

one line!!!
 
for a formula in a5
Sheets("CP").Range("a5") = "=Updated on " & Now

Sheets("CP").Range("a5").formula = "=Updated on " & Now()
for a value
Sheets("CP").Range("a5") = "Updated on " & Now

--
Don Guillett
SalesAid Software

"John" wrote in message
...
what is wrong with this one... noob question

Sheets("CP").Range("a5") = "=Updated on " & Now

Thanks for the help




John

one line!!!
 
Thank you one and all!

"Don Guillett" wrote:

for a formula in a5
Sheets("CP").Range("a5") = "=Updated on " & Now

Sheets("CP").Range("a5").formula = "=Updated on " & Now()
for a value
Sheets("CP").Range("a5") = "Updated on " & Now

--
Don Guillett
SalesAid Software

"John" wrote in message
...
what is wrong with this one... noob question

Sheets("CP").Range("a5") = "=Updated on " & Now

Thanks for the help





Don Guillett

one line!!!
 
glad to help

--
Don Guillett
SalesAid Software

"John" wrote in message
...
Thank you one and all!

"Don Guillett" wrote:

for a formula in a5
Sheets("CP").Range("a5") = "=Updated on " & Now

Sheets("CP").Range("a5").formula = "=Updated on " & Now()
for a value
Sheets("CP").Range("a5") = "Updated on " & Now

--
Don Guillett
SalesAid Software

"John" wrote in message
...
what is wrong with this one... noob question

Sheets("CP").Range("a5") = "=Updated on " & Now

Thanks for the help








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

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