I'm trying to activate a certain sheet in my workbook but I still get the same
error 9 "Subscript out of range"
when trying to run it from the userform. When I use Debug fuction, it says that "materialWorksheet = Nothing"
Private Sub UserForm_Initialize()
' Activate excel sheet to store/extract data
Set objWorkbook = Excel.workbooks("Aircraft_Final_Master_Design_Table_LITE")
Set materialWorksheet = objWorkbook.Worksheets.item("Materials")
materialWorksheet.Activate
What I am trying to get as a result is to be able to acquire the values from that Materials sheet and use it for my userform.