#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Sample code

I have 31 dbf file which I received daily. I need to extract information from
this file daily i.e day 1 .... day 31 into excel fixed spreadsheet.
Information need to extract from this dbf file under the field below
Accode
Acdesc
Type
Closebal
Tbdate
Excel standard format as per below

Column A Column B Column C Column D Column E Column F to AI

Accode Acdesc Type Closebal Tbdate Day
1 and so on



Thank you


--
malik@fifi
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Sample code

The best way of getting code when importing data from a database is to use a
learn macro. the code can be modified if necessary later.

1) On worksheet go to Tools - Macro - record New Macro
2) Import data using menu data - import external data - import data. then
manually select the data you want to import. You could also do a query.
3) then stop recording. If you need modification then post the record code
so changes can be made.

"malik" wrote:

I have 31 dbf file which I received daily. I need to extract information from
this file daily i.e day 1 .... day 31 into excel fixed spreadsheet.
Information need to extract from this dbf file under the field below
Accode
Acdesc
Type
Closebal
Tbdate
Excel standard format as per below

Column A Column B Column C Column D Column E Column F to AI

Accode Acdesc Type Closebal Tbdate Day
1 and so on



Thank you


--
malik@fifi

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
Error 424 for sample code? Taras_96 Excel Programming 2 May 24th 08 03:38 PM
do anybody have a sample code for executing excel macro from vb code?<eom B Deepak Excel Programming 2 September 30th 05 09:59 AM
Need sample code Sandy Excel Programming 2 August 31st 05 12:47 PM
Registration Key Sample Code Larry[_17_] Excel Programming 0 July 5th 05 10:05 AM
Need Sample VBA Code Bill Sturdevant[_2_] Excel Programming 3 January 26th 05 10:25 PM


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