+ Reply to Thread
Results 1 to 6 of 6

Unable to to select/change file save destination when exporting mutiple tabs as CSV

  1. #1
    Registered User
    Join Date
    03-14-2016
    Location
    Blackburn
    MS-Off Ver
    Office 2013
    Posts
    3

    Unable to to select/change file save destination when exporting mutiple tabs as CSV

    Good afternoon all

    I am new to this forum so forgive me while I get to grips with the rules and hope I can explain my issues in a comprehensible manner.

    I have a macro that works wonderfully for me but I need it do just a little bit more. The macro allows me to export several tabs I have in the workbook as individual csv files, however they are all saved to my documents folder by default. I would like to know how I can do one of the following:

    - Save all the files to another folder instead
    - Select the file(s) save destination myself

    This the macro I am using

    Please Login or Register  to view this content.

    Would hugely appreciate it if anyone could provide some guidance on this.


    Many thanks in advance


    Abs

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Unable to to select/change file save destination when exporting mutiple tabs as CSV

    Hi there,

    See if the following routines do what you need.

    The first routine will always save files in the specified folder, and the second routine will open a SaveAs dialogbox at the specified folder, and allow "onward navigation" from that point. The third routine will allow you to specify a different folder for each new workbook (worksheet) that is created.

    Please Login or Register  to view this content.
    The highlighted values may be changed to suit your own requirements.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Registered User
    Join Date
    03-14-2016
    Location
    Blackburn
    MS-Off Ver
    Office 2013
    Posts
    3

    Re: Unable to to select/change file save destination when exporting mutiple tabs as CSV

    Hi Greg

    Thank you so much for this. Routine 1 worked perfect however routine 2 threw up a run time error - "Run-time error 13" Type mismatch.

    Again thank you so much for your help on this, much appreciated.

    Kind regards

    Abdul

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Unable to to select/change file save destination when exporting mutiple tabs as CSV

    Hi again,

    The versions I posted work correctly on my installation, but a possible Type Mismatch problem (for which I previously tested) might be avoidable by using the following versions:

    Please Login or Register  to view this content.
    Changes/additions to the previous versions have been highlighted.


    Hope this helps - as before, please let me know how you get on.

    Regards,

    Greg M

  5. #5
    Registered User
    Join Date
    03-14-2016
    Location
    Blackburn
    MS-Off Ver
    Office 2013
    Posts
    3

    Re: Unable to to select/change file save destination when exporting mutiple tabs as CSV

    Hi Greg

    That worked perfectly. Thank you so much for your help.

    Kind regards

    Abdul

  6. #6
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Unable to to select/change file save destination when exporting mutiple tabs as CSV

    Hi again,

    Many thanks for your feedback - I'm glad I was able to help.

    Best regards,

    Greg M

+ 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. Unable to save or repair a file
    By michele120 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-21-2015, 09:19 PM
  2. Unable to select Change Source
    By MarcLiq in forum Excel General
    Replies: 0
    Last Post: 06-21-2010, 05:15 PM
  3. unable to change the data and save the Work Book
    By jay11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2010, 01:39 PM
  4. change link path when open destination file
    By tango in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-30-2009, 07:40 PM
  5. [SOLVED] When sharing a workbook unable to change color of tabs
    By Jeff D in forum Excel General
    Replies: 1
    Last Post: 09-17-2005, 07:05 PM

Tags for this Thread

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