I have a macro that i recorded to change a cell in a BOM, but whenever I run the macro it gets hung up on myTable.Text(1, 1) = "test" and giving me an error that says object variable or with block variable not set. Does anyone know why it is getting hung up here, and how to fix it.
Thanks
Sub main()
Set swApp = _
Application.SldWorks
Set Part = swApp.ActiveDoc
boolstatus = Part.Extension.SelectByID2("DetailItem411@Sheet1", "ANNOTATIONTABLES", 0.2488221919431, 0.2609211990521, 0, False, 0, Nothing, 0)
Part.ClearSelection2 True
Dim myTable As Object
Set myTable = Part.SelectionManager.GetSelectedObject5(1)
myTable.Text(1, 1) = "test"
End Sub