delaney1102
New Member
- Joined
- Aug 14, 2019
- Messages
- 14
when i run this through using f8, it works, when i just do a straight runthrough, it goes to the end. the example i'm using should be catching in the 2nd statement. thank you!
Sub MacroName()
With Sheets("Sheet7")
.Visible = xlSheetHidden
.Activate
If Range("F7").Value = "Yes" Then
Call OtherMacro
ElseIf Range("F7").Value = "Missing Info" Then
MsgBox ("Please enter the Missing Info on Sheet5.")
Worksheets("Sheet5").Activate
ElseIf Range("NamedRange").Value = "No" Then
MsgBox ("Do not proceed.")
Worksheets("Sheet2").Activate
ElseIf MsgBox("No additional LFPS adjustments needed. Please UW as normal and upload once you have reached final rates.") Then
Worksheets("Sheet6").Activate
Worksheets("Sheet6).Unprotect "password"
Range("F4").Value = "check done" & Now()
Worksheets("Sheet6").Protect "password"
Worksheets("Sheet6").Activate
End If
End With
End Sub
Sub MacroName()
With Sheets("Sheet7")
.Visible = xlSheetHidden
.Activate
If Range("F7").Value = "Yes" Then
Call OtherMacro
ElseIf Range("F7").Value = "Missing Info" Then
MsgBox ("Please enter the Missing Info on Sheet5.")
Worksheets("Sheet5").Activate
ElseIf Range("NamedRange").Value = "No" Then
MsgBox ("Do not proceed.")
Worksheets("Sheet2").Activate
ElseIf MsgBox("No additional LFPS adjustments needed. Please UW as normal and upload once you have reached final rates.") Then
Worksheets("Sheet6").Activate
Worksheets("Sheet6).Unprotect "password"
Range("F4").Value = "check done" & Now()
Worksheets("Sheet6").Protect "password"
Worksheets("Sheet6").Activate
End If
End With
End Sub