+ Reply to Thread
Results 1 to 2 of 2

VBA Save As on protected workbook is not saving file

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    1

    VBA Save As on protected workbook is not saving file

    Hi,

    I am trying to produce a save as copy of a read only protected workbook. I have written a macro that prompts the user to save as. The save as dialogue box opens, allows you to select the drive and folder but when save is clicked the file is not saved anywhere. I have tried multiple folders/naming conventions and I have tried changing the file extensions in the VBA. I even opened the destination folder and watched the saved file appear and then disappear in front of my eyes!

    I guess the question is, can I save as via a macro on a protected sheet without unprotecting it? I am very reluctant to unprotect the sheet at any point as the spreadsheet will be available on a website for customers to use and I really don't want to risk them playing with formulas/changing figures.

    Any advice is gratefully received.

    TIA

  2. #2
    Forum Contributor
    Join Date
    08-23-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: VBA Save As on protected workbook is not saving file

    I think i know what you are wanting.

    In the past i've needed to save read-only copies of my files on public drives and i used ReadOnlyRecommended:=True at the part in my code where i was saving the workbook.

    Doing this, i was able to save read-only versions without having to have to work with a protected workbook all the time.
    Last edited by jayherring86; 05-28-2016 at 02:09 PM.
    IF("helping me", "thanks", "need more detail?")

+ 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] Save file with new name without saving duplicate file with old name
    By scrabtree23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2015, 05:27 PM
  2. File save as VBA not saving
    By johnny_p in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-20-2013, 11:16 AM
  3. Saving a password protected output file, void of macros.
    By soxcrates in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2013, 01:16 AM
  4. Saving a File using File Dialog Save As
    By tenk283 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-20-2010, 02:08 AM
  5. Error Saving Protected Workbook
    By sdforson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2010, 10:44 AM
  6. [SOLVED] Save VBA without saving the workbook?
    By Alex in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2006, 09:00 PM
  7. Macro file save as, saving sheet not workbook
    By annep in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-21-2006, 06:39 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