View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
KevGrn114 KevGrn114 is offline
external usenet poster
 
Posts: 8
Default Characters in a cell

I need a macro that will look at a cell and if it only has one character then add zero's in front of it until it has 3 characters.

Example: if cell "A1" = "10" then the macro would make it say "010"
if cell "A1" = "BA" then the macro would make it say "0BA"

Is there a setting that looks at the number of characters???

Thanks,
Kevin