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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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