March 2, 2019

Prevent Worksheet Name Change

How to prevent worksheet name change automatically with VBA. When you send out the same workbook for data entry to multiple people then you may want to prevent the worksheet name change. This will help to consolidate data from different people into a master workbook. Watch the video below:

Here’s the complete VBA code to disallow change of name of a worksheet.

Private Sub Workbook_Open()
ActiveWorkbook.Protect Password:=”takyar”, Structure:=True
End Sub

Watch this video on YouTube.

One thought on “Prevent Worksheet Name Change

  1. what happened to all the old publications 10 to 15 years ago. You had a computer club on the internet. Keep up the good work. The older examples are sorely missed.

Comments are closed.