• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 138
  • Last Modified:

Execute contents of object from another object

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?

1 Solution
Glen RichmondCustomer Reporting Programmer.Commented:
change the sub for the command_click from private to public

private sub command2_click()


public sub command2_click()

now you should be able to call it ie

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

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

good luck
jclarkmcseAuthor Commented:
Works great, thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now