Hello,
I'm programming two macro. One on CATIA and the other on Excel. What I want is that the Excel macro call the CATIA macro but currently I don't how to do that, the only think I'm doing is to open CATIA and my CATPart from Excel.
This is my code in Excel macro :
It's the yellow ligne who give me problem.
If you have any idees thanks.
I'm programming two macro. One on CATIA and the other on Excel. What I want is that the Excel macro call the CATIA macro but currently I don't how to do that, the only think I'm doing is to open CATIA and my CATPart from Excel.
This is my code in Excel macro :
Code:
Sub CATIA_liaison()
Dim CATIA As Object
On Error Resume Next
Set CATIA = GetObject(, "CATIA.Application")
If Err.Number <> 0 Then
MsgBox ("Veuillez lancer CATIA.")
End If
On Error GoTo 0
CATIA.Documents.Open (nom_fichier)
CATIA.Visible = True
[highlight #C4A000]Call CATIA.Module_Excel.recup_donnee[/highlight]
End Sub
If you have any idees thanks.