#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Replacing

Hello,
I am replacing the "."(dots) of a date which comes from the system(
example:28.02.2006) with "/" so that my excel does recognize it as a date.

I used to do manualy until recently. When I tried to automate it with VBA I
saw that it is not recognized as a date. When you select the cell and place
your cursor on the fomula line and hit enter it is recognized.
I tried to record a macro and use the code but it generates a code like this
which is not much use to me I guess(since the dates will change):
ActiveCell.FormulaR1C1 = "2/28/2006"

I know it is probably a stupid question but some hwlp would be greatly
appreciated.

Thanks a lot,
Ozgur

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Replacing

Try

ActiveCell.Value = ActiveCell.Value


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Ozgur Pars" wrote in message
...
Hello,
I am replacing the "."(dots) of a date which comes from the system(
example:28.02.2006) with "/" so that my excel does recognize it as a date.

I used to do manualy until recently. When I tried to automate it with VBA

I
saw that it is not recognized as a date. When you select the cell and

place
your cursor on the fomula line and hit enter it is recognized.
I tried to record a macro and use the code but it generates a code like

this
which is not much use to me I guess(since the dates will change):
ActiveCell.FormulaR1C1 = "2/28/2006"

I know it is probably a stupid question but some hwlp would be greatly
appreciated.

Thanks a lot,
Ozgur



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Replacing

Hi Bob thanks for your reply but it did not work.

Ozgur

"Bob Phillips" wrote:

Try

ActiveCell.Value = ActiveCell.Value


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Ozgur Pars" wrote in message
...
Hello,
I am replacing the "."(dots) of a date which comes from the system(
example:28.02.2006) with "/" so that my excel does recognize it as a date.

I used to do manualy until recently. When I tried to automate it with VBA

I
saw that it is not recognized as a date. When you select the cell and

place
your cursor on the fomula line and hit enter it is recognized.
I tried to record a macro and use the code but it generates a code like

this
which is not much use to me I guess(since the dates will change):
ActiveCell.FormulaR1C1 = "2/28/2006"

I know it is probably a stupid question but some hwlp would be greatly
appreciated.

Thanks a lot,
Ozgur




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
replacing 0's L.S. Excel Discussion (Misc queries) 4 April 2nd 08 03:42 PM
Replacing #N/A RFJ Excel Worksheet Functions 1 December 11th 06 04:39 PM
replacing help fluci Excel Programming 0 August 4th 05 08:12 PM
Replacing #N/A with a '0' (zero) neilcarden Excel Worksheet Functions 5 April 20th 05 02:49 PM
Help Replacing all ( * ) with ( - ) Jeam Excel Discussion (Misc queries) 2 December 3rd 04 03:36 PM


All times are GMT +1. The time now is 03:55 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"