<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Open excel with SAP Credentials in Additional Q&amp;A</title>
    <link>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226507#M120012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. Still the excel does not prompt me for a user ID password when I open the excel workbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Public rfcLogon As SAPLogonCtrl.SAPLogonControl&lt;BR /&gt;Public rfcConnection As SAPLogonCtrl.Connection&lt;/P&gt;&lt;P&gt;Function CheckUser() As Boolean&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim res As Boolean&lt;/P&gt;&lt;P&gt;&amp;nbsp; res = False&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set rfcLogon = CreateObject("SAP.Logoncontrol.1")&lt;BR /&gt;&amp;nbsp; Set rfcConnection = rfcLogon.NewConnection&lt;/P&gt;&lt;P&gt;&amp;nbsp; rfcConnection.ApplicationServer = "aaaa"&lt;BR /&gt;&amp;nbsp; rfcConnection.System = "aaa"&lt;BR /&gt;&amp;nbsp; rfcConnection.SystemNumber = "00"&lt;BR /&gt;&amp;nbsp; rfcConnection.User = InputBox("SAP USER:")&lt;BR /&gt;&amp;nbsp; rfcConnection.Password = InputBox("SAP PASSWORD:")&lt;BR /&gt;&amp;nbsp; rfcConnection.Client = "000"&lt;BR /&gt;&amp;nbsp; rfcConnection.Language = "EN"&lt;/P&gt;&lt;P&gt;&amp;nbsp; setRfcConnection = rfcConnection.Logon(0, True)&lt;BR /&gt;&amp;nbsp; If setRfcConnection Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; res = True&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rfcConnection.Logoff&lt;BR /&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set rfcLogon = Nothing&lt;BR /&gt;&amp;nbsp; Set rfcConnection = Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp; CheckUser = res&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sub Test()&lt;BR /&gt;&amp;nbsp; If CheckUser Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Ok"&lt;BR /&gt;&amp;nbsp; Else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Nok"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Excel.ActiveWorkbook.Close&lt;BR /&gt;&amp;nbsp; End If&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Private Sub Workbook_Open()&lt;BR /&gt;&amp;nbsp; Test&lt;BR /&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2014 13:04:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-04-15T13:04:27Z</dc:date>
    <item>
      <title>Open excel with SAP Credentials</title>
      <link>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaq-p/10226498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am working on an excel application that will enable changes in SAP PI/XI. When the user opens the excel file, the file will prompt for a SAP UserID and Password. The user will typein their SAP User ID and Password and these credentials should be validated against sap (maybe using SAP Logon Control???). If ok the excel file will open else it will says invalid user id pass. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this is doable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 20:52:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaq-p/10226498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-11T20:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAP Credentials</title>
      <link>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226499#M120004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Any suggestions please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 13:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226499#M120004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-14T13:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAP Credentials</title>
      <link>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226500#M120005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vicky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Public rfcLogon As SAPLogonCtrl.SAPLogonControl
Public rfcConnection As SAPLogonCtrl.Connection

Function CheckUser() As Boolean

&amp;nbsp; Dim res As Boolean

&amp;nbsp; res = False

&amp;nbsp; Set rfcLogon = CreateObject("SAP.Logoncontrol.1")
&amp;nbsp; Set rfcConnection = rfcLogon.NewConnection

&amp;nbsp; rfcConnection.ApplicationServer = "NSP"
&amp;nbsp; rfcConnection.System = "NSP"
&amp;nbsp; rfcConnection.SystemNumber = 1
&amp;nbsp; rfcConnection.User = InputBox("Benutzer:")
&amp;nbsp; rfcConnection.Password = InputBox("Passwort:")
&amp;nbsp; rfcConnection.Client = "001"
&amp;nbsp; rfcConnection.Language = "EN"

&amp;nbsp; setRfcConnection = rfcConnection.Logon(0, True)
&amp;nbsp; If setRfcConnection Then
&amp;nbsp;&amp;nbsp;&amp;nbsp; res = True
&amp;nbsp;&amp;nbsp;&amp;nbsp; rfcConnection.Logoff
&amp;nbsp; End If

&amp;nbsp; Set rfcLogon = Nothing
&amp;nbsp; Set rfcConnection = Nothing

&amp;nbsp; CheckUser = res

End Function

Sub Test()
&amp;nbsp; If CheckUser Then
&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Okay"
&amp;nbsp; End If
End Sub&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 14:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226500#M120005</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2014-04-14T14:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAP Credentials</title>
      <link>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226501#M120006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copy pasted the code in the excel vba editor...saved and closed it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon reopening it did not prompt for any user id and password.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 17:31:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226501#M120006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-14T17:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAP Credentials</title>
      <link>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226502#M120007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helllo Vicky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start the sub Test with the debugger of VBA. But before add the reference to wdtlog.ocx in your VBA project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 18:48:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226502#M120007</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2014-04-14T18:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAP Credentials</title>
      <link>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226503#M120008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do see&amp;nbsp; wdtlogU.ocx but not wdtlog.ocx in my list of SAP gui files&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 20:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226503#M120008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-14T20:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAP Credentials</title>
      <link>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226504#M120009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vicky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wdtlog.ocx is on Windows 64 bit in the directory Program Files (x86)\Common Files\SAP Shared and on Windows 32 bit in the directory Program Files\Common Files\SAP Shared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 04:50:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226504#M120009</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2014-04-15T04:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAP Credentials</title>
      <link>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226505#M120010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now though the program is working fine in debug mode, how do we ensure that this function is called when the user opens this excel workbook each time. If the user passes this SAP logon test only then the file should open else it should give a promt invalid sap credentials and close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 10:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226505#M120010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-15T10:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAP Credentials</title>
      <link>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226506#M120011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vicky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Sub Test()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; If CheckUser Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Ok"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; Else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Nok"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Excel.ActiveWorkbook.Close&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Private Sub Workbook_Open()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; Test&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The event Workbook_Open calls the sub Test, at the moment if Excel opens the workbook, and if CheckUser is not okay, it closes the active Excel workbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 11:19:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226506#M120011</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2014-04-15T11:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAP Credentials</title>
      <link>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226507#M120012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. Still the excel does not prompt me for a user ID password when I open the excel workbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Public rfcLogon As SAPLogonCtrl.SAPLogonControl&lt;BR /&gt;Public rfcConnection As SAPLogonCtrl.Connection&lt;/P&gt;&lt;P&gt;Function CheckUser() As Boolean&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim res As Boolean&lt;/P&gt;&lt;P&gt;&amp;nbsp; res = False&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set rfcLogon = CreateObject("SAP.Logoncontrol.1")&lt;BR /&gt;&amp;nbsp; Set rfcConnection = rfcLogon.NewConnection&lt;/P&gt;&lt;P&gt;&amp;nbsp; rfcConnection.ApplicationServer = "aaaa"&lt;BR /&gt;&amp;nbsp; rfcConnection.System = "aaa"&lt;BR /&gt;&amp;nbsp; rfcConnection.SystemNumber = "00"&lt;BR /&gt;&amp;nbsp; rfcConnection.User = InputBox("SAP USER:")&lt;BR /&gt;&amp;nbsp; rfcConnection.Password = InputBox("SAP PASSWORD:")&lt;BR /&gt;&amp;nbsp; rfcConnection.Client = "000"&lt;BR /&gt;&amp;nbsp; rfcConnection.Language = "EN"&lt;/P&gt;&lt;P&gt;&amp;nbsp; setRfcConnection = rfcConnection.Logon(0, True)&lt;BR /&gt;&amp;nbsp; If setRfcConnection Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; res = True&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rfcConnection.Logoff&lt;BR /&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set rfcLogon = Nothing&lt;BR /&gt;&amp;nbsp; Set rfcConnection = Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp; CheckUser = res&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sub Test()&lt;BR /&gt;&amp;nbsp; If CheckUser Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Ok"&lt;BR /&gt;&amp;nbsp; Else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Nok"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Excel.ActiveWorkbook.Close&lt;BR /&gt;&amp;nbsp; End If&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Private Sub Workbook_Open()&lt;BR /&gt;&amp;nbsp; Test&lt;BR /&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 13:04:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226507#M120012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-15T13:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAP Credentials</title>
      <link>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226508#M120013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its' working now. I had made a small error on my end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one question though...once the user is validated does it logoff the user immediately or only when the excel is closed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also is there a way that the password when typed in the input box shows as all "*" instead of plain text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 15:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226508#M120013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-15T15:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAP Credentials</title>
      <link>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226509#M120014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vicky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the logoff is immediately inside the function &lt;SPAN style="font-family: 'courier new', courier;"&gt;CheckUser&lt;/SPAN&gt;. If you need the connection for a longer time, put the &lt;SPAN style="font-family: 'courier new', courier;"&gt;Logoff&lt;/SPAN&gt; method in an own sub routine. The &lt;SPAN style="font-family: 'courier new', courier;"&gt;rfcConnection&lt;/SPAN&gt; variable is declared global.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.mrexcel.com/forum/excel-questions/309354-password-chars-inputbox.html"&gt;Here&lt;/A&gt; is a solution how to mask your password input via Windows API with VBA. Also you can use your own user form or change the line&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;setRfcConnection = rfcConnection.Logon(0, True)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;setRfcConnection = rfcConnection.Logon(0, False)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;to disable the silent mode and use the own SAP form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 04:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226509#M120014</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2014-04-16T04:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAP Credentials</title>
      <link>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226510#M120015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function CheckUser() As Boolean&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim res As Boolean&lt;/P&gt;&lt;P&gt;&amp;nbsp; res = False&lt;BR /&gt;&amp;nbsp; Set rfcLogon = CreateObject("SAP.Logoncontrol.1")&lt;BR /&gt;&amp;nbsp; Set rfcConnection = rfcLogon.NewConnection&lt;/P&gt;&lt;P&gt;&amp;nbsp; rfcConnection.ApplicationServer = "abc"&lt;BR /&gt;&amp;nbsp; rfcConnection.System = "abc"&lt;BR /&gt;&amp;nbsp; rfcConnection.SystemNumber = "00"&lt;BR /&gt;&amp;nbsp; rfcConnection.Client = "000"&lt;BR /&gt;&amp;nbsp; rfcConnection.Language = "EN"&lt;BR /&gt;&amp;nbsp; setRfcConnection = rfcConnection.Logon(0, False)&lt;BR /&gt;&amp;nbsp; sPassword = rfcConnection.Password&lt;BR /&gt;&amp;nbsp; MsgBox ("Found " &amp;amp; sPassword &amp;amp; " Pass")&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; If setRfcConnection Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; res = True&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rfcConnection.Logoff&lt;BR /&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set rfcLogon = Nothing&lt;BR /&gt;&amp;nbsp; Set rfcConnection = Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp; CheckUser = res&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to read the value of rfcConnection.Password once it is typed in the SAP user form. However it comes back as garbled value instead of string value.&lt;/P&gt;&lt;P&gt;How can I read the value as string, cause I need to pass this value to some other function in the vba code. pls advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 14:37:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226510#M120015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-21T14:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAP Credentials</title>
      <link>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226511#M120016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am closing this thread and starting a new thread. &lt;A _jive_internal="true" href="https://answers.sap.com/thread/3541763"&gt;http://scn.sap.com/thread/3541763&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 13:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/open-excel-with-sap-credentials/qaa-p/10226511#M120016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-22T13:21:25Z</dc:date>
    </item>
  </channel>
</rss>

