Excel VBA browser opening alot of pages from single link

anajetli

New Member
Joined
Apr 6, 2014
Messages
1
I am using the following lines



Public Sub NavigateToURL(argURL As String)


Const READYSTATE_COMPLETE As Integer = 4


Dim objIE As Object

Set objIE = CreateObject("InternetExplorer.Application")




Shell ("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe -url " & argURL)


With objIE
.Visible = True
.Silent = True
.Navigate argURL


'Run and Wait, if you intend on passing variables at a later stage
Do While .Busy
DoEvents
Loop

Do While .ReadyState <> 4
DoEvents
Loop
End With



'objIE.Quit
Set objIE = Nothing

End Sub

----------------------------------------


Sub SendSMS()
Call NavigateToURL(Sheets("Info").Range("C16").Value)
End Sub



The problem is that my url is
http://ocean.pk/api/send.php?username=xyz&secret=aaaaaaa&text=Hello World. This is first msg World. This is first msg

now the chrome is opening links like
1st window
http://ocean.pk/api/send.php?username=xyz&secret=aaaaaaa&text=Hello World. This is first msg

2nd window
world./

3rd window
This/

and so on...


what should I do ....?????
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,214,588
Messages
6,120,412
Members
448,959
Latest member
camelliaCase

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top