|
-
Nov 10th, 2007, 02:00 PM
#1
Thread Starter
New Member
Global variables in Excel VBA
Hi,
I am trying to create an instance of a user defined class within a worksheet (Excel VBA) such that I can use the class variables as a cache for a large amout of data.
I have tried:
Public myClass as CMyClass
--------------------------
Public Sub load()
Set myClass = new CMyClass
End sub
public sub load()
myClass.callLoaderFunction()
end sub
But i get a "type mismatch - error 13" when I try and call the load() function.
Any ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|