wasimwsm Posted August 4, 2010 Share Posted August 4, 2010 hi i want to copy cell values from clipboard but i m not able to doing so my code is like follows #Include <Excel.au3> Local $oExcel=("c:\wsm.xls") _ExcelBookOpen($oExcel) WinActivate("Microsoft Excel - wsm") $sCellValue = _ExcelReadCell($oExcel,6,6 ) MsgBox(0, "", "The Cell Value is: " & @CRLF & $sCellValue, 2) Link to comment Share on other sites More sharing options...
enaiman Posted August 4, 2010 Share Posted August 4, 2010 (edited) WinActivate("Microsoft Excel - wsm") seem to be useless in your code. And this: Local $oExcel=("c:\wsm.xls") _ExcelBookOpen($oExcel) is completely wrong if you intend $oExcel to be the object referrence; you still need to read about the functions you are trying to use. (that's the purpose of a help file) _ExcelBookOpen is returning the object ref so the code should be changed to: Local $MyExcel=("c:\wsm.xls") $oExcel = _ExcelBookOpen($MyExcel) Edited August 4, 2010 by enaiman SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
wasimwsm Posted August 4, 2010 Author Share Posted August 4, 2010 thanx enaiman for reply but how can i copy the cell to clipboard plz help me Link to comment Share on other sites More sharing options...
enaiman Posted August 8, 2010 Share Posted August 8, 2010 Did you try to fix your code the way I showed you? If you did, you should be able to read whatever is in that cell. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) 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