Getting the shown string from an excel cell

Just starting out? Need help? Post your questions and find answers here.
User avatar
jacdelad
Addict
Addict
Posts: 1993
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Getting the shown string from an excel cell

Post by jacdelad »

Hello,
I'm new to COMatePLUS, but I needed to start with it because I needed to get values from an Excel table. However, I got it to work (using the COMatePLUS package downloaded from RSBasic's website) by using the example provided. Now I have an Excel cell with special formatting ([h]"h"mm"min") and I want to get the content exactly how Excel shows it to me. But reading it with (like all other cells)

Code: Select all

ExcelObject\GetStringProperty("Cells("3,6)")
gives me a string with a float oder double or whatever value. Can I force the command to give me exactly what Excel shows me?
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
jacdelad
Addict
Addict
Posts: 1993
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: Getting the shown string from an excel cell

Post by jacdelad »

Aye, I found it out for my special case, but the question in general remains.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Post Reply