+ Reply to Thread
Results 1 to 4 of 4

Opened workbooks save as feature

Hybrid View

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Opened workbooks save as feature

    Hello everyone
    I have two opened workbooks ..
    I need a macro in this workbook to enable me to save the other opened workbook as anyname.xlsm

    Example: I have "Master.xlsm" workbook and "Yasser.xlsm" workbook
    I need a macro in Master workbook that enables me to save the other workbook "Yasser" as "New Yasser" in the same path
    Hope it will be easy
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Opened workbooks save as feature


    Hi !

    Easy with Workbooks.SaveAs method as explained in VBA help …

  3. #3
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Opened workbooks save as feature

    Example:
    Sub test()
        Dim sPath As String
        sPath = ThisWorkbook.Path
        Workbooks("Yasser.xlsm").SaveAs sPath & "\" & "New Yasser.xlsm", 52 'provided this workbook is open, can be run from another Excel workbook in the same instance. otherwise, open this first
    End Sub
    52 (xlOpenXMLWorkbookMacroEnabled) is the fileformat parameter

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Opened workbooks save as feature

    In face, it seems that my trick to save as opened workbook wouldn't work
    The code is working well ...

    The problem is that the target opened workbook in not xlsm extension ... It's exe extension (Yasser.exe) ..
    This workbook is converted to exe by small utility called "XLToEXE" and I need to convert it to excel file again

    I discovered it may be saved as xlsm but the problem is that (Yasser.exe) is protected and Save As option is disabled and VBA is password protected and the interface of the application is fully hidden ....

+ 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. VBA code for deactivating Save As feature
    By alchavar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2013, 10:59 PM
  2. Looping through opened workbooks
    By Hassan Seesodia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-19-2013, 04:13 AM
  3. Counter for Opened workbooks
    By Johnr1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-21-2012, 11:53 AM
  4. Auto Save Feature cannot find file
    By jstnvndn in forum Excel General
    Replies: 9
    Last Post: 04-07-2011, 10:33 AM
  5. Security feature if opened outside the network
    By MichelleW in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2009, 05:31 PM
  6. clear recently opened workbooks
    By gsheets in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-11-2007, 03:56 AM
  7. [SOLVED] always prompted to save opened workbooks
    By kjbrr in forum Excel General
    Replies: 4
    Last Post: 07-31-2006, 03:13 PM
  8. Why is Excel Save As feature not working?
    By Ben Moir in forum Excel General
    Replies: 1
    Last Post: 04-27-2006, 01:50 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