Hmm, I tried again and it works for me. Are you on
Inventor 2009? Perhaps you have an incorrect filepath to your
spreadsheet?
Also, if you intend to change the source of the
spreadsheet linked via the Parameters dialog, there is another way:
Sub ChangeExcelSource()
Dim oDoc As
PartDocument
Set oDoc =
ThisApplication.ActiveDocument
Dim
oDef As PartComponentDefinition
Set oDef =
oDoc.ComponentDefinition
Dim oTable
As ParameterTable
Set oTable =
oDef.Parameters.ParameterTables(1)
oTable.FileName = "C:\temp\test_copy.xls"
End
Sub
Sanjay-