Sub ZZcodechanger10()
'this code changes the property name to match the sheetname, and can have positive effects.
Sub ZZcodechanger10()
Dim varItem As Variant
For Each varItem In ActiveWorkbook.VBProject.VBComponents
'Type 100 is a worksheet
If varItem.Type = 100 And varItem.Name <> "ActiveWorkbook" Then
varItem.Name = varItem.Properties("Name").Value
End If
Next
End Sub
The following line is where the issue is
varItem.Name = varItem.Properties("Name").Value
It was working for a long time, and I am out of ideas,> perhaps someone knows something.
'this code changes the property name to match the sheetname, and can have positive effects.
VBA Code:
Dim varItem As Variant
For Each varItem In ActiveWorkbook.VBProject.VBComponents
'Type 100 is a worksheet
If varItem.Type = 100 And varItem.Name <> "ActiveWorkbook" Then
varItem.Name = varItem.Properties("Name").Value
End If
Next
End Sub
VBA Code:
The following line is where the issue is
VBA Code:
VBA Code:
It was working for a long time, and I am out of ideas,> perhaps someone knows something.