Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to prevent a error message?

Status
Not open for further replies.

pseudoman

Programmer
Jan 8, 2004
16
0
0
US
here is the code:
Sub Main()
rc%=Shell ("C:\Program Files\Internet Explorer\IEXPLORE.EXE 1)
g_HostSettleTime=2000
AppActivate ("Metropolitan Reporting Bureau - Microsoft Internet Explorer")
SendKeys(&quot;<TAB>,<TAB>,<ENTER>&quot;)
End Sub

how to get rid of the overflow error message?
 
Try declaring your variables as Long instead of integer. rc& instead of rc%

From the help file under &quot;Data Types&quot;:

Integer from -32,768 to 32,767
Long from -2,147,483,648 to 2,147,483,647
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top