Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
maxzsim
 
Posts: n/a
Default using cells.numberformat

Hi,

how can i use the numberformat of cells to convert to a text
i have put in worksheets("x").cells(1,1).numberformat = "Text" but i doesn't
seem to work

appreciate any advise

tks & rdgs
  #2   Report Post  
Nick
 
Posts: n/a
Default

Hi

Changing the format to text after data is entered has no effect.
For example a number 1234 entered in a cell with general or number format
will enter as a number. If you change the format of that cell it still
contains a number until the data is re-entered.
I have got round this in the past with a small macro to loop through the
cells and re-enter the data.

Nick

"maxzsim" wrote in message
...
Hi,

how can i use the numberformat of cells to convert to a text
i have put in worksheets("x").cells(1,1).numberformat = "Text" but i
doesn't
seem to work

appreciate any advise

tks & rdgs



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

worksheets("x").cells(1,1).numberformat = "@"

--
HTH

Bob Phillips

"maxzsim" wrote in message
...
Hi,

how can i use the numberformat of cells to convert to a text
i have put in worksheets("x").cells(1,1).numberformat = "Text" but i

doesn't
seem to work

appreciate any advise

tks & rdgs



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"