×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

saving worksheet as different file format

saving worksheet as different file format

saving worksheet as different file format

(OP)
I created an Excel macro that displays a dialog box for a user to name and save a file. The syntax that I use is: Application.Dialogs(xlDialogSaveAs).Show

After the file is saved, I want to use a macro command to convert the file to a DBF format. Is there a way to do this with a macro?

RE: saving worksheet as different file format

Why don't you just save it as a dbf the first time? If that option isn't available for you, you may need to install the converter. I currently run Office 2000 and have the ability to save as a DB2, DB3, or DB4. Perhaps, you could do an on-close that saves the file to a dbf. You can't convert an open file, but you can save-as. Maybe I need to know more?

RE: saving worksheet as different file format

(OP)
I created an Excel macro that displays a dialog box for a user to name and save a file. The syntax that I use is: Application.Dialogs(xlDialogSaveAs).Show

The user names the file according to the contents of that file at a given time. After the file is saved, I want to use a macro command to convert the file to a DB3 format and close the worksheet. My problem is that I don't know how to set up a macro that allows a user to name and automatically save a file in a DB3 format. We are using Excel '97.

RE: saving worksheet as different file format

Try:

Do
fName = Application.GetSaveAsFilename
Loop Until fName <> False
ThisWorkBook.SaveAs Filename:=fName FileFormat:=xlDBF3



Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close