Jump to content
Sign in to follow this  
cheesestain

_IEFormElementSetValue using array

Recommended Posts

cheesestain

I'm trying to input text from an an excel file stored in an array using _IEFormElementSetValue

_IEFormElementSetValue($oQuery, $aResult[$i][0])

But i'm getting this error when i execute: Array variable has incorrect number of subscripts or subscript dimension range exceeded

I verified that i can use $aResult[$i][0]) in a msg box and it displays the result i want but for some reason I can't use it in _IEFormElementSetValue

Share this post


Link to post
Share on other sites
cheesestain
5 hours ago, Danp2 said:
For $i = 1 to UBound($aResult)

This probably should be

For $i = 0 to UBound($aResult) - 1

 

Thank you!  It worked!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×