?
Solved

Execute contents of object from another object

Posted on 2000-03-08
2
Medium Priority
?
135 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

719 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