Copy Workbook To New Workbook & Save as in Specific Location, Close Copied Workbook

Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Copy Workbook To New Workbook & Save as in Specific Location, Close Copied Workbook

  1. #1
    New Member
    Join Date
    Jan 2018
    Posts
    2
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Copy Workbook To New Workbook & Save as in Specific Location, Close Copied Workbook

     
    I'm working with a code that saves a workbook in a specific location based on what's in a specific cell value. I would like it to copy the workbook, save it in a specific location based on a cell value, and then it will close, leaving me with my Master Workbook.

    Here is the code I was working with:

    Sub filename_cellvalue()
    Dim Path As String
    Dim filename As String
    Path = "G:\abc\123"
    filename = Range("C162")
    ActiveWorkbook.SaveAs filename:=Path & filename & ".xlsm", FileFormat:=52
    End Sub
    0 0
     

  2. #2
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    5,060
    Post Thanks / Like
    Mentioned
    111 Post(s)
    Tagged
    4 Thread(s)

    Default Re: Copy Workbook To New Workbook & Save as in Specific Location, Close Copied Workbook

      
    @torourke17 this is a duplicate, of this post https://www.mrexcel.com/forum/excel-...ml#post4986096

    Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
    Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).

    If you do not receive a response, you can "bump" it by replying to it again, though we advise you to wait 24 hours before doing and not to bump a thread more than once a day.
    Last edited by Fluff; Jan 13th, 2018 at 09:56 AM.
    - Posting guidelines, forum rules and terms of use
    - Try searching for your answer first, see how
    - Read the FAQs
    - List of BB codes

    Running Office 2003 & 2013 on Win 7
    0 0
     

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com