|
-
Apr 7th, 2006, 03:23 PM
#5
Re: Passing document argument to form load sub
 Originally Posted by em07189
HI,AI42, i did not understand your reply.
ok i have the following sub in a class module
and when i call the form1 in the class module, i want to acess the DocumentObject argument of the class module inside of the form load sub?
You can do it the way em07189 showed you or you can make the value available in a global variable the way I showed you, so any part of the program can access it. Depending on what you're doing, sometimes it's more efficient one way, sometimes the other. And sometimes it doesn't matter.
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
|