Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default Class modules Custom initialization Line

I want to pass a variable into a custom class upon Initialization, so the
initialization header would look like this:

Private Sub Class_Initialize(rcdEVM as ADODB.Recordset)

But it seems I cannot do this as I need a custom event handler. The MSDN was
a bit cryptic on how this was done, so does anyone have experience in this
matter that can help?

Thank you!

--
*********************
J Streger
MS Office Master 2000 ed.
MS Project White Belt 2003

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Class modules Custom initialization Line

VB/VBA does not support such constructors.
Youi will need to write some property/method in the class which performs
this function, then call it.

NickHK

"J Streger" wrote in message
...
I want to pass a variable into a custom class upon Initialization, so the
initialization header would look like this:

Private Sub Class_Initialize(rcdEVM as ADODB.Recordset)

But it seems I cannot do this as I need a custom event handler. The MSDN

was
a bit cryptic on how this was done, so does anyone have experience in this
matter that can help?

Thank you!

--
*********************
J Streger
MS Office Master 2000 ed.
MS Project White Belt 2003



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
Class modules: parametrize class object fields Jean-Pierre Bidon Excel Programming 11 August 31st 06 02:49 PM
Class Modules MattShoreson[_70_] Excel Programming 5 March 22nd 06 10:34 AM
Basic question - modules and class modules - what's the difference? Mark Stephens[_3_] Excel Programming 9 May 8th 05 11:48 AM
Class Modules Pavlos Excel Programming 5 January 19th 05 05:31 PM
Class Modules vs Modules Jeff Marshall Excel Programming 2 September 28th 03 07:57 PM


All times are GMT +1. The time now is 12:37 PM.

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

About Us

"It's about Microsoft Excel"