Quantcast
Channel: Baanboard.com
Viewing all articles
Browse latest Browse all 4216

Open Baan4 through VBA

$
0
0
Hi team,

Can anyone please help me to solve the below query.

I would like to open Baan4 application using its class name (Refer Attachment) through VBA, but every time I get "ActiveX component can't create object" error message.

Code:
Sub OpenBaan()
Dim Baanobj As Object

Set Baanobj = CreateObject("Baan4.Application.AS1Live")
Set Baanobj = Nothing
End Sub

I went through some codes and finally found to open Baan software by using below code, but I am not able to proceed further to access the next session(ttdsk2003m000),

Code:

Sub Auto_Open()
Dim x As Variant
Dim Path As String

Path = "C:\Program Files\Baan\Baan IV\bin\bw.exe"

x = Shell(Path, vbNormalFocus)
End Sub

Please advise on how to solve this, thanks.

Regards,
Kevin :)

Attached Images
File Type: png Class Name.PNG (29.2 KB)

Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>