Hello,

I have the code that is ready and working, now I want to add one condition at the start. If the condition is true then macro should run else message box should pop up. I thought of something like this


If Range("CB99").Value <> "0" Then Run "MarcoALL"
Else
MsgBox "Please Enter a Percentage Value"
End If
End Sub

But I get an 'Complie Error: Else Without If', can some one please point out what I am doing wrong here.


Thanks,
Aadesh Gandhi.