Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 367
Default Date Format Problem

Hi,

I am having a frustarting moment here. I have identical workbooks that are
stored on 2 shared network drives (D1 & D2). The workbook stored on D1 works
no problem for the people in my office. The file on D2 formats the date
incorrectly. All the shared drives are in the same server location.

The below code is supposed to output the date as, on the first pass,
1/15/2006 and it does so on the version that I use, D1. The D2 version
outputs the date as 2015-01-06. There is no difference in the code. If the
users that access the D2 version e-mail the workbook to my location the code
executes without any problems. If I access the workbook the workbook
directly on D2 from my location the date format changes to the incorrect
format.

Dim iCount As Integer
Dim begDate(12) As Date

begDate(iCount) = Format(15 & "/" & iCount & "/" &
Worksheets(strSummary).Range("e2").Value, "dd\/mmm\/yy")

I really appreciate any and all help.

jason

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 367
Default Date Format Problem

I figured it out. The Regional optionsDate format in Windows was set
differently on the machines.

Jason

"Jason" wrote:

Hi,

I am having a frustarting moment here. I have identical workbooks that are
stored on 2 shared network drives (D1 & D2). The workbook stored on D1 works
no problem for the people in my office. The file on D2 formats the date
incorrectly. All the shared drives are in the same server location.

The below code is supposed to output the date as, on the first pass,
1/15/2006 and it does so on the version that I use, D1. The D2 version
outputs the date as 2015-01-06. There is no difference in the code. If the
users that access the D2 version e-mail the workbook to my location the code
executes without any problems. If I access the workbook the workbook
directly on D2 from my location the date format changes to the incorrect
format.

Dim iCount As Integer
Dim begDate(12) As Date

begDate(iCount) = Format(15 & "/" & iCount & "/" &
Worksheets(strSummary).Range("e2").Value, "dd\/mmm\/yy")

I really appreciate any and all help.

jason

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
Excel Format Problem - Date Overrides Format Mary Excel Discussion (Misc queries) 5 February 10th 10 05:49 AM
date format problem pol Excel Discussion (Misc queries) 1 May 1st 09 02:23 PM
Date format problem Natalie Excel Worksheet Functions 4 June 7th 07 01:28 PM
Date Format problem nastech Excel Discussion (Misc queries) 2 January 18th 06 01:54 AM
Date Format Problem Mario Excel Programming 5 February 9th 05 03:35 PM


All times are GMT +1. The time now is 10:58 PM.

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"