This is an general outline of the process I would like to code with VBA:
Using a reference number from Excel, I currently match it by a search in an HTML database, then search for the word(s) 'complied' (shown as a hyperlink) on a page with variable amounts rows of data.
I need to locate and click the last 'complied' hyperlink on the webpage, then search for the word 'passed' in the status field.
If not there, (say 'failed' found instead), then search back up the list on the page for the next 'complied' and again check for the word 'passed'.
If (or when) I find a 'passed' in the 'complied category, I copy several lines of text from the next field on the form, look up the list for the first 'acknowledged' hyperlink and paste this copied text into a 'notes' box, deleting 3 lines of standard
text after having done this.
I then look at the end of the notes for a date/time, select the drop down day/month/year and hour/min listbox above and select the date time to match the date/times in the notes . The date in the notes is in year/monthday format but the dropdown box
is in day/month/year format. The time in the notes is given in hr:min:sec but the drop down only in hr min, so times are matched to the nearest 5 min.
The cycle repeats by looking up the list for the next 'acknowledged' hyperlink and continues until all 'acknowledged' records have been updated with the 'passed' notes from the complied record
Finally, when the above is completed, a cell in Excel is filled red to indicate this process is complete.
At present I have 750,000 outstanding records to check and the list grows weekly so this is a process that could certainly benefit from full automation with VBA if possible. I can use 'sendkeys' statements to cut down on the number of clicks and keystrokes,
but my VBA knowledge is still at too elementary a stage to write all the code to fully automate this process.
I can upload to SkyDrive on Monday evening a complete process document, listing each stage clearly with a screenshot if anyone is able to tell me whether this process sounds like it's possible to code in VBA.
Is it possible?
Many thanks for your help!