+ Reply to Thread
Results 1 to 4 of 4

Saving Worksheet to specific folder, with specific name

  1. #1
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Saving Worksheet to specific folder, with specific name

    Hi all,

    I have a spreadsheet which manipulates data via a series of userforms.

    Once the manipulation is complete, the file needs to be saved into a specific folder.

    Is there a way I could run a code at the end to save the excel file into a specific folder, based on the location (i.e. C:\Users\Christopher.Ellis\Desktop\VBA Testing\CPA Test\Multiple Number)

    BUT where it is also saved with a specific name, i.e. CPA 1, or CPA 2 if there already is a CPA 1 in the folder, or CPA 3 if CPA 2 is in the folder and so on?

    Any help much appreciated.

  2. #2
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Saving Worksheet to specific folder, with specific name

    Untested, but something like this;

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Re: Saving Worksheet to specific folder, with specific name

    Perfect. Just had to change the file type to .xlsm, but it worked perfectly. Thank you very much!

  4. #4
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Saving Worksheet to specific folder, with specific name

    No problem - Glad I could help

+ 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. Help saving a selection to PDF in a specific OneDrive folder.
    By rcicconetti in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-01-2016, 07:46 AM
  2. [SOLVED] Saving file to a specific folder
    By richkim2000 in forum Excel General
    Replies: 3
    Last Post: 04-17-2016, 11:32 AM
  3. Problem Saving to a specific folder
    By mengghee in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2015, 09:30 AM
  4. Saving to Specific folder - Dependent on month
    By shiser in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-04-2014, 12:07 PM
  5. Saving a sheet to a specific folder
    By kmraz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-21-2013, 08:43 PM
  6. [SOLVED] Saving a file to a specific name to a folder with a windows username
    By wagwagdude in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2013, 06:13 PM
  7. saving file to a specific folder
    By naomi in forum Excel General
    Replies: 3
    Last Post: 11-15-2007, 04:53 AM

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