Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using Class, WithEvents and auto-instanciating

Hello Chip.

Nice to hear from you again after a looong time :-)

In your unsuccessful code, are you ever creating an

instance of Class1?
YES and only once for this.

Private Sub Workbook_Open()
Set App = New Class1
Set App.my_app = Application
End Sub

Yes this does the trick and I am shameful of not thinking
properly... Oh Friday lunchtime (Sydney time)... Go for a
pint of beer!

Thanks again. See ya around
---
Tetsuya
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
VBA Class or Training Nikki Excel Discussion (Misc queries) 2 January 2nd 09 08:15 PM
how do I set up a workbook for a class Des New Users to Excel 2 May 9th 05 05:58 PM
Can't dynamically add withevents OptionButton to worksheet onedaywhen Excel Programming 6 August 27th 03 09:11 AM
Class Modules Siphuncle Excel Programming 2 August 12th 03 06:37 PM
form class jim c Excel Programming 1 July 30th 03 07:25 AM


All times are GMT +1. The time now is 10:09 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"