Hi
Difficult to be certain how this is suppose to work, but pehaps this is what you had in mind
Code:
Private Sub CommandButton1_Click()
Dim ans As String
Dim mysite As String
ans = InputBox("Please enter Part Number?")
If ans = "" Then Exit Sub
Set IE = CreateObject("InternetExplorer.Application")
With IE
.Visible = True
mysite = "http://www.yahoo.com/WSearch.aspx?Wchar=Y&searchText=" & ans
.Navigate mysite
Do Until .ReadyState = 4
DoEvents
Loop
End With
End Sub
??
I also think you should have some data validation on the user input (ans)!!
MTB