I have some code that loops through a bunch of selected cells and for each one, searches for that term on a website...it works, but each search term results in a new browser tab. Any suggestions on how I can get just 1 tab to cycle through each term?
VBA Code:
For Each Cell In Selection
Application.Wait (Now + TimeValue("00:00:" & WaitTime))
SearchTerm = Cell.Value
CreateObject("Shell.Application").ShellExecute "https://www.myURL.com/s?searchTerm=" & SearchTerm
Next Cell