Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Execute contents of object from another object

Posted on 2000-03-08
2
Medium Priority
?
136 Views
Last Modified: 2010-05-02
How can I execute the code of an object from another object?
ex. command2_click()
    text1.text = "this is a test"

how can I execute the command2 object from command1?

0
Comment
Question by:jclarkmcse
2 Comments
 
LVL 2

Accepted Solution

by:
Glen Richmond earned 200 total points
ID: 2597909
change the sub for the command_click from private to public

ie
private sub command2_click()

to

public sub command2_click()

now you should be able to call it ie

private sub command1_click()
        'doyour code..
        command2_click
end sub

give it a go as ive never tried this one myself..

good luck
0
 

Author Comment

by:jclarkmcse
ID: 2598521
Works great, thanks!
0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question