martmeister Posted January 22, 2009 Share Posted January 22, 2009 Hello Guys I know this can be done but I'm sure how to go about this in the right direction. I'm up to this point in excel.. and this is what I'm trying to do.. I want AutoIt to recognize cell DU30 (cell location doesnt matter this point (only one cell)) and depending on what number is in that cell (numbers 1 - 12) go on into saying 'if' 'then' statements example if #1 ==1 then do this key combo, if #2==2 then do this key combo.... else ... If someone can please help me with the outline of this code I would really love it! p.s. I have the latest version of AutoIt Thanks :] Link to comment Share on other sites More sharing options...
iHonda Posted January 22, 2009 Share Posted January 22, 2009 #include <Excel.au3> $oExcel = _ExcelBookOpen("path") $val = _ExcelReadCell($oExcel, Row, Column) If $val = 1 then ;Stuff to do ElseIf $val = 2 Then ;Stuff to do ElseIf $val = 3 Then ;Stuff to do ElseIf $val = 4 Then ;Stuff to do EndIf A great place to start Autoit 1-2-3 Link to comment Share on other sites More sharing options...
martmeister Posted January 22, 2009 Author Share Posted January 22, 2009 THANK YOU SO MUCH!!! THANK YOU!! 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