Hello all,
I'm trying to create a macro which run a sub macro in all drawings I have in a specific folder, opening all drawings I have, running the submacro and closing them with the following code:
For Each MyFile In MyFiles
If MyFile.Type = "CATIA Drawing" Then
MyFile.Open 'ERROR
Call SubMacro
MyFile.Close
End If
Next 'Myfile
I'm sure that the code to open a file isn't "MyFile.Open"
Some ideas?
Thanks
I'm trying to create a macro which run a sub macro in all drawings I have in a specific folder, opening all drawings I have, running the submacro and closing them with the following code:
For Each MyFile In MyFiles
If MyFile.Type = "CATIA Drawing" Then
MyFile.Open 'ERROR
Call SubMacro
MyFile.Close
End If
Next 'Myfile
I'm sure that the code to open a file isn't "MyFile.Open"
Some ideas?
Thanks