Connecting to Creo
Hi, I've been trying to connect to creo using Microsoft Visual Basic for Applications in Excel and it didn't work whatever I've tried.
Let's start from my setup:
Those are system variables that I'm using.

I've registered vb_api using vb_api_register.bat in administrator mode
I've added Creo VB Api......... to References

I'm not trying to open creo using api. I only want to connect to it using
Sub Connect()
Dim asynconn As New pfcls.CCpfcAsyncConnection
Dim conn As pfcls.IpfcAsyncConnection
Dim session As pfcls.IpfcBaseSession
Dim mdlname
Set conn = asynconn.Connect("", "", ".", 5)
End Sub
But no matter what i'm getting errors like this



If creo isn't running i'm getting error like this

Please suggest to me something so i can fix this



