Web control problem

Status
Not open for further replies.

JerryGiese

Active Member
Joined
Jun 27, 2005
Messages
323
I am using VBA to open internet explorer, login, and enter a tracking number. The page where I enter the tracking number is:

http://www.hmm21.com/hmm/ebiz/track_trace/main_new.jsp

The problem happens when I try to enter the bill of lading number into the field. I tried this line of code:


Code:
ieobject.Document.All("numbers").Value = "Bill of lading goes here"

But then I just get an error as if that control doesn't exist. Can anyone help?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
There are multiple controls on that page all with the name numbers. If you want the first B/L text box, it's:
Code:
Document.All(204)
HTH
 
Upvote 0
Jerry

Why have you started another thread?

Like I said in the previous thread this is not a Excel/VBA problem, it's all about the design/structure of the web page.

Anyways, hopefully Rory has pointed you in the right direction.:)
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,216,066
Messages
6,128,582
Members
449,459
Latest member
20rayallen

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