+ Reply to Thread
Results 1 to 5 of 5

VB Code to save the file with name in certain cell

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to save the file with name in certain cell

    Hello:

    Please refer to attached file.


    I need VB Code to perform following.

    I need to copy DEST.xlsm from location in Cell D21 to the same directory with the file name
    in cell D24.

    Let me know if you have any questions.
    Thanks.

    RM
    Attached Files Attached Files
    Last edited by rizmomin; 10-04-2015 at 01:57 PM.

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: VB Code to save the file with name in certain cell

    Cell D1 is empty

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to save the file with name in certain cell

    Hello:

    I am sorry, it is suppose to be D21.
    Please help.
    Thanks
    RM

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to save the file with name in certain cell

    Hello:

    Can someone help with this.
    Thanks a lot
    Riz

  5. #5
    Registered User
    Join Date
    06-18-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    2

    Re: VB Code to save the file with name in certain cell

    Hi,

    Please try using the below code,

    Sub Macro1()

    Workbooks.Open Filename:="D:\DEST.xlsm"

    Windows("DEST.xlsm").Activate
    ActiveWorkbook.SaveAs Filename:="D:\Store1_Weekly_TimeData_09212015.xlsm", _
    FileFormat:=xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
    ActiveWindow.Close

    End Sub

    Regards,
    Saranya

+ 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. Replies: 9
    Last Post: 06-18-2015, 03:12 PM
  2. Need help with code to save file in a folder location based on a cell value
    By msantucci in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2015, 05:56 PM
  3. [SOLVED] VBA code to save current worksheet as temporary PDF file and then add to my existing code
    By brianfromla in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-20-2014, 08:35 AM
  4. Excel 2010 file with VBA save and send code works-but file can't be found.
    By carlton.clay in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-13-2013, 09:46 AM
  5. [SOLVED] Code to save as PDF and name file as Cell Text
    By Taislin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2013, 08:48 PM
  6. VBA Code to share file and save file
    By brian_2me in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-26-2012, 05:32 AM
  7. Amend Code - Save file with cell as name from different sheet.
    By Sirishgreen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2007, 05:32 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