XL2002: Date Formats Are Lost When You Programmatically Move Data from One Range to Another

Article translations Article translations
Article ID: 821564 - View products that this article applies to.
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

On This Page

SYMPTOMS

When you use a macro to move data from one range of cells to another range of cells, cells that contain dates lose their formatting when they are moved to the new cells.

CAUSE

This probelm occurs if the following conditions exist:
  • Your regional settings are set to any country that uses dd/mm/yyy as the short date format.
  • The date format being copied is dd-mm-yyyy.
  • The macro either sets one range equal to another or reads the range in an array, and out of the array into the new range.

RESOLUTION

Service Pack Information

This problem is corrected in Office XP Service Pack 3.To resolve this problem, obtain the latest service pack for Microsoft Office XP. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
307841 How to obtain the latest Office XP Service Pack

Hotfix Information

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Microsoft Office XP service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time         Size        File name
   --------------------------------------------------------------
   24-May-2003  01:14        16,584,900  Excelff.msp
   24-May-2003  00:04         4,817,040  Excelop.msp

				
After the hotfix is installed, the following files will have the listed attributes or later:
   Date         Time   Version            Size    File name
   --------------------------------------------------------------
   23-May-2003  09:38  10.0.5320.0     9,177,672  Excel.exe        

				
This fix is a post-Office XP Service Pack 2 (SP-2) fix. To install the fix, you must have Office XP SP-2 installed. For additional information about Office XP SP-2, click the following article number to see the article in the Microsoft Knowledge Base:
325671 OFFXP: Overview of the Office XP Service Pack 2
Additionally, you may have to install Windows Installer 2.0 to install this fix. For additional information about the Windows Installer requirement for post-Office XP SP-2 fixes, click the following article number to see the article in the Microsoft Knowledge Base:
330537 OFFXP: Office XP Updates and Patches Released After September 2002 May Require Windows Installer 2.0

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Office XP Service Pack 3.

Properties

Article ID: 821564 - Last Review: October 26, 2013 - Revision: 3.0
APPLIES TO
  • Microsoft Excel 2002 Service Pack 2
Keywords: 
kbnosurvey kbarchive kbqfe kbhotfixserver kbbug kbfix kbofficexppresp3fix KB821564

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com