function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BobJCampBobJCamp 

Excel Connector Error - Compile error in hidden module: CSession.

Hello,

 

Installed the Excel Connector.  Worked for the first day.  Next day, I open Excel and recieve this message:

 

Compile Error in hidden module: AutoExec

 

I clicked OK and the message cleared out.  But when I try to launch the Connector:

 

Compile error in hidden module:  CSession.

 

Thanks

 

 

eyewelleyewell

Can you confirm that you installed the .xla file for the connector into the right XLStart directory?

Sometimes people just doubleclick on the .xla file that is part of the zip file, and it runs fine the first time, but then doesn't run well next time.

Also, upgrade to the latest Connect for Outlook and Connect for office. I think the sforce connector relies on some of the libraries built into those apps.

 

ForstaForsta

Follow the directions in this page - http://prasanth4microsoft.blogspot.com/2010/11/windows7-excel-vba-ora-01019-unable-to.html. I had the compile error, followed the directions and I got the Connector back.

 

Hope this helps.

PFangPFang

Hi,

 

This was what worked for me, which would be merely in addition to what was posted above.

 

I. Follow the steps from this site:

 

http://prasanth4microsoft.blogspot.com/2010/11/windows7-excel-vba-ora-01019-unable-to.
html

 

1) Change User Settings
Navigate to : Control Panel > User Accounts > User Accounts > "Change User Account
Control settings"
Set the value as "Never Notify".
Click on Ok button.

 

2) Grant "Create global objects"
Navigate to : Start > Run > gpedit.msc
In Local Group Policy window, Navigate to : Computer Configuration\Windows
Settings\Security Settings\Local Policies\User Rights Assignment"
Select "Create global objects", right click and navigate to properties windows
Click on "Add User or Group" button and add users to this group


3) Delete existing XSD files

In Windows XP:
CD \Document And Settings
DEL /S /A:H /A:-H *.EXD
In Windows 7 or Vista:
CD \Users
DEL /S /A:H /A:-H *.EXD

 

NOTE: Make sure that there's a confirmation that the files were deleted before going to step 4 as you might be required to close certain applications.


4) Reboot machine

 

II. If you continue to get the same error, then try these:


1.) Open Excel File
2.) Hit Alt+F11 (This will take you to the VisualBasic Editor)
3.) Click on View
4.) Click on View Objects
5.) Search for "ThisWorkbook"
6.) Right click on ThisWorkbook
7.) Choose References
8.) Tick on Sforce Connector and Office Toolkit 4, depending on the version that you're using

9.) Go back to your workbook by hitting Alt+F11 again

PFangPFang

Here's an adjunct to my previous post and also for those who struggled with getting the Professional Edition of the Connector to work:

 

1.) Download Office Toolkit 4
http://code.google.com/p/excel-connector/downloads/detail?name=SForce_Office_Toolkit_MSI.zip&can=2&q=

 

2.) Download Office Toolkit 3
Office Toolkit 3 download
http://sforce.sourceforge.net/excel/install.htm

 

3.) I've tried all sorts of PE Connector versions and the only one that worked for me was this:

http://sourceforge.net/projects/sforce/files/excel_plugin/sforce_connect_6_16pe/sforce_connect_616pe.zip/download - SForce Connector version 6

 

4.) Don't worry about the version number as you will be presented the option to change the server URL for updated API access

Change Server URL to - https://www.salesforce.com/services/Soap/c/20

 

5.) You may also want to make sure that you have this installed.

MSDN Framework 1.1 - http://msdn.microsoft.com/en-us/netframework/aa569264.aspx