+ Reply to Thread
Results 1 to 4 of 4

"Enable Editing" with VBA?

  1. #1
    Registered User
    Join Date
    11-17-2014
    Location
    Hudson Falls, New York
    MS-Off Ver
    Home and Student 2010
    Posts
    15

    "Enable Editing" with VBA?

    I have built a lovely inventory charge out workbook that runs amazing, however, it is stored on a network server so co-workers have access to use it.
    Because of that, when I open it, it appears to be opening as read-only and I have to click the button "Enable Editing" at the top of the screen to be able to input anything.
    Can I use VBA code to enable editing when it opens so I don't have to click the stupid button?


    [edit]: I have several other VBA coded workbooks on the same server that don't do this... might be a settings thing...
    Last edited by Strykewulf; 08-20-2019 at 01:48 PM. Reason: additional info

  2. #2
    Valued Forum Contributor
    Join Date
    06-02-2012
    Location
    London, England
    MS-Off Ver
    365
    Posts
    397

    Re: "Enable Editing" with VBA?

    Have a look if there are any differences to the settings between those that show the "enable editing" message and those that don't under "File / Settings / Trust Centre / Trust Centre Settings / Protected View". That may explain why some work and this one doesn't.

    Other than that, perhaps if the files are in different folders then some are "trusted locations" and some are not.

    I'm not sure if you can bypass that message with VBA as any open event code (presumably) wouldn't fire until that message had been acknowledged.
    I've never tried though, so could be wrong...

    Beth.

  3. #3
    Registered User
    Join Date
    11-17-2014
    Location
    Hudson Falls, New York
    MS-Off Ver
    Home and Student 2010
    Posts
    15

    Re: "Enable Editing" with VBA?

    I just checked my files again, the other one I'm opening from the network server is not VBA, it's just plain XLSX. It is definitely opening in Protected view because it's opening 'from the internet'. is there a way to disable that feature for the specific file? I didn't see it in the file when I was looking... And I don't want to turn off that feature for all files from the internet...

  4. #4
    Valued Forum Contributor
    Join Date
    06-02-2012
    Location
    London, England
    MS-Off Ver
    365
    Posts
    397

    Re: "Enable Editing" with VBA?

    Whether or not you can switch this option off for a single file will very much depend on your network and how the admins have it locked down (if at all). Impossible for me to say I'm afraid.

    You could ask your network admins to "digitally sign" the file. That would make it trusted and potentially not show this message upon open.

    Other than that I'm out of ideas.

    Beth.

+ 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. Can I ENABLE the "enable editing" protection on one file after I greenlit it?
    By Oppressed1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-04-2019, 08:23 PM
  2. Calculations change after clicking on "Enable Editing"
    By LauraJ38 in forum Excel General
    Replies: 5
    Last Post: 03-29-2019, 11:39 AM
  3. Receiving "enable content" warning after executing "save as" code
    By phbryan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-11-2014, 12:02 PM
  4. [SOLVED] Enable editing chart but not "sourcedata"
    By Klaster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2014, 02:43 PM
  5. Can I "Enable Editing" using VBA on OPEN in Excel 2010
    By rkjudy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2011, 07:39 AM
  6. How to change a Command Button caption from "Enable" to "Disable"?
    By Infinity in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2007, 12:14 AM
  7. Replies: 0
    Last Post: 06-01-2006, 08:10 PM

Tags for this Thread

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