+ Reply to Thread
Results 1 to 2 of 2

Need a macro to save an active file in another folder as a name that is located in a cell

Hybrid View

  1. #1
    Registered User
    Join Date
    09-21-2015
    Location
    Toronto Canada
    MS-Off Ver
    2007
    Posts
    5

    Need a macro to save an active file in another folder as a name that is located in a cell

    Please I need a macro to save an open/active file (whole file) in a new location - "L:\Customization\QUALITY\CN's & CAR's\CN & CAR Reports 2015" - also the specific file name I want to use for the new file is the result of a formula that is located in cell "W1" on the active sheet.

    Also if it's not too complicated - once the file has been saved and renamed can the macro copy cells I2:N2 on the active sheet and paste special value on top of these cells - I want to remove the formulas and relpace with the values in these cells.

  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: Need a macro to save an active file in another folder as a name that is located in a c

    The SaveCopyAs method should work:
    ActiveWorkbook.SaveCopyAs "L:\Customization\QUALITY\CN's & CAR's\CN & CAR Reports 2015" & ActiveSheet.Range("W1").Value
    Play around with that.


    Then:
    With ActiveSheet.Range("I2:N2")
        .Value = .Value
    End With
    _________________
    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. [SOLVED] Lookup folder from cell text, then save excel file in this folder
    By dodgybob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2014, 09:00 AM
  2. [SOLVED] Save File to folder Where folder is referenced in cell
    By Will_iam in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-16-2013, 08:35 AM
  3. [SOLVED] Macro to Save File to Location Folder Based on Date in Cell
    By John_Day83 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2013, 05:34 PM
  4. [SOLVED] macro to save file to specific folder with file name from cell reference
    By mezza89 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2013, 11:32 AM
  5. Macro to save duplicate file and create folder name based on cell value
    By munkee in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-19-2012, 12:09 PM
  6. Replies: 9
    Last Post: 04-18-2012, 08:50 AM
  7. Replies: 2
    Last Post: 03-26-2012, 07:12 PM

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