Add code to Private Sub ComboBox1_Change() with a macro from a different workbook

  • Thread starter Thread starter help_wanted
  • Start date Start date
H

help_wanted

Is there a way to write code to Private Sub ComboBox1_Change() on one
workbook from a macro in another.
 
Tom,
Thanks for the response but this link only shows how to add code t
or create a new module. I need to add code only to a sheet in th
separate woorkbook. Specifically to add if /then statements to

Private Sub ComboBox1_Change()

in a sheet in the separate workbook

Thanks again
 
"Creating An Event Procedure"

tells how to do what you want. The example is for the thisworkbook module,
but just changing thisworkbook to sheet1 for example, should get the job
done. Adjust to refer to the other workbook as well.
 
Still not sure exactly what im supposed to do here. Does anyone hav
some sample code for how this can be accomplished
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top