Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default changeing date formats when not intended

Hi,
I use this piece of code to copy data from one place to another
Range("B" & 11 + (iRowCounter * iCount) & ":D" & 10 + (iRowCounter * (iCount
+ 1))).Value = Worksheets("extract").Range("A16:C" & 15 + iRowCounter).Value

one of the values is a date which is in the dd/mm/yyyy format in the source
but at the destination it is mm/dd/yyyy even when it says it is not.

How do I stop this from happening

MarkS

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default changeing date formats when not intended


have you tried with
Value2 property iso Value?

that way you circumvent dateconversion and or formatting
problems

read vba help on Value2 for specifics



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


MarkS wrote :

Hi,
I use this piece of code to copy data from one place to another
Range("B" & 11 + (iRowCounter * iCount) & ":D" & 10 + (iRowCounter *
(iCount + 1))).Value = Worksheets("extract").Range("A16:C" & 15 +
iRowCounter).Value

one of the values is a date which is in the dd/mm/yyyy format in the
source but at the destination it is mm/dd/yyyy even when it says it
is not.

How do I stop this from happening

MarkS

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
Conditional Formatting Not Working As Intended Bishop Excel Worksheet Functions 3 February 5th 10 08:51 PM
Limit Macro to Intended worksheet. Quin Excel Worksheet Functions 2 March 2nd 07 02:49 AM
macro not working as intended Michael A Excel Programming 4 March 7th 05 01:29 AM
Code deleting values -- not as intended Stuart[_5_] Excel Programming 2 May 3rd 04 07:36 PM
Changeing a graph Mark Scholes Excel Programming 1 February 11th 04 04:24 AM


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