Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default how can I get the appeared value from the cell?

let say I have a string or date variable fileDate and on "a1" I have
the date value of 2/2/2006

when I use the code filedate = formate(filedate , "YYMM")
msgbox(filedate) it gives me 27/10/2064 which I have completely no clue
what had happened. So I think I should try another way. using format
cell I turned the appeared value of "a1" to be 0602 and I hope to get
this "0602" into my variable. My problem is that when I copy the data
it doesnt copy the appeared value but the genuine value 2/2/2006 which
is not what i wanted

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default how can I get the appeared value from the cell?

FileDate = "2/2/2006"
filedate = format(cDate(filedate) , "YYMM")
--
Regards,
Tom Ogilvy




"Raven" wrote in message
oups.com...
let say I have a string or date variable fileDate and on "a1" I have
the date value of 2/2/2006

when I use the code filedate = formate(filedate , "YYMM")
msgbox(filedate) it gives me 27/10/2064 which I have completely no clue
what had happened. So I think I should try another way. using format
cell I turned the appeared value of "a1" to be 0602 and I hope to get
this "0602" into my variable. My problem is that when I copy the data
it doesnt copy the appeared value but the genuine value 2/2/2006 which
is not what i wanted



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
Hyperlinks have appeared in all my forms, how do I remove them? legatee Excel Worksheet Functions 0 May 13th 08 05:57 AM
a picture suddenly appeared on the worksheet A.Northrop Excel Worksheet Functions 2 November 21st 06 12:27 PM
Counting Cells, excluding those which have appeared before. BigMac Excel Discussion (Misc queries) 3 October 29th 06 04:45 PM
List of items appeared in range realspido Excel Worksheet Functions 1 February 9th 06 11:30 AM
Gray box appeared around images helenezs Excel Discussion (Misc queries) 0 January 13th 05 08:39 PM


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

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"