Class Modules

A

Aidy

I've got some code in a class module "Class 1". I got a public sub
called
"HostExample". I want to be able to run that code from a module. Or
just be able to run that code. Can anyone help, please?

Aidy
 
J

Jonathan West

Hi Aidy

Try this

Dim myClass as Class1
Set myClass = New Class1

myClass.DoThis
myClass.DoThat

etc...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top