Jump to content

_XLSXReadToArray (using only Autoit)


DXRW4E
 Share

Recommended Posts

  • Moderators

fenhanxue,

When you reply, please use the "Reply to this topic" button at the top of the thread or the "Reply to this topic" editor at the bottom rather than the "Quote" button. Quoting entire posts just pads the thread unnecessarily. Thanks in advance for your future cooperation.

M23

 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

15 minutes ago, BrewManNH said:

Post the script you're using.

my code is as follow:

#include <Array.au3>
#include <_XLSXReadToArray.au3>
    
$temp_new_create = @ScriptDir&'\111.xlsx'

local $a, $t, $Error, $Extended
$t = TimerInit()

$a = _XLSXReadToArray($temp_new_create, 1, 0, 0)
$t = TimerDiff($t)
_ArrayDisplay($a, $t)
    

exit

 

and the result is as show below:

 

test.jpg

111.xlsx

Link to comment
Share on other sites

  • 4 years later...

I know this is an old thread, and the OP hasn't been seen here in some years, but... is anybody still using this UDF?

When I use it to convert a downloaded .xlsx file, the top row of the file (line 2 in the resultant array) is blank.  I've figured out that it's due to the use of bolt font for the top row (column names).  If I open the file in Excel, unbold the top row, and resave, that line imports correctly... but I can't count on the user having Office to do this.  I haven't looked closely at the UDF code yet, has anybody else run into this?  Or have a better solution?

The file I'm using (which I have no control over) currently has 20004 rows and 104 columns.  I actually only need 5 of those columns, but I do need the column names.  My script worked great until the data provider changed the format from csv (even though they gave it a .xls extension) to .xlsx.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...