• 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.

Macro to disable a button if listbox contains no data.

Dhamo

New Member
Hi,


Private Sub ModulesListBox_Change()

If ModulesListBox.ListIndex > 0 Then

BTN_MoveSelectedLeft.Enabled = True

Else

BTN_MoveSelectedLeft.Enabled = False

End If

End Sub


Pls help.
 
hi,


List box name: ModulesListBox

Command Button Name: BTN_MoveSelectedLeft


Could anyone of you please share the way?
 
Back
Top