Solved

Execute contents of object from another object

Posted on 2000-03-08
2
130 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 50 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now