+ Reply to Thread
Results 1 to 5 of 5

refreshAll on Protected Sheets

  1. #1
    Forum Contributor
    Join Date
    07-10-2020
    Location
    New Zealand
    MS-Off Ver
    365 personal
    Posts
    302

    refreshAll on Protected Sheets

    The Code below gives me a VBA 400 error - and I am not sure why

    Any ideas

    thank you

    Allister'


    Please Login or Register  to view this content.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,717

    Re: refreshAll on Protected Sheets

    When I run this code I do not get an error. Can you provide your workbook?

    It's not an error but if there is no password, you can omit the Password argument.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    07-10-2020
    Location
    New Zealand
    MS-Off Ver
    365 personal
    Posts
    302

    Re: refreshAll on Protected Sheets

    Thank you

    I have got rid of the 400 error - :-)

    The only thing now is a warning saying that I have a protected sheet. If I manually unprotect the sheets and run the RefreshAll I do not get the error.

    What change do I need to make ?

    Allister
    Attached Files Attached Files
    Last edited by AllisterB; 02-24-2021 at 06:07 PM. Reason: reattch xlsm file

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,717

    Re: refreshAll on Protected Sheets

    You have attached a .xlsx file, so it doesn't have any code.

  5. #5
    Forum Contributor
    Join Date
    07-10-2020
    Location
    New Zealand
    MS-Off Ver
    365 personal
    Posts
    302

    Re: refreshAll on Protected Sheets

    Sorry for that - The correct one is now posted
    Last edited by AllisterB; 02-24-2021 at 07:30 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. How to overwrite password protected sheets or break the locked sheets
    By anita2017 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-21-2019, 01:22 PM
  2. Replies: 2
    Last Post: 11-15-2019, 02:43 AM
  3. RefreshAll
    By Shahadat65 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2015, 05:21 AM
  4. Code to delete sheets and rename sheets in a protected workbook?
    By leaning in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-07-2011, 03:02 AM
  5. 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
  6. Replies: 1
    Last Post: 09-19-2006, 02:02 AM
  7. [SOLVED] Macro for filter on protected workbook that works for all sheets, no matter what sheets are named?
    By StargateFanFromWork in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-26-2006, 02:35 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