Why this isn't running properly (excel macro) Pls help!!

  • Thread starter Thread starter Jay
  • Start date Start date
J

Jay

If Sheet3.optD1D2.Value = True Then

MsgBox "D1/D2Kgs and D1/D2"

ElseIf Sheet3.optD3.Value = True Then

MsgBox "D3Kgs and D3"

ElseIf Sheet3.optBoth = True Then

MsgBox "Computes both Plant"

Else

MsgBox "Please choose what source to run."

End If
 
What I want to happen is if I click on optD1D2 a message would appear
= MsgBox "D3Kgs and D3"
next if I click optD3 a message would appear stating,
=MsgBox "D3Kgs and D3"
and last option
=MsgBox "Computes both Plant"
else
Msgbox "Please choose an option."

thanks,
Jay
 
Jay,

How do you call this macro.

I tried to call it from a button on the sheet and it's working as desired.
 

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