larryresick
New Member
- Joined
- Dec 21, 2017
- Messages
- 6
How can I get the Debug.Print immediate window results to display in a msg box once all the values are found?
Sub PlayerSessions()
Dim rngCell As Range
Dim ws As Worksheet
Dim lngLstRow As Long
Dim lngLstCol As Long
Dim strSearch As String
Dim txt As String
strSearch = InputBox("Please enter Player ID:", "Search Value")
For Each ws In Worksheets
If ws.Name <> "Combined" And ws.Name <> "Player Names" And ws.Name <> "Summary" Then
ws.Select
For Each rngCell In Range("D2", "D17")
If rngCell.Value = strSearch Then
Debug.Print (ws.Name)
End If
Next
End If
Next ws
End Sub
Sub PlayerSessions()
Dim rngCell As Range
Dim ws As Worksheet
Dim lngLstRow As Long
Dim lngLstCol As Long
Dim strSearch As String
Dim txt As String
strSearch = InputBox("Please enter Player ID:", "Search Value")
For Each ws In Worksheets
If ws.Name <> "Combined" And ws.Name <> "Player Names" And ws.Name <> "Summary" Then
ws.Select
For Each rngCell In Range("D2", "D17")
If rngCell.Value = strSearch Then
Debug.Print (ws.Name)
End If
Next
End If
Next ws
End Sub