Results 1 to 4 of 4

Save Copy Filename As Without Including Macros

Threaded View

  1. #1
    Registered User
    Join Date
    10-20-2016
    Location
    jakarta
    MS-Off Ver
    2013
    Posts
    2

    Save Copy Filename As Without Including Macros

    Dear All, i have found googling the code below. Help i need save copy filename without including macros, but file master keep is it.
    My excel 2013 version. Sorry my english.
    Thanks for appriciated..

    Private Sub CommandButton1_Click()
    Dim Path As String
    Dim FileName1 As String
    Dim FileName2 As String
    Dim FileName3 As String
    
    Application.ScreenUpdating = False
    Path = "D:\inventory\"
    FileName1 = Range("AE3")
    FileName2 = Range("I11")
    FileName3 = Range("AF3")
     
        ActiveWorkbook.SaveAs Filename:=Path & FileName1 & "_" & FileName2 & "_" & FileName3 & ".xls", FileFormat:=xlNormal
        
    End Sub
    Last edited by JBeaucaire; 10-21-2016 at 12:20 AM. Reason: Added missing CODE tags. Please read and follow the Forum Rules, link above in the menu bar. Thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Input Filename to copy, rename and save to directory
    By Tellm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2014, 05:58 AM
  2. Save a copy of the workbook including only sheets with values in a certain cell
    By Melisendk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-11-2013, 08:47 AM
  3. Replies: 2
    Last Post: 08-13-2012, 05:20 PM
  4. Copy worksheet including named ranges not including macros
    By urungus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2009, 01:38 PM
  5. Copy entire worksheet including all Macros and VBA Code
    By alanda in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-22-2008, 04:03 PM
  6. Auto save file copy with unique filename
    By Allen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2006, 03:25 PM
  7. [SOLVED] Date + Filename using save copy as
    By SKelley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2005, 05:06 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