ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Format (https://www.excelbanter.com/excel-programming/322066-format.html)

Alvin Hansen[_2_]

Format
 
hi!
I use this in a form
Dim myrange3 As Range

Setmyrange3 = Sheets("kursister").Range("kursister")

For Each c In myrange3

kursist2.AddItem c.Value
Next

In the sheets i have the format 01- 02 - 03 and so on.
how can i get this format into my combobox, now i get 1 - 2-3 an so on

Best regards

alvin


Tom Ogilvy

Format
 
kursist2.AddItem c.Text

will put in the cell exactly as it appears on the worksheet.

--
Regards,
Tom Ogilvy

"Alvin Hansen" wrote in message
...
hi!
I use this in a form
Dim myrange3 As Range

Setmyrange3 = Sheets("kursister").Range("kursister")

For Each c In myrange3

kursist2.AddItem c.Value
Next

In the sheets i have the format 01- 02 - 03 and so on.
how can i get this format into my combobox, now i get 1 - 2-3 an so on

Best regards

alvin




Alvin Hansen[_2_]

Format
 
Thanks again Tom
I here i have try every thing, and then its so simple.

Many thanks

alvin


"Tom Ogilvy" skrev:

kursist2.AddItem c.Text

will put in the cell exactly as it appears on the worksheet.

--
Regards,
Tom Ogilvy

"Alvin Hansen" wrote in message
...
hi!
I use this in a form
Dim myrange3 As Range

Setmyrange3 = Sheets("kursister").Range("kursister")

For Each c In myrange3

kursist2.AddItem c.Value
Next

In the sheets i have the format 01- 02 - 03 and so on.
how can i get this format into my combobox, now i get 1 - 2-3 an so on

Best regards

alvin






All times are GMT +1. The time now is 01:29 PM.

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