Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default How to determine format?

In a CSV file, the dates can be formatted in General or Date format. I need
to be able to determine what the date format is.

It also appears that sort treats General and Date formats differently. Why
is that?


Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default How to determine format?

A cell format general will return general as the number format

If Range("B1").NumberFormat = "General" Then
z = 1
Else
z = 2
End If


"Nils Titley" wrote:

In a CSV file, the dates can be formatted in General or Date format. I need
to be able to determine what the date format is.

It also appears that sort treats General and Date formats differently. Why
is that?


Thanks

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
Determine day of week in text format WLMPilot Excel Discussion (Misc queries) 6 October 6th 08 03:13 PM
Using date format in the cells how determine percent complete boiseman62 Excel Worksheet Functions 2 January 27th 08 12:19 AM
Text box to determine internal format color oldybutgoody Excel Programming 1 October 23rd 07 02:56 PM
Determine format type from strings ALV Excel Programming 3 January 31st 07 02:39 PM
Determine number format of excel cell James Bond[_2_] Excel Programming 1 October 10th 06 06:02 AM


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