Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 25th, 2013, 10:57 AM
Registered User
Join Date: Mar 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Excel auto export .dbf file through VBA - OFFICE 2013 woes

Trying to solve a problem. My company is upgrading to Office 2013 and as I understand it, dbf output from access macros has been removed. I read that I can do it in Excel, but haven't found any info on automating. I downloaded and installed the add-in for excel: SaveDBFIV.xlam

I've got this script:
Sub SaveInFormat()
Application.DisplayAlerts = False
Workbooks.Application.ActiveWorkbook.SaveAs Filename:="\\apps07\5885\My Documents\" & "ArcMAPXY" & ".dbf", FileFormat:=??
Application.DisplayAlerts = True
End Sub
I just don't know what the FileFormat:= should be. Any ideas? Thanks...

Example of various file types:
FileExtStr = ".xls": FileFormatNum = -4143
FileExtStr = ".xlsx": FileFormatNum = 51
FileExtStr = ".xlsm": FileFormatNum = 52
FileExtStr = ".xlsx": FileFormatNum = 51
FileExtStr = ".xls": FileFormatNum = 56
FileExtStr = ".xlsb": FileFormatNum = 50

Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot open code in Excel 2013 mars BOOK: Excel 2007 VBA Programmer's Reference ISBN: 978-0-470-04643-2 1 April 15th, 2013 04:24 AM
Excel VBA access FoxPro DBF file il_mostrino Excel VBA 0 May 16th, 2008 02:27 PM
Excel VBA and Office Clipboard tcarnahan Excel VBA 3 April 4th, 2006 11:41 AM
How to connect to a dbf file using VBA? smartmani VB How-To 0 June 17th, 2005 04:39 PM
File Export in VBA desprate Access VBA 3 April 24th, 2005 01:48 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.