Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Auto logon with VBA Coding

Hello all,

our targe is to logon via VBA after opening a workbook (by using a tasker).

Therefor I used this VBA code:

Sub Workbook_open()

Iret = Application.Run("SAPLogon", "DS_1", "100", "USERNAME", "PASSWORD")

End Sub

The problem is, that we have to enter the "OK-Button" manually.


But we don't want to press the OK Button --> The VBA code should do that for us.

Can you help me please?

Thank you.

Best

Steffen

Former Member
Not what you were looking for? View more on this topic or Ask a question