View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Shailesh Shah[_2_] Shailesh Shah[_2_] is offline
external usenet poster
 
Posts: 114
Default How do I change the datatype of a cell?

Hi Casper,

Use numberformat to change cell format.

mycell.Value = CStr(Replace(mycell.Value, ",", ""))
mycell.NumberFormat = "@" 'Change to Text Format


Regards,
Shah Shailesh
http://members.lycos.co.uk/shahweb/
(Excel Add-ins)


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!