Need Help with Internet Form Fill (Part 1) !!!

23izkool

New Member
Joined
Mar 4, 2011
Messages
19
Hi all,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>
I have been at this problem for close to a year and finally got some headway but stuck at the last leg. Appreciate that someone can help me with this!
<o:p> </o:p>
OBJECTIVE OF THE MACRO (BASICALLY INTERNET FORM FILLING)<o:p></o:p>
  • Open up multiple websites through the multiple weblinks recorded in a spreadsheet<o:p></o:p>
  • Click the relevant buttons & copy some numerical figures from the spreadsheet into the websites, then click on the submit button in the websites to upload the figures<o:p></o:p>
<o:p> </o:p>PROBLEMS<o:p></o:p>
  • Unable to write the macro to upload figures from the spreadsheet<o:p></o:p>
    • The fields to fill belong to ‘hidden input’ type<o:p></o:p>
    • Unable to access it like what was done for clicking edit button & submit button<o:p></o:p>
  • Currently used an alternative à use ‘sendkeys method’ to (1) tab through the other fields in the website, (2) copy figures from the spreadsheet, (3) paste into the empty field which was tabbed to<o:p></o:p>
    • However, sendkeys are very unstable & sometimes tab to the wrong field!<o:p></o:p>
<o:p> </o:p>Will give more elaboration below!<o:p></o:p>
<o:p> </o:p>
<o:p></o:p>
ACTUAL WEB LAYOUT<o:p></o:p>
<o:p> </o:p>
(Fig 1 / Before clicking ‘Edit’ Button)
<o:p>
r0gabecv06mgh8gyh08w.jpg
</o:p>

(Fig 3 / Key in empty fields & Click ‘Yes’ Button)
<o:p>
w3jjzk3zvrwcmsrhxm1g.jpg
</o:p>

(Fig 4 / Figures will be populated to main screen à click ‘save’)
<o:p>
fc7ss3fu9zigi0i7bzw0.jpg
</o:p>
<o:p> </o:p>
THE SPREADSHEET DATA FROM WHICH FIGURES ARE PICKED TO FILL THE EMPTY FIELDS IN THE WEBSITE<o:p></o:p>
<o:p></o:p>

(Figure 5 / Table in Spreadsheet)
<o:p>
crpyd8jbp3arq8wi40vf.jpg
</o:p>
<o:p> </o:p>
<o:p> </o:p>So as I run the macro from the spreadsheet, it will:
(1) open up URL for Sector 1 à work within the webpage for Sector 1
a. click the green ‘Click here to edit’ button
b. click the red arrow to bring out the PopUp box (Red) for Branch1
c. fill in all the empty fields for Branch 1 (the empty fields for ‘Total Revenue’ & ‘Total Cost’)
d. click the green ‘Yes’ button à this will close the PopUp box & upload the figures to the empty fields (as in Fig 4)
e. click the green ‘Click here to save’ button (as in Fig 4)
(2) re-run the macro through a for-loop so that it repeats all the steps above to work on URL for Sector 2
<o:p> </o:p>
PROBLEMS<o:p></o:p>
· Without using sendkeys, I am unable to get the macro to upload the figures into the empty fields à the macro just stops & runs into errors because I do not know how to write to access the hidden input (I think)<o:p></o:p>
· Even when using sendkeys, it is very unstable à the macro updates the wrong figures, e.g. Total Revenue = 1 instead of 3 for Branch 1 (inputted the Total Cost instead). Using the above example, I am tabbing 6 times to get to the re<o:p></o:p>
· PLEASE HELP WITH THIS!!!!
· I have put in the relevant source code & the existing macro below. Hope someone can advise!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Re: Need Help with Internet Form Fill (Part 2) !!!

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p>
l1tgpr9yi2yijmmvanso.jpg
</o:p>
<o:p>
d5w0hzl1xbkggjwkug38.jpg
</o:p>
<o:p>
076ld12duxoc5qd0k1ze.jpg
</o:p>
7uml7tqfj2awdnz3kwye.jpg
 
Upvote 0
Hi all,

Pls ignore my other post. To the Administrators, kindly help me keep this post and delete the other (i'm willing to do the deletn but do not know how)

Hav manually converted e macro & source code to pic file as I could not get it pasted as per the 1st post. The posting seems to effect the source code itself & not as pure text in a forum posting.

In any case, spent a lot of time just posting this & really hope someone can shed some light on this. Will be happy to provide more details if necessary! Tks!
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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