Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 25th, 2013, 10:57 AM
Registered User
Points: 10, Level: 1
Points: 10, Level: 1 Points: 10, Level: 1 Points: 10, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
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
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 11:32 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.