generate button click

  • Thread starter Thread starter spy4phun
  • Start date Start date
S

spy4phun

how do i code a button click (a vb form button)

I'm using
Sheets("Stats").CommandButton2_Click

This produces the error:
object doesn't support property or method.


HELP!
 
The command button click procedure has to be declared as Public not Private
(Sorry I just got around to answering your last post... Meetings.).

Public Sub CommandButton2_Click()
'do your button click stuff
End sub
 

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

Similar Threads


Back
Top