Results 1 to 2 of 2

Creating Workbook in specific folder

Threaded View

  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
    U:\Urlopy\Manager
    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
    U:\Urlopy\Manager\Sky
    I created the below code but it does create the workbook in the path
    U:\Urlopy\Manager
    and its name include the required subfolder name.

        LWorkbook.SaveAs Filename:="U:\Urlopy\Manager\" & worksheets("Plik roboczy").Range("M8).Value & "Wniosek urlopowy " & Worksheets("Plik roboczy").Range("M10").Value, FileFormat:=52
    Could I please ask for your help?
    Last edited by Szwadron6; 05-25-2017 at 09:30 AM.

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