Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default writing to a cell

I know this HAS to be simple, but I can't find the command anywhere, driving
me crazy. I'm just trying to write to a cell the current date. only in
mm/dd/yyyy format. something like this, but it isn't right:

With curWks
.Range("J31").Clear
.Range("J31").Bold = True
.Range("J31").Text (Date)
End with



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default writing to a cell

God, I finally got it..

..Range("J31").Value = Date

works.

"Michael Miazga" wrote in message
...
I know this HAS to be simple, but I can't find the command anywhere,

driving
me crazy. I'm just trying to write to a cell the current date. only in
mm/dd/yyyy format. something like this, but it isn't right:

With curWks
.Range("J31").Clear
.Range("J31").Bold = True
.Range("J31").Text (Date)
End with





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default writing to a cell

Outside of the With statement:

ActiveCell = Format(Date, "mm/dd/yyyy")

Richard

"Michael Miazga" wrote in message
...
I know this HAS to be simple, but I can't find the command anywhere, driving
me crazy. I'm just trying to write to a cell the current date. only in
mm/dd/yyyy format. something like this, but it isn't right:

With curWks
.Range("J31").Clear
.Range("J31").Bold = True
.Range("J31").Text (Date)
End with




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default writing to a cell

Try replacing

..Range("J31").Text (Date)

with

..Range("J31").Value = Date

Regards,
Ryan

-----Original Message-----
I know this HAS to be simple, but I can't find the

command anywhere, driving
me crazy. I'm just trying to write to a cell the current

date. only in
mm/dd/yyyy format. something like this, but it isn't

right:

With curWks
.Range("J31").Clear
.Range("J31").Bold = True
.Range("J31").Text (Date)
End with



.

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 continue writing in a single cell? Ron Excel Discussion (Misc queries) 3 March 3rd 10 05:35 AM
writing text to different cell after comparing tracktraining Excel Worksheet Functions 2 February 9th 09 11:47 PM
Writing beyond the cell specified size Jean-Jerome Doucet via OfficeKB.com Excel Discussion (Misc queries) 2 June 20th 05 03:51 PM
writing a variable to a cell Tom Ogilvy Excel Programming 0 July 17th 03 04:22 PM
writing a variable to a cell Reg Besseling Excel Programming 0 July 17th 03 04:00 PM


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

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

About Us

"It's about Microsoft Excel"