+ Reply to Thread
Results 1 to 2 of 2

File Save As a new name.

  1. #1
    Registered User
    Join Date
    02-19-2017
    Location
    Helsinki, Finland
    MS-Off Ver
    MS Office 365
    Posts
    60

    File Save As a new name.

    Hello All,
    I need help. I have a excel file which name is “Sales.xlsm” and this file have many CommandButtons. I need to make Save As a new name, say “Sales Sept21”. In this situation I want “Sales Sept21” file should be protected and all CommandButtons should be deleted. What is the VBA Code? Could anybody help me?

  2. #2
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: File Save As a new name.

    Please Login or Register  to view this content.
    the code will delete all the buttons exist in all sheets,
    protect all existing sheets,
    prompt the user to give name of the new file and choose the directory
    then save it as the new file name with xlsm extension.
    Last edited by karmapala; 09-13-2021 at 05:58 AM.

+ 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. file save as tab delimited change to direct file save
    By bkanealy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-13-2016, 02:15 PM
  2. save as which remains the master file and save new file
    By ash3angel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-16-2015, 04:13 AM
  3. Macro needed to open "File Save As" and change save file type
    By blainerhett in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2014, 02:40 PM
  4. Replies: 1
    Last Post: 09-05-2013, 02:39 PM
  5. Save as macro that specifies file type, file location and takes file name from three cells
    By ExcelFailure in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-13-2013, 10:09 PM
  6. Replies: 0
    Last Post: 01-27-2013, 12:13 PM
  7. Replies: 0
    Last Post: 03-09-2005, 06: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