Users select one of two options in a cell, and then click a button. I want different macros run on pressing the button depending on what was selected in the cell
Thanks
Users select one of two options in a cell, and then click a button. I want different macros run on pressing the button depending on what was selected in the cell
Thanks
Sub Button1_Click()
If Worksheets("Sheet1").Range("A1") = 1 Then
Call Macro1
ElseIf Worksheets("Sheet1").Range("A1") = 2 Then
Call Macro2
Else
MsgBox "Choose a correct value"
End If
End Sub
- Mangesh
Thanks, thats great stuff
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks