_Ray Posted December 14, 2021 Share Posted December 14, 2021 Hi All, I was searching for a topic here but I was not able to find one that can answer my problem. I posted yesterday about how to read excel and I was able to get it done (thanks to Subz) but my problem now is how I can use the values I got as an input in IE. It gives me an error when trying to use it directly. I am attaching sample image of the error. Sorry I can't copy the text since it was restricted as I am working remotely Link to comment Share on other sites More sharing options...
Danp2 Posted December 14, 2021 Share Posted December 14, 2021 Local $datawb.worksheets("Sheet1").Activate You need to remove the Local at the beginning of this line. For $x = 1 UBound($aMyData) - 1 You're missing the "To" between 1 and UBound. As far as setting the value of the Input element, take a look at the help file entry for _IEFormElementSetValue. _Ray 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
_Ray Posted December 14, 2021 Author Share Posted December 14, 2021 ohhh!!! I feel so dumb. It's great to have another set of eyes. Thank you so much @Danp2 Link to comment Share on other sites More sharing options...
_Ray Posted December 14, 2021 Author Share Posted December 14, 2021 Another error encountered. Variable must be of type "Object". Can you help me what seems to be the problem? Link to comment Share on other sites More sharing options...
Luke94 Posted December 14, 2021 Share Posted December 14, 2021 Line 177 needs changing to: Local $datawb = _Excel_BookOpen($oExcel, @ScriptDir & '\SBMO Store setting input.xlsx') You we're passing '\SBMO Store setting input.xlsx' into the $bReadOnly parameter. Danp2 and _Ray 1 1 Link to comment Share on other sites More sharing options...
_Ray Posted December 15, 2021 Author Share Posted December 15, 2021 7 hours ago, Luke94 said: You we're passing '\SBMO Store setting input.xlsx' into the $bReadOnly parameter. I didn't notice this part. I wasted a day for this. Thank you very much @Luke94. This forum is really awesome. It really helps newbies like me Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now