Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Stubborn date format and range copy

Hi, I would like to recreate this formula (see below) to a whole column but I
am incapable to do so. The problem come from the date format which I cannot
change with usual format. They only way I found out was to select the cell,
then copy the formula and paste it using the text importation wizard (that I
can see when I paste the date). Any other way to go throught this would be
accepted.

Thanks!

Range("M4").Select
ActiveCell.FormulaR1C1 = "09/27/2006"
Range("W4").Select
ActiveSheet.PasteSpecial Format:="Texte Unicode", Link:=False, _
DisplayAsIcon:=False
--
Mathieu
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Stubborn date format and range copy

you can see if this gives you any ideas

Sub test2()
Range("M4").Value = "09/27/2006"

With Range("W4")
Range("M4").Copy
..PasteSpecial xlPasteAll
End With
End Sub

--


Gary


"Mathieu" wrote in message
...
Hi, I would like to recreate this formula (see below) to a whole column but I
am incapable to do so. The problem come from the date format which I cannot
change with usual format. They only way I found out was to select the cell,
then copy the formula and paste it using the text importation wizard (that I
can see when I paste the date). Any other way to go throught this would be
accepted.

Thanks!

Range("M4").Select
ActiveCell.FormulaR1C1 = "09/27/2006"
Range("W4").Select
ActiveSheet.PasteSpecial Format:="Texte Unicode", Link:=False, _
DisplayAsIcon:=False
--
Mathieu



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Stubborn date format and range copy

Hi,
It work to some extent It change the date to it's good value wich is good.
However, I want the macro to read every cell beside "M4". Each of these cell
will have a different date and I want to copy it to another cell to keep what
I was sent. Also, I am not able to find a command that will repeat the same
line (ex.; select M4, copy to N4, Select M5, copy to N5......)
--
Mathieu


"Gary Keramidas" wrote:

you can see if this gives you any ideas

Sub test2()
Range("M4").Value = "09/27/2006"

With Range("W4")
Range("M4").Copy
..PasteSpecial xlPasteAll
End With
End Sub

--


Gary


"Mathieu" wrote in message
...
Hi, I would like to recreate this formula (see below) to a whole column but I
am incapable to do so. The problem come from the date format which I cannot
change with usual format. They only way I found out was to select the cell,
then copy the formula and paste it using the text importation wizard (that I
can see when I paste the date). Any other way to go throught this would be
accepted.

Thanks!

Range("M4").Select
ActiveCell.FormulaR1C1 = "09/27/2006"
Range("W4").Select
ActiveSheet.PasteSpecial Format:="Texte Unicode", Link:=False, _
DisplayAsIcon:=False
--
Mathieu




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
copy date in a cell if within a date range carrerapaolo Excel Discussion (Misc queries) 2 April 19th 10 09:12 PM
Find Last cell in Range when range is date format default105 Excel Discussion (Misc queries) 5 July 7th 09 03:11 PM
copy date based on date -refer to date range mindpeace[_4_] Excel Programming 1 June 3rd 06 01:30 PM
Stubborn Date Format OrientalPearl Excel Programming 12 April 4th 06 05:42 AM
Find date and copy range based on that date avzundert Excel Programming 2 November 25th 04 10:31 AM


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