Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Adding an Excel Worksheet?

$
0
0
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!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>