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?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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.
 
Upvote 0

Forum statistics

Threads
1,213,554
Messages
6,114,280
Members
448,562
Latest member
Flashbond

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top