+ Reply to Thread
Results 1 to 2 of 2

Creating Workbook in specific folder

  1. #1
    Forum Contributor
    Join Date
    01-18-2017
    Location
    Poznań, Poland
    MS-Off Ver
    2016
    Posts
    139

    Creating Workbook in specific folder

    Hi,

    I want to use VBA to create a new workbook from the specific sheet in another workbook and save it in the location
    Please Login or Register  to view this content.
    but in that folder, there are multiple subfolders with a specific name. I want to create this new workbook in the subfolder which name I include in the original workbook in sheet "Plik roboczy" in cell "M8".

    For example if in Cell M8 Value is 'Sky' I want to create the file in the path
    Please Login or Register  to view this content.
    I created the below code but it does create the workbook in the path
    Please Login or Register  to view this content.
    and its name include the required subfolder name.

    Please Login or Register  to view this content.
    Could I please ask for your help?
    Last edited by Szwadron6; 05-25-2017 at 09:30 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Creating Workbook in specific folder

    Looks like you're missing a folder separator after the subfolder. Perhaps:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Button to save workbook, with value in specific cell (H5), in a specific folder
    By markeeny in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2014, 01:15 PM
  2. VBA to save a same workbook with different name in specific folder
    By tantcu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2014, 11:42 PM
  3. Creating folder and filter and copy paste to a new workbook generated
    By kriahnadas.oo7 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-08-2014, 06:01 AM
  4. Extracting data from multiple .xls files in folder and creating new workbook
    By haedyr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2013, 07:28 PM
  5. [SOLVED] Need Help for creating a Macro to extract specific data from all files in a folder.
    By shaiq123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-10-2013, 02:08 PM
  6. [SOLVED] Macro to save workbook to specific folder with a specific name, then kill/disable itself.
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-18-2012, 03:50 PM
  7. Autosave workbook into a specific folder
    By whatsmyname in forum Excel Programming / VBA / Macros
    Replies: 37
    Last Post: 12-13-2010, 11:49 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