Reply
Visitor
GeorgeDeb4
Posts: 1
0

Office Login

I am new to this. I am trying to set up a connection from Excel to SFDC. When I copy the sample code into an Excel VBA routine, The "Login" line returns a False all the time. Shouldn't it return a "True" if it logs in? Module 1 Option Explicit Public g_sfApi Dim WithEvents g_sfApi As SForceOfficeToolkitLib4.SForceSession4 Public Function SampleLogin(UserName, Password) As Boolean Set g_sfApi = New SForceOfficeToolkitLib4.SForceSession4 SampleLogin = g_sfApi.Login(UserName, Password) ' SampleLogin always returns a False Value End Function I am able to see the SF functions in Object Browser. Using Excel 2010 x64, IE v 8 Thanks GeorgeDeb4