Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 30th, 2003, 08:24 AM
Authorized User
 
Join Date: Jun 2003
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?
 
Old July 11th, 2003, 07:47 AM
Authorized User
 
Join Date: Jun 2003
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.