+ Reply to Thread
Results 1 to 3 of 3

Qick Gotcha: Migrating VBA with Protected Sheets to Excel 2016

  1. #1
    Forum Contributor Gregor y's Avatar
    Join Date
    10-24-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2010 32-Bit
    Posts
    276

    Qick Gotcha: Migrating VBA with Protected Sheets to Excel 2016

    Hi, just ran into this one.

    Apparently Excel 2016 throws a fit and shows an Error dialog Box with the (helpful?) message "400" if your VBA code is making changes to a protected sheet.

    The resolution in my case was:
    Please Login or Register  to view this content.
    I suppose to be fair to M$, this is kinda a change for the better as it preserves the integrity of a protected sheet; however an error dialogue that only displays "400" is just plain lazy and needs fixed.
    If it'd make you feel better using my answer because of my street cred, then you can go ahead and click Add Reputation below to improve it.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Qick Gotcha: Migrating VBA with Protected Sheets to Excel 2016

    if the sheet is unprotected, why would it throw an error?

  3. #3
    Forum Contributor Gregor y's Avatar
    Join Date
    10-24-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2010 32-Bit
    Posts
    276

    Re: Qick Gotcha: Migrating VBA with Protected Sheets to Excel 2016

    Quote Originally Posted by Gregor y View Post
    if your VBA code is making changes to a protected sheet.
    the work around was to: unprotect, change, reprotect... which the code did not need to do prior to Excel 2016
    Last edited by Gregor y; 03-20-2018 at 02:37 PM.

+ 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. Excel 2016 Opening Sheets in Different Excel Instances
    By mowens74 in forum Excel General
    Replies: 3
    Last Post: 03-13-2018, 07:27 AM
  2. Replies: 1
    Last Post: 09-18-2017, 08:27 AM
  3. Migrating a manual dataset to a Pivot Chart - Excel 2016 (Office365)
    By RobertW_K in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 04-13-2017, 08:36 AM
  4. Excel 2016 - looking for script to get data from password protected website
    By harris1210 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-25-2016, 01:58 PM
  5. Excel 2016 issues: Adding sheets and find replace.
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2016, 07:25 AM
  6. Need help with migrating data between sheets
    By blainearcher in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-29-2014, 10:37 AM
  7. Automatically Delete Unused Sheets in Protected Wkbk with Protected Sheets?
    By leaning in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-06-2010, 08:49 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