+ Reply to Thread
Results 1 to 2 of 2

Prevent user from selecting multiple sheets

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    Prevent user from selecting multiple sheets

    Can I prevent a user from selecting more than one sheet at a time? I want to prevent an event in which a user may accidently select two or more sheets by mistake and then enter data that would be applied to all sheets in error.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try this code which goes in ThisWorkbook

    http://www.contextures.com/xlvba01.html#Workbook

    If a user trys to change anything when two sheets are selected it will select the active sheet

    Please Login or Register  to view this content.
    VBA Noob
    Last edited by VBA Noob; 02-13-2008 at 06:42 PM.
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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