Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Convert date from dbf files

I open a dbf file from vba and would like to convert all date to excel
format. Does it is possible to test the dbf column format (ex: Date 8.0) ?
I have try this but doesn't work.
Thanks!
Dim Data As Date
Set rng = wks.Rows(1).Find(DateValue(Data), LookAt:=xlWhole)
If Not rng Is Nothing Then rng.EntireColumn.NumberFormat = "yyyy/mm/dd;@"

Alex St-Pierre
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Convert date from dbf files

Workbooks.Open "c:\data.dbf"
Does it exist a function that allow me to know what is the dbf format for a
specific column ? with that, I will be able to ask each column.
Or, does it have a function that keeps the dbf format when you open a dbf
files ?
Thank you.
--
Alex St-Pierre


"Alex St-Pierre" a écrit :

I open a dbf file from vba and would like to convert all date to excel
format. Does it is possible to test the dbf column format (ex: Date 8.0) ?
I have try this but doesn't work.
Thanks!
Dim Data As Date
Set rng = wks.Rows(1).Find(DateValue(Data), LookAt:=xlWhole)
If Not rng Is Nothing Then rng.EntireColumn.NumberFormat = "yyyy/mm/dd;@"

Alex St-Pierre

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
How can I batch convert 97-2003 .xls files to 2007 .xlsx files Dave Nuttall Excel Discussion (Misc queries) 4 August 3rd 09 11:38 PM
how do i convert text files into CSV files? airpr23 Excel Discussion (Misc queries) 2 February 28th 07 12:56 AM
converter tool to convert XL 2007 files to XL 2003 files Dave F Excel Discussion (Misc queries) 6 December 15th 06 12:45 AM
Can I convert my Quatro Pro files to MS Excel files? James HW New Users to Excel 3 May 11th 06 04:42 PM
convert 400 word files to excel files fast? CPower[_13_] Excel Programming 1 June 21st 04 10:29 AM


All times are GMT +1. The time now is 02:13 AM.

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"