+ Reply to Thread
Results 1 to 5 of 5

VBA save as file type

  1. #1
    Registered User
    Join Date
    01-08-2014
    Location
    wigan
    MS-Off Ver
    2007
    Posts
    78

    VBA save as file type

    Hi,
    I have some code which basically selects a customer record from one sheet,
    pulls in all the months invoices relating to that client on another sheet,
    selects alll the invoices,
    copies to a new workbook
    saves it in a specified location
    loops onto the next client record, and so on.

    Everything works fine, apart from I need to save it as a CSV, not an excel workbook.

    THis is the bit of code that saves the workbook, what do I need to add to this:

    Please Login or Register  to view this content.
    in particular this bit:

    Please Login or Register  to view this content.
    Help appreciated, thanks in advance.

    Cheers
    Dan.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: VBA save as file type

    Record a macro while saving a test file as a CSV to get basic code...

  3. #3
    Registered User
    Join Date
    01-08-2014
    Location
    wigan
    MS-Off Ver
    2007
    Posts
    78

    Re: VBA save as file type

    Thanks, yes I had thought of that -

    If i save as CSV it will remove the macro i have just recorded, so when I open again i can't view the code.

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: VBA save as file type

    Record the macro in a workbook other than the one you are saving.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  5. #5
    Registered User
    Join Date
    01-08-2014
    Location
    wigan
    MS-Off Ver
    2007
    Posts
    78

    Re: VBA save as file type

    thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. File Save As on Cell Value and File Type not working
    By amartin575 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-17-2016, 06:10 PM
  2. SAVE AS with New FIle type
    By damaniam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-14-2015, 03:17 AM
  3. Macro needed to open "File Save As" and change save file type
    By blainerhett in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2014, 02:40 PM
  4. Save as macro that specifies file type, file location and takes file name from three cells
    By ExcelFailure in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-13-2013, 10:09 PM
  5. Force save as file type
    By wilro85 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2008, 02:02 PM
  6. Save As File Type
    By swedish max in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2006, 06:40 AM
  7. why cant i see .csv as save file type
    By Adie in forum Excel General
    Replies: 3
    Last Post: 07-19-2005, 02:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1