I am just starting out with autoIT and have used minimally so far. I programmatically open an existing Excel spreadsheet which contains 1 worksheet called "NEED". I would like to add a 2nd worksheet called "Documentation" and insert an image stored within a specific directory.
I have spent most of the morning searching the forum for good examples to no avail. Could someone provide me with a short example here so that I may have something to compare?
Commands like _ExcelSheetAddNew($oExcel, "Documentation") have not worked for me and spur an error:
C:\Program Files\AutoIt3\Include\Excel.au3 (957) : ==> The requested action with this object has failed.:
$oExcel.ActiveWorkBook.WorkSheets.Add.Activate
$oExcel.ActiveWorkBook^ ERROR
Thanks in advance!
I have spent most of the morning searching the forum for good examples to no avail. Could someone provide me with a short example here so that I may have something to compare?
Commands like _ExcelSheetAddNew($oExcel, "Documentation") have not worked for me and spur an error:
C:\Program Files\AutoIt3\Include\Excel.au3 (957) : ==> The requested action with this object has failed.:
$oExcel.ActiveWorkBook.WorkSheets.Add.Activate
$oExcel.ActiveWorkBook^ ERROR
Thanks in advance!