View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld Ron Rosenfeld is offline
external usenet poster
 
Posts: 5,651
Default Format cell to always begin with an "X"

On Tue, 27 Oct 2009 09:18:11 -0700, Cheri
wrote:

Is it possible to format a cell to always add an "X" at the beginning of the
data input in the cell? I imagine it can be done under
CellFormatNumberCustom but am wondering exactly what I would have to put
as the format.

Thanks in advance for your assistance!


You just preface each section of the format string with an "X" (with or without
the quotes).

One way would be: xGeneral;x@
--ron