I get SAP Logon connection not found error 1000 when i run this into excel. any help?
Set SAPGUIApp = CreateObject("Sapgui.ScriptingCtrl.1") Set SapGuiConn = SAPGUIApp.OpenConnection(".vcm global production", True) Set Session = SapGuiConn.Children(0) Session.TestToolMode = 1 'added part to deal with sap status (open/close) Set log_opt = Session.FindById("wnd[1]/usr/radMULTI_LOGON_OPT2", False) If Not log_opt Is Nothing Then log_opt.Select Session.FindById("wnd[1]/tbar[0]/btn[0]").Press End If