Moderators Melba23 Posted May 21, 2018 Moderators Posted May 21, 2018 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 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
fenhanxue Posted May 21, 2018 Posted May 21, 2018 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: 111.xlsx
fenhanxue Posted May 21, 2018 Posted May 21, 2018 sorry Melba23 I'm really sorry, I'll pay attention to it next time
Dana Posted May 26, 2022 Posted May 26, 2022 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.
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