Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Different Behaviour of Public Object Vars in Worksheets vs. Add-In

Excel 2000

In A workbook I declared a an object variable of type ADODB.Connection in
the declarations part of a module as follows:

Public pspDB as ADODB.Connection

All functions and procedures using this variable work fine as long as the
workbook is saved as .xls.

However if I save it as Add-In (.xla) the variable seems not to be
recognized as such. It's value seems to be an empty string (""). Before
Initializing the variable I expect 'Nothing' as value.

Can anybody give me a hint what I missunderstand here? Many, many thanks,
Etienne
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i assign the ActiveWorkbook.Worksheets to a worksheets object? TS Excel Worksheet Functions 2 December 27th 06 02:49 PM
functions & range vars [email protected] Excel Programming 2 July 15th 05 07:26 PM
Worksheet wide vars DoctorG Excel Programming 10 July 1st 05 04:26 PM
= How to setup vars when a workbookopen event is launched? hcova[_2_] Excel Programming 1 October 21st 04 07:20 PM
Global vars Nath Excel Programming 1 July 13th 04 04:20 PM


All times are GMT +1. The time now is 12:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"