Does Workbook Sheet Selection Change event slow down your workbook?

Vathana

New Member
Joined
Jun 5, 2020
Messages
13
Office Version
  1. 2019
Platform
  1. Windows
Good day everyone.

All the sheets on my workbook are protected, but every one of them has several cells that have to be unlocked to allow users' inputs. However, if they cut and paste one of the cells, they will mess up the formula and named range references.

To prevent the user to cut and paste any cell, I use the codes:

VBA Code:
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)

    If Application.CutCopyMode = xlCut Then
        MsgBox "Do not cut the cell. Copy, paste and then delete instead if needed.", vbOKOnly + vbInformation, "Cut Disabled"
        Application.CutCopyMode = False
    End If

End Sub

So will this affect my workbook performance as it runs the sub every time a selection change is made? And it happens on any sheet too because I use the Workbook Sheet Selection Change Event to cover all of the sheets. I feel like it might affect my workbook performance in some way to have an event run for something as simple as selecting another cell?
 

Some videos you may like

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

mikerickson

MrExcel MVP
Joined
Jan 15, 2007
Messages
23,838
What do you think?
What I mean is, of course it will slow things down. Maybe only by mico seconds, probably more, but some slow down.
But the real question is will you and your users be bothered by the slow down. You and your users are the only folks who can say what bothers you or not.
 

Watch MrExcel Video

Forum statistics

Threads
1,118,184
Messages
5,570,739
Members
412,338
Latest member
ebf6543
Top