quick_question
New Member
- Joined
- May 31, 2011
- Messages
- 32
I've read a variety of different threads, but my issue seems to be different from what I can see posted out there.
I have a macro built onto Sheet4 (renamed "Controls") that when the condition is met, calls a separate (Message Box) macro. My problem is that even when I select "OK" on the message box, it appears 3 more times before stopping to appear.
I think it has something to do with the Woeksheet_Calculate function, but I'm not well versed enough to understand why...
Macro #1:
Private Sub Worksheet_Calculate()
If Sheets("Controls").Range("$AS$22").Value = 1 Then
Call MsgBoxExclamationIcon
End If
End Sub
Calling Macro #2:
Sub MsgBoxExclamationIcon()
MsgBox "Warning: this series is no longer STANDARD and has an extended " _
& "lead time if available at all." & Chr(13) & Chr(10) & Chr(13) & Chr(10) _
& "NOW Standard Series Include:" & Chr(13) & Chr(10) & Chr(13) & Chr(10) _
& " SERIES" & vbTab & " STANDARD LENGTH" & Chr(13) & Chr(10) _
& " - 24A" & vbTab & "| 12ft" & Chr(13) & Chr(10) _
& " - 26A" & vbTab & "| 20ft" & Chr(13) & Chr(10) _
vbOKOnly + vbExclamation, "Series Warning"
End Sub
Any help is greatly appreciated.
I have a macro built onto Sheet4 (renamed "Controls") that when the condition is met, calls a separate (Message Box) macro. My problem is that even when I select "OK" on the message box, it appears 3 more times before stopping to appear.
I think it has something to do with the Woeksheet_Calculate function, but I'm not well versed enough to understand why...
Macro #1:
Private Sub Worksheet_Calculate()
If Sheets("Controls").Range("$AS$22").Value = 1 Then
Call MsgBoxExclamationIcon
End If
End Sub
Calling Macro #2:
Sub MsgBoxExclamationIcon()
MsgBox "Warning: this series is no longer STANDARD and has an extended " _
& "lead time if available at all." & Chr(13) & Chr(10) & Chr(13) & Chr(10) _
& "NOW Standard Series Include:" & Chr(13) & Chr(10) & Chr(13) & Chr(10) _
& " SERIES" & vbTab & " STANDARD LENGTH" & Chr(13) & Chr(10) _
& " - 24A" & vbTab & "| 12ft" & Chr(13) & Chr(10) _
& " - 26A" & vbTab & "| 20ft" & Chr(13) & Chr(10) _
vbOKOnly + vbExclamation, "Series Warning"
End Sub
Any help is greatly appreciated.