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.
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.
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
VBA NoobPlease Login or Register to view this content.
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 !!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks