read excel .xlsx file data ...
Re: read excel .xlsx file data ...
It's OK
Thank you very much
Thank you very much
Re: read excel .xlsx file data ...
In the example posted by al2791: https://wetransfer.com/downloads/f09b04 ... e=sendgrid, line 5 is empty. It seems that it isn't taken into account, as requesting display of line 5, result in line 6. So line 5 is interpreted as the 5th non empty line.
Thanks anyway!
Thanks anyway!
PureBasic: Surprisingly simple, diabolically powerful
Re: read excel .xlsx file data ...
You are right, should be fixed now.
{Home}.:|:.{Dialog Design0R}.:|:.{Codes}.:|:.{History Viewer Online}.:|:.{Send a Beer}
Re: read excel .xlsx file data ...
Hi HexOR,
thank you very much for your Excel module.
Good that I was looking for something like that after all, because I was just about to write something of my own to be able to read in Excel tables with PB.
Pew, then I don't need to reverse engineer the XLSX format further
thank you very much for your Excel module.
Good that I was looking for something like that after all, because I was just about to write something of my own to be able to read in Excel tables with PB.
Pew, then I don't need to reverse engineer the XLSX format further

PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2024: 56y
"Happiness is a pet." | "Never run a changing system!"
"Happiness is a pet." | "Never run a changing system!"
Re: read excel .xlsx file data ...
Yeah, I'm pretty sure, whoever "developed" that format must have had some serious brain damage 

{Home}.:|:.{Dialog Design0R}.:|:.{Codes}.:|:.{History Viewer Online}.:|:.{Send a Beer}
-
- Enthusiast
- Posts: 542
- Joined: Tue Oct 14, 2014 12:09 pm
Re: read excel .xlsx file data ...
HI,Kurzer wrote: Thu Aug 31, 2023 8:03 pm Hi HexOR,
thank you very much for your Excel module.
Good that I was looking for something like that after all, because I was just about to write something of my own to be able to read in Excel tables with PB.
Pew, then I don't need to reverse engineer the XLSX format further![]()
with comate plus you can do what you want with execle amd more simply. see examples on comateplus
Re: read excel .xlsx file data ...
Yes, but ...
not in Linux and not in macOS.
not in Linux and not in macOS.
-
- Addict
- Posts: 4777
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: read excel .xlsx file data ...
And even on Windows you can open/edit Excel files with COMatePLUS only if Excel is installed on the same computer, no?
Re: read excel .xlsx file data ...
HeX0R wrote: Sat Sep 02, 2023 10:34 am Yeah, I'm pretty sure, whoever "developed" that format must have had some serious brain damage![]()

If Excel has to be installed, that would be an exclusion criterion for COMatePlus. I also just want to read a few rows from a spreadsheet. HexOR's include file probably has less overhead.Little John wrote:And even on Windows you can open/edit Excel files with COMatePLUS only if Excel is installed on the same computer, no?
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2024: 56y
"Happiness is a pet." | "Never run a changing system!"
"Happiness is a pet." | "Never run a changing system!"
- doctorized
- Addict
- Posts: 882
- Joined: Fri Mar 27, 2009 9:41 am
- Location: Athens, Greece
Re: read excel .xlsx file data ...
Tested HeX0R's code and work just fine. Is there a way to read xls files too?
Re: read excel .xlsx file data ...
Is a different format.
Try with ODBC driver
Try with ODBC driver
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
- doctorized
- Addict
- Posts: 882
- Joined: Fri Mar 27, 2009 9:41 am
- Location: Athens, Greece
Re: read excel .xlsx file data ...
Is there any example?
Re: read excel .xlsx file data ...
Hello HeX0R!
I have an XLSX spreadsheet that causes your code to get stuck in a loop.
Would you be willing to look at this spreadsheet to try to figure out what's going on?
If so, I will send you a PM with a link to download it.
Thank you,
Eric
I have an XLSX spreadsheet that causes your code to get stuck in a loop.
Would you be willing to look at this spreadsheet to try to figure out what's going on?
If so, I will send you a PM with a link to download it.
Thank you,
Eric
-
- Enthusiast
- Posts: 542
- Joined: Tue Oct 14, 2014 12:09 pm
Re: read excel .xlsx file data ...
I'm very surprised that no one has mentioned comate, because with this module it's even possible to emulate visual basic quite simply and thus control an excel file.
-
- Addict
- Posts: 4777
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: read excel .xlsx file data ...

Please read this thread once again.