Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 30th, 2003, 08:24 AM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 54
Thanks: 1
Thanked 0 Times in 0 Posts
Default Overloading Initialize_Class

I have an app with a class module. When I initialize the class
I want to get information from a Worksheet, the name of which is defined elsewhere. How do I pass the Worksheet name to the Class Initialize method? Can the Initialize_Class Sub be overloaded?
Reply With Quote
  #2 (permalink)  
Old July 11th, 2003, 07:47 AM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

not sure if that's possible on initialize?
have you tried using a property name?
myClass.myWKS = workbookname

or instead of trying to do this at initialisation, have a wookbook prop_name
and then call a method in your class which calls the prop_name.

I don't think you can do overloading in VBA (just started vb.net and the book says
overloading is new to vb)

HTH
alun
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Overloading nayeem69 .NET Framework 2.0 1 July 17th, 2007 12:30 AM
Overloading Overriding arv1980 VS.NET 2002/2003 2 January 22nd, 2006 12:55 AM
Polymorphism->overloading? naveen J2EE 2 October 19th, 2005 02:34 AM
Operator Overloading In Inheritance ahmedsalam C# 0 October 18th, 2005 11:25 AM
enum toString() overloading kramis8 C# 0 November 21st, 2004 07:55 PM



All times are GMT -4. The time now is 06:26 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.