Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how to continue writing in a single cell? | Excel Discussion (Misc queries) | |||
writing text to different cell after comparing | Excel Worksheet Functions | |||
Writing beyond the cell specified size | Excel Discussion (Misc queries) | |||
writing a variable to a cell | Excel Programming | |||
writing a variable to a cell | Excel Programming |