Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Excel 2000 vs 2003 date format issue (reposted)

I've done some testing using different versions of Excel which I hope will
help me to ask my question more specifically in order to get my issue
resolved. Thanks to the community for your patients.

I've created a function that formats my date field to mmddyy so that all I
see is a six digit number for example from 04/21/08 to 042108.

I do this because I'm creating an upload file that requires a prn extension
with the
date field formated as 6 digits and number only.

This works fine for me when using Excel 2003, 2002 and XP however will not
work when using Excel 2000.

As long as I view the data in Excel it looks exactly as I need it but once I
save as
..prn that field is replaced with ######. I realize the issue is that the
field is too small but that is only because it still assumes the slashes are
present where they are not.

Because this doesn't happen in any of the later versions I'm hoping someone
will know what changed and what I may do to work around this issue.

If anyone has a suggetions of how else I might convert my date field from
04/28/08 to 042808 I'd be open to that as well.

Any suggestions?

As always, thanks for any help.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default Excel 2000 vs 2003 date format issue (reposted)

Hi

Like this:
=TEXT(A1,"mmddyy")


Arvi Laanemets


"Geraldine" wrote in message
...
I've done some testing using different versions of Excel which I hope will
help me to ask my question more specifically in order to get my issue
resolved. Thanks to the community for your patients.

I've created a function that formats my date field to mmddyy so that all I
see is a six digit number for example from 04/21/08 to 042108.

I do this because I'm creating an upload file that requires a prn
extension
with the
date field formated as 6 digits and number only.

This works fine for me when using Excel 2003, 2002 and XP however will not
work when using Excel 2000.

As long as I view the data in Excel it looks exactly as I need it but once
I
save as
.prn that field is replaced with ######. I realize the issue is that the
field is too small but that is only because it still assumes the slashes
are
present where they are not.

Because this doesn't happen in any of the later versions I'm hoping
someone
will know what changed and what I may do to work around this issue.

If anyone has a suggetions of how else I might convert my date field from
04/28/08 to 042808 I'd be open to that as well.

Any suggestions?

As always, thanks for any help.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Excel 2000 vs 2003 date format issue (reposted)

Or, in VBA:

myDate = Format(Date, "mmddyy")
myFileName = ActiveFile.Name-myDate.prn

"Geraldine" wrote:

I've done some testing using different versions of Excel which I hope will
help me to ask my question more specifically in order to get my issue
resolved. Thanks to the community for your patients.

I've created a function that formats my date field to mmddyy so that all I
see is a six digit number for example from 04/21/08 to 042108.

I do this because I'm creating an upload file that requires a prn extension
with the
date field formated as 6 digits and number only.

This works fine for me when using Excel 2003, 2002 and XP however will not
work when using Excel 2000.

As long as I view the data in Excel it looks exactly as I need it but once I
save as
.prn that field is replaced with ######. I realize the issue is that the
field is too small but that is only because it still assumes the slashes are
present where they are not.

Because this doesn't happen in any of the later versions I'm hoping someone
will know what changed and what I may do to work around this issue.

If anyone has a suggetions of how else I might convert my date field from
04/28/08 to 042808 I'd be open to that as well.

Any suggestions?

As always, thanks for any help.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Excel 2000 vs 2003 date format issue (reposted)

That should be:

myDate = Format(Date, "mmddyy")
myFileName = ActiveWorkbook.Name-myDate & ".prn"

for correct syntax.

"Geraldine" wrote:

I've done some testing using different versions of Excel which I hope will
help me to ask my question more specifically in order to get my issue
resolved. Thanks to the community for your patients.

I've created a function that formats my date field to mmddyy so that all I
see is a six digit number for example from 04/21/08 to 042108.

I do this because I'm creating an upload file that requires a prn extension
with the
date field formated as 6 digits and number only.

This works fine for me when using Excel 2003, 2002 and XP however will not
work when using Excel 2000.

As long as I view the data in Excel it looks exactly as I need it but once I
save as
.prn that field is replaced with ######. I realize the issue is that the
field is too small but that is only because it still assumes the slashes are
present where they are not.

Because this doesn't happen in any of the later versions I'm hoping someone
will know what changed and what I may do to work around this issue.

If anyone has a suggetions of how else I might convert my date field from
04/28/08 to 042808 I'd be open to that as well.

Any suggestions?

As always, thanks for any help.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Excel 2000 vs 2003 date format issue (reposted)

Thanks! worked like a charm.

"Arvi Laanemets" wrote:

Hi

Like this:
=TEXT(A1,"mmddyy")


Arvi Laanemets


"Geraldine" wrote in message
...
I've done some testing using different versions of Excel which I hope will
help me to ask my question more specifically in order to get my issue
resolved. Thanks to the community for your patients.

I've created a function that formats my date field to mmddyy so that all I
see is a six digit number for example from 04/21/08 to 042108.

I do this because I'm creating an upload file that requires a prn
extension
with the
date field formated as 6 digits and number only.

This works fine for me when using Excel 2003, 2002 and XP however will not
work when using Excel 2000.

As long as I view the data in Excel it looks exactly as I need it but once
I
save as
.prn that field is replaced with ######. I realize the issue is that the
field is too small but that is only because it still assumes the slashes
are
present where they are not.

Because this doesn't happen in any of the later versions I'm hoping
someone
will know what changed and what I may do to work around this issue.

If anyone has a suggetions of how else I might convert my date field from
04/28/08 to 042808 I'd be open to that as well.

Any suggestions?

As always, thanks for any help.




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 2000 Font Format Issue Tess Excel Discussion (Misc queries) 6 August 17th 09 10:41 PM
Excel 2000 vs 2003 date issue Geraldine Excel Programming 3 April 22nd 08 01:41 PM
Excel 2000/2003 Secondary Axis issue [email protected] Excel Programming 0 June 2nd 06 04:10 PM
Date format (reposted) Brian Excel Discussion (Misc queries) 2 May 9th 06 02:26 AM
Excel 2000 date format cannot be set to Australian date format Brian Jones Excel Discussion (Misc queries) 1 March 30th 05 06:03 AM


All times are GMT +1. The time now is 07:15 PM.

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"