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

Hello,

Does anyone know how can I use macro to copy a particular worksheet into
..dbf file? In this worksheet, there are headings in the first row and
subsequent rows contain the data. May I know the code needed in the macro to
do this?

How about the other way round? Importing data from .dbf files into a
particular worksheet and the heading in the .dbf file will be in the first
row.

This will come in handy if I have a lot of dataset (.dbf) to deal with.

Cheers,
Alex
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Copy files to dbf files

Can't you just "Save As" to a .dbf file?
If so start a macro record and create the macro yourself.
scooper


"Alex" wrote in message
...
Hello,

Does anyone know how can I use macro to copy a particular worksheet into
.dbf file? In this worksheet, there are headings in the first row and
subsequent rows contain the data. May I know the code needed in the macro

to
do this?

How about the other way round? Importing data from .dbf files into a
particular worksheet and the heading in the .dbf file will be in the first
row.

This will come in handy if I have a lot of dataset (.dbf) to deal with.

Cheers,
Alex



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default Copy files to dbf files

Hi scooper, thank you for repling to my query. However if it is as simple as
recording the macro and create it myself, I would not have to post the
question. Probably I was not clear in my first posting.

When an excel file is saved to .dbf file, the structure of the dbf file
needs correction. For eg, I may have to change the format for a particular
field to numeric and with 3 decimal places.

What I need is an excel macro that can copy excel worksheet into .dbf file
and at the same time change the structure of the .dbf file.

Hope there is some expert out there who can help.

Cheers

"scooper" wrote:

Can't you just "Save As" to a .dbf file?
If so start a macro record and create the macro yourself.
scooper


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 to change default Open/Files of Type to "Microsoft Excel Files Tammy Excel Discussion (Misc queries) 2 January 14th 08 11:06 PM
Need to Export All Worksheets from All Workbooks in Folder to Separate FIles not as CSV Files socrtwo Excel Programming 2 October 30th 06 12:46 AM
how to default WritePassword under excel workbook property for any files as long as those files are the offsprings of the parent file George Excel Programming 0 October 5th 06 04:14 PM
Macro to open *.dat files and save as .txt (comma delimited text files) [email protected] Excel Programming 2 November 30th 05 05:50 AM
copy subfolders, replace text in files and save files in copied subfolders pieros Excel Programming 0 November 1st 05 12:08 PM


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