Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have this code : Sheets("Settings").Range(TempWeekRange + "3" + ":" + TempWeekRange + "8").Value = _ Sheets("Settings").Range(TempWeekRange + "10" + ":" + TempWeekRange + "15").Value TempWeekRange is a string variable that will point to a column. IE : M10:M15 23/06/2008 09/06/2008 12/05/2008 16/06/2008 Never 05/05/2008 I have set up the format for this range "dd/mm/yyyy" The problem is that the code above copies the data to the range M3:M8 as : 6/23/2008 06/09/2008 05/12/2008 6/16/2008 Never 05/05/2008 The format is all wrong, despite having it formatted the same "dd/mm/ yyyy" I've tried Sheets("Settings").Range(TempWeekRange + "3" + ":" + TempWeekRange + "8").NumberFormat = "dd/mm/yyyy" before and after and it doesnt work. Besides splitting each row into : Sheets("Settings").Range(TempWeekRange + "3" + ":" + TempWeekRange + "8").Value = _ FORMAT(Sheets("Settings").Range(TempWeekRange + "10" + ":" + TempWeekRange + "15").Value,"dd/mmm/yyyy") Is there an easier way, to keep it a single line? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find Last cell in Range when range is date format | Excel Discussion (Misc queries) | |||
Stubborn date format and range copy | Excel Programming | |||
copy date based on date -refer to date range | Excel Programming | |||
How to copy a range with same format !! | Excel Programming | |||
Find date and copy range based on that date | Excel Programming |