ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Fill a combobox preserving characters format (https://www.excelbanter.com/excel-programming/387242-fill-combobox-preserving-characters-format.html)

[email protected]

Fill a combobox preserving characters format
 
Hi All,

I am new with VBA for Excel application.
I want fill a combo box with a range of cells containing charaters.
Some of them are subscript others superscript. The problem is, when I
fill out the combo box, the format of the charcters in superscript or
subscript is lost.
How can I preserve the format when I fill th combo box.
Now I am using the follwing code:

For i = 1 To 10 Step 1
ZoneListe_1.AddItem Sheets("Feuil1").Cells(i, 1)
Next
Thanks a lot.
Best.
Defré


Tim

Fill a combobox preserving characters format
 
As far as I know combo/list boxes support plain text only - no formatting
like super/subscript.

Tim


wrote in message
oups.com...
Hi All,

I am new with VBA for Excel application.
I want fill a combo box with a range of cells containing charaters.
Some of them are subscript others superscript. The problem is, when I
fill out the combo box, the format of the charcters in superscript or
subscript is lost.
How can I preserve the format when I fill th combo box.
Now I am using the follwing code:

For i = 1 To 10 Step 1
ZoneListe_1.AddItem Sheets("Feuil1").Cells(i, 1)
Next
Thanks a lot.
Best.
Defré




All times are GMT +1. The time now is 06:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com