View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Leith Ross[_384_] Leith Ross[_384_] is offline
external usenet poster
 
Posts: 1
Default Format Number to Text


Hello ACFalcon.

You can convert a number in VBA to a string by using the STR function.

EXAMPLE
Range("A1") = Str(1234)

The value in A1 is now text and not a number. As for the Forma
statement changing a cell's type, the answer is no. All cells ar
Variant data types.

Sincerely,
Leith Ros

--
Leith Ros
-----------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...fo&userid=1846
View this thread: http://www.excelforum.com/showthread.php?threadid=49393