+ Reply to Thread
Results 1 to 6 of 6

Sort Functions are Disabled When Sheet is Protected, and more Issue When Sheet is Shared

  1. #1
    Registered User
    Join Date
    01-11-2013
    Location
    dammam
    MS-Off Ver
    Excel 2013
    Posts
    31

    Talking Sort Functions are Disabled When Sheet is Protected, and more Issue When Sheet is Shared

    I'm almost done with a really critical excel sheet that would be shared with different users to update frequently. I'm using some VBA which I believe trigger the problems.

    Two issues I'm facing now:

    1) Once the sheet is in protection mode, the sort functions within the sheet are automatically disabled even that I do enable them during protecting process. I have not sound a solution for this.

    2) when the excel sheet is shared, and the user do anything with Macro functions, this error massage appears and the functions are not working anymore.

    run time error 1004 - unprotect method of worksheet class failed

    See attached sheet
    Vendor RegistrationTracking.xlsm


    VBA Code:

    Please Login or Register  to view this content.
    Please help!

  2. #2
    Forum Contributor
    Join Date
    01-17-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Sort Functions are Disabled When Sheet is Protected, and more Issue When Sheet is Shar

    Well your are clearly familiar with VB , something often not rememberd is using "UserInterFaceOnly:=True" this way its protected against users but allows macro's to change cells.

    just an example on how to use it
    Please Login or Register  to view this content.
    End Sub
    If solved remember to mark Thread as solved , to mark your thread as Solved select Thread Tools and click Mark thread as Solved.

    I can't read the mind of my wife so then I get picture but no sound .... and then I mostly get the idea, same goes here picture your outcome and I get the idea.

  3. #3
    Registered User
    Join Date
    01-11-2013
    Location
    dammam
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Sort Functions are Disabled When Sheet is Protected, and more Issue When Sheet is Shar

    Quote Originally Posted by hulpeloos View Post
    Well your are clearly familiar with VB , something often not remembered is using "UserInterFaceOnly:=True" this way its protected against users but allows macro's to change cells.

    just an example on how to use it
    Please Login or Register  to view this content.
    End Sub
    Unfortunately I'm not THAT familiar, all these codes are copied from other posts and slightly modified.

    I tried to add your code in my worksheet but it did not work. I did not do any modifications expect for the password and it did not help.

    can you tell me more about it and what i should expect if it worked? would I be able to share it without issues or would I be able to use the sort function?

  4. #4
    Forum Contributor
    Join Date
    01-17-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Sort Functions are Disabled When Sheet is Protected, and more Issue When Sheet is Shar

    Ali....first tip is to check your properties before uploading a file.

    attached is your file with an extra sheet having a button
    this button has now protected your file with the password , details are in module4
    let me know if your file is functioning as wanted when being protected.

  5. #5
    Forum Contributor
    Join Date
    01-17-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Sort Functions are Disabled When Sheet is Protected, and more Issue When Sheet is Shar

    Please Login or Register  to view this content.
    has been removed from your code because we protected the sheets with the condition to allow macro's to execute changes even if sheet is protected.

  6. #6
    Registered User
    Join Date
    01-11-2013
    Location
    dammam
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Sort Functions are Disabled When Sheet is Protected, and more Issue When Sheet is Shar

    Quote Originally Posted by hulpeloos View Post
    Ali....first tip is to check your properties before uploading a file.

    attached is your file with an extra sheet having a button
    this button has now protected your file with the password , details are in module4
    let me know if your file is functioning as wanted when being protected.
    Yes it does!. I'll study your code to better understand the changes.

    Thank you Hulpeloos

+ 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: 0
    Last Post: 01-02-2013, 09:51 AM
  2. Replies: 0
    Last Post: 10-21-2012, 05:43 PM
  3. Unprotecting sheet w/ workbook shared & Protected
    By ChemistB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2006, 01:06 PM
  4. Hand Cursor / Disabled Mouse When Sheet is Protected
    By EanW in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2006, 12:30 AM
  5. EnableOutlining with shared workbook protected sheet?
    By David in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-08-2005, 11:05 AM

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