Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save excel doc as dbf with VBA

Status
Not open for further replies.

gads

IS-IT--Management
May 26, 2003
2
MX
Hi all,
Does anyone know how save excel doc as dbf file from VBA Code?
I use

ActiveWorkbook.SaveAs strnewfile, xlNormal.
But DBF?

Thanks a lot
 
If you record a macro and perform the action then look at the recorded macro you will see the code that was developed. Make sure you have selected a range.

Range("A1:A2").Select
Range("A2").Activate
ActiveWorkbook.SaveAs Filename:="G:\SDV\MGMT\Book1.dbf", FileFormat:=xlDBF4 _
, CreateBackup:=False

---------------------
scking@arinc.com
---------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top