+ Reply to Thread
Results 1 to 10 of 10

Unprotected Workbook Issues

  1. #1
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Unprotected Workbook Issues

    Hello,

    When the workbook is protected these are working properly:

    Rename tabs (changing B4:I4 in Vehicle Information sheet changes the tab names)
    Putting "X" in column "O" of vehicle sheets by clicking on cells
    Clicking the large green shape on vehicle sheets does post the entries to the Service Log sheet and clears those entries from vehicle sheet
    Hyperlinks work on the Vehicle Information Sheet

    But when Unprotecting Workbook and I select all on any sheet it has error and closes program.

    The password is "password" or select the Unprotect or Protect on the Vehicle Information.

    If someone has a chance please can you see how to fix this issue and maybe check my codes for efficiency.

    Thank you very much for your help and maybe someone can benefit from this version when it's working properly.
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Unprotected Workbook Issues

    You probably get an overflow error, you need to error trap in-case too many cells are selected.

    Please Login or Register  to view this content.

  3. #3
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Unprotected Workbook Issues

    Thank you is there a way to correct it but keep all functions working?

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Unprotected Workbook Issues

    You need to use CountLarge there:

    Please Login or Register  to view this content.
    and I suggest you amend the SelectionChange code in the sheet to only check the used range:

    Please Login or Register  to view this content.
    Rory

  5. #5
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Perth Western Australia
    MS-Off Ver
    Office 365
    Posts
    257

    Re: Unprotected Workbook Issues

    Hi

    You have to change the Private Sub to coding sugested by Davesexcel #2

    to find it click Delveloper in ribbon and select visial Basic.
    You will see a window in the left pane Right click This Workbook/View code.
    Scroll down until you find :-

    Please Login or Register  to view this content.
    and make changes. I tested on Service Log tab with no problems.

    Cheers

  6. #6
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Unprotected Workbook Issues

    Thank you everyone for you help.

    I tried the suggestions and the best one without any errors so far is #4 rorya's suggestions.

    I really appreciate the help.

    Cheers!

  7. #7
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Unprotected Workbook Issues

    I did encounter an error on the hyperlinks to sheets:

    If Not Intersect(Selection, UsedRange) Is Nothing Then

    Please Login or Register  to view this content.

  8. #8
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Unprotected Workbook Issues

    OK, you need to test if the selection is on the same sheet:

    Please Login or Register  to view this content.

  9. #9
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Unprotected Workbook Issues

    Very good it works thank you so much!

  10. #10
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Unprotected Workbook Issues

    Glad to help. Thanks for the rep.

+ 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. [SOLVED] Make workbook copy unprotected
    By drgkt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-13-2017, 10:37 AM
  2. [SOLVED] prevent workbook close if there is an unprotected sheet
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2016, 10:07 PM
  3. Replies: 5
    Last Post: 07-10-2015, 04:20 PM
  4. Replies: 1
    Last Post: 09-26-2014, 09:21 AM
  5. Copying unprotected data from one sheet of workbook to another workbook
    By rushabh bhansali in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2013, 06:18 AM
  6. Time lock an entire workbook - even unprotected cells
    By AlexanderTheAverage in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2012, 01:57 PM
  7. [SOLVED] Clear contents of unprotected cells in entire workbook with a macr
    By FinnGirl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2005, 01:05 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