I am populating a webform on internet explorer using vba
I have succeeded in doing so with textboz, check box and drop down selections HOWEVER I cannot get the code to upload a file
As below I am successfully using getElementbyId to identify the field to populate the form
doc.getElementbyId("f1_receiver_contact_name").Value = strCustomer
doc.getElementbyId("f1_cost_value").Value = iValue
doc.getElementbyId("f1_type_of_claim").Value = strType
doc.getElementbyId("f1_over50dollars_yes").click
However I cannot upload a pdf file (full) directoty path is strAttach
The field into which the file is stored has the elementid "f1_supporting_document"
I have tried the following
doc.getElementbyId("f1_supporting_document").value = strAttach
and
doc.getElementbyId("f1_supporting_document").document = strAttach
but neither works
When uploading manually I click on a browse buttom and then select the filepath
Perhaps my code is missing something to reflect that action ?
Any ideas ?
Greg P
I have succeeded in doing so with textboz, check box and drop down selections HOWEVER I cannot get the code to upload a file
As below I am successfully using getElementbyId to identify the field to populate the form
doc.getElementbyId("f1_receiver_contact_name").Value = strCustomer
doc.getElementbyId("f1_cost_value").Value = iValue
doc.getElementbyId("f1_type_of_claim").Value = strType
doc.getElementbyId("f1_over50dollars_yes").click
However I cannot upload a pdf file (full) directoty path is strAttach
The field into which the file is stored has the elementid "f1_supporting_document"
I have tried the following
doc.getElementbyId("f1_supporting_document").value = strAttach
and
doc.getElementbyId("f1_supporting_document").document = strAttach
but neither works
When uploading manually I click on a browse buttom and then select the filepath
Perhaps my code is missing something to reflect that action ?
Any ideas ?
Greg P