dpaton05
Well-known Member
- Joined
- Aug 14, 2018
- Messages
- 2,375
- Office Version
- 365
- 2016
- Platform
- Windows
Whenever I open my spreadsheet I get a error, Sub or function not defined. This code is highlighted
The code just has to put a "1" in a column of a table as the formula in the total column relies on it. What do I have to define in this code to get it to work?
Code:
Sub workbook_open()
ActiveSheet.Unprotect Password:="services"
ListObjects("Services").ListColumns("10%Increase").DataBodyRange.Value = "1"
ActiveSheet.Protect Password:="services"
End Sub
The code just has to put a "1" in a column of a table as the formula in the total column relies on it. What do I have to define in this code to get it to work?