#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default one line!!!

what is wrong with this one... noob question

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

Thanks for the help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 964
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 695
Default 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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default 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





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default 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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert a dotted line to a solid line in a line graph Sharlz Charts and Charting in Excel 1 January 14th 09 04:51 AM
Make a line in a bar chart, and change color of any bars that exceed the line MarkM Excel Discussion (Misc queries) 4 July 5th 06 04:06 PM
coloring overy other line without doing so line by line gen Excel Worksheet Functions 5 April 1st 05 10:38 PM
Macro problem on, Yellowed line - previous line or next line. Ed Excel Programming 7 March 29th 05 09:37 PM
Reads entire *.txt file into string opposed to a desired line by line input. ej_user Excel Programming 3 October 11th 04 07:15 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"