PC Review


Reply
Thread Tools Rate Thread

Copy files to dbf files

 
 
Alex
Guest
Posts: n/a
 
      9th Aug 2008
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
 
Reply With Quote
 
 
 
 
scooper
Guest
Posts: n/a
 
      9th Aug 2008
Can't you just "Save As" to a .dbf file?
If so start a macro record and create the macro yourself.
scooper


"Alex" <(E-Mail Removed)> wrote in message
news:7F1A321A-045E-47F6-825B-(E-Mail Removed)...
> 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



 
Reply With Quote
 
Alex
Guest
Posts: n/a
 
      9th Aug 2008
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: http://LongPathTool.com - Delete and Copy Path Too Long Files + unlock files in-use by other applications Tim Meddick Windows XP Basics 1 18th Apr 2011 01:37 PM
Copy Network Files to Local Directory, then rename orig files andvice versa ksfrye@gmail.com Microsoft Access VBA Modules 4 1st Feb 2008 03:49 AM
Files Drag & Drop / Files copy-paste to the clipboard (C# CF2 WinCE 5.0) orenbt78@googlemail.com Microsoft Dot NET Compact Framework 0 27th Jul 2006 05:45 PM
Unable to locally copy files but can create files or do it remotely Phil C Microsoft Windows 2000 File System 1 30th Nov 2003 03:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:26 AM.