Results 1 to 12 of 12

VBA Code to Zoom Data Validation Drop Down Menu Won't Work in Protected Sheet

Threaded View

EFD VBA Code to Zoom Data... 10-25-2017, 09:46 AM
kev_ Re: VBA Code to Zoom Data... 10-25-2017, 10:06 AM
EFD Re: VBA Code to Zoom Data... 10-25-2017, 10:27 AM
kev_ Re: VBA Code to Zoom Data... 10-25-2017, 10:42 AM
EFD Re: VBA Code to Zoom Data... 10-25-2017, 10:49 AM
kev_ Re: VBA Code to Zoom Data... 10-25-2017, 11:01 AM
EFD Re: VBA Code to Zoom Data... 10-25-2017, 11:54 AM
EFD Re: VBA Code to Zoom Data... 10-25-2017, 11:52 AM
kev_ Re: VBA Code to Zoom Data... 10-25-2017, 12:20 PM
EFD Re: VBA Code to Zoom Data... 10-25-2017, 12:34 PM
kev_ Re: VBA Code to Zoom Data... 10-25-2017, 01:43 PM
kev_ Re: VBA Code to Zoom Data... 10-25-2017, 05:00 PM
  1. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: VBA Code to Zoom Data Validation Drop Down Menu Won't Work in Protected Sheet

    Try
    UnProtect immediately below
    If Intersect.....
    Protect immediately above
    Exit Sub

    It would be easier to read your code if you indent things - then can work out what belongs together...like this ...
    With Sheet(X)
       If a = b Then
          Do something
       Else
          Do something
       End If
    End With
    I usually include a line at the beginning of most of my selection change event macros
    If Selection.CountLarge > 1 Then Exit Sub
    This can prevent problems if you select a large number of cells
    Last edited by kev_; 10-25-2017 at 10:52 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 04-19-2017, 03:51 PM
  2. Replies: 4
    Last Post: 10-28-2015, 12:59 PM
  3. How to run code automatically every time a drop-down validation menu changes
    By elgatnegre in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2014, 04:45 PM
  4. ComboBox/Data Validation won't work when sheet is protected.
    By Butler82Paul in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-12-2013, 11:38 AM
  5. Replies: 6
    Last Post: 07-02-2013, 05:23 AM
  6. Replies: 1
    Last Post: 05-15-2013, 01:55 PM
  7. Replies: 0
    Last Post: 06-28-2012, 01:08 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