Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 19th, 2005, 06:32 AM
Registered User
 
Join Date: Aug 2005
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Saving an excel file in Access VBA

Hello,

I've written a procedure that takes an Excel file in CSV format. Modifies it and then saves the Excel file in XLS format for importing.

It's all part of a bigger procedure and therefore must be fully automated. The problem I'm having is that when I save the workbook using:

MyXLWbk.SaveAs "blahblah.xls"

The file is saved as "blahblah.xls" but the format is still CSV (ie. the same result that would be expected from simply changing the file extension of a csv). How can I specify the file format of the file as I save it ?

Thanks in advance,
Tom

Reply With Quote
  #2 (permalink)  
Old August 19th, 2005, 08:14 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

What is the problem saving the file as a csv? You can still pull the data. Are you having an import problem?

mmcdonal
Reply With Quote
Reply


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
Excel VBA access FoxPro DBF file il_mostrino Excel VBA 0 May 16th, 2008 02:27 PM
Saving with Excel VBA Scooter057 Excel VBA 1 January 15th, 2008 10:33 PM
Saving HTML popups using VBA in MS Excel Sureshsbe VB How-To 0 June 16th, 2007 02:40 AM
EXCEL question saving a file saving the the first macupryk VS.NET 2002/2003 0 January 6th, 2005 05:33 PM
Saving Excel VBA code gives problems - Help needed mjaitly Excel VBA 0 April 14th, 2004 07:23 AM



All times are GMT -4. The time now is 03:36 PM.


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