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

3D array from excel

$
0
0
I have look at the examples in the forms and in the help file however I still dont think I understand what is wrong with my script. I keep getting a "Subscript used with non-Array variable" error. Maybe I am delcaring the array wrong but I am not sure.
I am trying to get the excel sheets to populate into a 3D array.



[ autoit ]         
#include <GUIConstantsEx.au3> #include <GuiButton.au3> #include <GuiTreeView.au3> #include <WindowsConstants.au3> #include <GuiTab.au3> #include <array.au3> #include <Excel.au3> Global $next = 0 Opt("MustDeclareVars", 0) ;... $oExcel = _ExcelBookOpen(@WorkingDir & "\Databaseproject.xls", 0) dim $Databaseproject[10] dim $array[100][100] For $sheet = 1 to 10 _ExcelSheetActivate($oExcel, $sheet) $array = _ExcelReadSheetToArray($oExcel, 1, 1, 100, 100) $Databaseproject[$sheet] = $array[100][100] Next _ArrayDisplay($Databaseproject) _ExcelBookClose($oExcel)

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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