I want to include the value for text2.text into this shell command; Code: Shell ("Ping text2.text -n 100 -l 32") Here's what I've got (simplified) Code: Dim IP Shell ("Ping IP -n 100 -l 32") What would be the correct way to input the value of text2.text (IP) into the shell command while keeping the Code: -n 100 -l 32 ?
Code: Call Shell("Ping " & Text2.Text & " -n 100 -l 32", vbNormalFocus) Tested it with a simple loop back address test.