Hi,
Is there a function to know the with of a text in cell of excel in pixels?
My program is creating an excel file and ith that file, some fields are merged.
The problem is that excel don't do an autofit of merged cells. I don't know the width of the text, cinse I get this information of a database
This is the result:

And sould be something like

If I know the width of the text in pixels, I can set the width via my program.
Is there a function to know the with of a text in cell of excel in pixels?
My program is creating an excel file and ith that file, some fields are merged.
The problem is that excel don't do an autofit of merged cells. I don't know the width of the text, cinse I get this information of a database
This is the result:
And sould be something like
If I know the width of the text in pixels, I can set the width via my program.
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite