ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   cell format text (https://www.excelbanter.com/excel-programming/337486-cell-format-text.html)

Jan 委jnoha

cell format text
 
Hi there,
I code program based on Excel 2000 OLE. I need set number format of cell
(range) to text, but I cannot get the right way from MS reference. Can
anybody guide me how to do that?

Thanks in advance

Jan 委jnoha



Norman Jones

cell format text
 
Hi Jan,

Try something like:

Range("A1:A10").NumberFormat = "@"


---
Regards,
Norman



"Jan 委jnoha" wrote in message
...
Hi there,
I code program based on Excel 2000 OLE. I need set number format of cell
(range) to text, but I cannot get the right way from MS reference. Can
anybody guide me how to do that?

Thanks in advance

Jan 委jnoha




Jan 委jnoha

cell format text
 
Thanks a lot, it works!

"Norman Jones" p竁e v diskusn璥 p齶sp魼ku
...
Hi Jan,

Try something like:

Range("A1:A10").NumberFormat = "@"


---
Regards,
Norman



"Jan 委jnoha" wrote in message
...
Hi there,
I code program based on Excel 2000 OLE. I need set number format of cell
(range) to text, but I cannot get the right way from MS reference. Can
anybody guide me how to do that?

Thanks in advance

Jan 委jnoha







All times are GMT +1. The time now is 07:28 AM.

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