Comments For Buttons

M

mathew

Good Evening All,

Is it possible to asign a comment to a command_buttonX, so
that prior to clicking it, the user is informed of the
parameters required, eg "Select any cell in cloumn A"
Any thoughts?

Cheers
Mathew
 
O

Orlando Magalhães Filho

Hi Mathew,

Maybe it were interesting if you criticize the selection at start of the
macro, for example:

Private Sub CommandButton1_Click()
If Intersect(Selection(), Range("A:A")) Is Nothing Then
MsgBox "Please, select any cell in cloumn A and try again"
Exit Sub
End If
'Start your code from here
End Sub

HTH
 

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

Top