+ Reply to Thread
Results 1 to 3 of 3

Workbook macro's not working when protected

  1. #1
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Workbook macro's not working when protected

    Hi,

    I've had a lot of help from here already in getting my spreadsheet to function so thanks to you all, its appreciated.

    However, when I come to protect it as its going out to lots of people in an organisation the macro's result in errors.
    From doing some research I see that this is common and there are "ways" around it, I have started going down the route of UnProtect & Protect at the start and end of macro's but this still causes me issues (probably because I'm doing something wrong).

    My question really is that my workbook works over several sheets which the macro's copy data to, clear data, sort data... This results in a file size over 4.6MB, how is it possible to create a sample to show my problem to get the help I need?

    I'm worried that I keep adding code to get protection to work and I'll end up confusing everything.

    Regards
    Tez
    Last edited by ~TaC~; 09-03-2019 at 03:36 PM. Reason: spelling error

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Workbook macro's not working when protected

    In ThisWorkbook object, change ken to your password and change protect options to suit.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Re: Workbook macro's not working when protected

    Thanks for your reply, I think this works but due to other issues I can't really tell.

    If I remove your suggested code and run the WB protected I am getting errors which I'm thinking if I show where the error are in the code then I could get help for each that arise. Don't want to violate any conduct though!

    Please Login or Register  to view this content.
    Red code is where I'm getting an error on protected sheet

+ 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. Replies: 1
    Last Post: 06-18-2018, 07:24 PM
  2. [SOLVED] Excel Timestamps (Not Working When Workbook Is Protected)
    By Anaky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-29-2014, 01:41 PM
  3. Macros not working in a protected workbook
    By Triscia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2013, 08:25 AM
  4. Macro not working when sheet is protected.
    By ebin charles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2011, 06:10 AM
  5. VBA Macro not working when workbook is protected
    By JustinMAS in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-24-2008, 04:58 PM
  6. Autofilter in protected workbook not working
    By Rumpa Biswas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-27-2006, 12:35 PM
  7. Replies: 9
    Last Post: 07-25-2005, 08:05 AM

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