• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Call of Private SUB from Different module & Sheet.

Hi Team,

Hope you all are doing great ...

I have a cammand button to be Intiated i worksheet name "Cost" , which will show userform1 and abutton in userform to click.

I want a vba code to auto click the command in worksheet and let it populate the userform and also click on the button on user form.

plz respond quickly ...

Regards
Raghava
 
Raghava

Can you post a sample file

When should the Userform be displayed?
 
Hi Hui,

I have uploaded exact replica of the action( not code ) All i need is to call very basic sample , in this all i want is to call the Userform & auto enable the Click button on the userform in Macro 1 in module 2.
 

Attachments

  • Sample.xlsm
    24.9 KB · Views: 1
I'm not really sure what your asking ?

But you can run the commandbutton1_Click event from anywhere using:
Code:
userform1.CommandButton1_Click

You don't have to open the userform
 
Back
Top