If have a macro with an if then else structure. I will show it below, however, the macro skips over the if then else stmt. Also, no error shows up before or after the execution in the module.
Any thoughts.
Thanks
James
(PS: framestyle and hoiststyle are names of cells in the only open worksheet.)
Sub hoist_option_2button()
'
' hoist_option_2button Macro
' hoist option 2 logic
' Range("whatnow").select
Range("whatnow").Value = 9
' If range("framestyle").value= 2 Then range("hoiststyle").value= 9 Else range("hoiststyle").value=2
'
End Sub
[/quote][/code]
Any thoughts.
Thanks
James
(PS: framestyle and hoiststyle are names of cells in the only open worksheet.)
Sub hoist_option_2button()
'
' hoist_option_2button Macro
' hoist option 2 logic
' Range("whatnow").select
Range("whatnow").Value = 9
' If range("framestyle").value= 2 Then range("hoiststyle").value= 9 Else range("hoiststyle").value=2
'
End Sub
[/quote][/code]