Did you  try text format?
you can give text format to range by selecting text in format cell option

On 16/09/2011, John Holland <h...@superjetlag.com> wrote:
> I have formatted a column in a spreadsheet as Text. With VBA i am
> writing a string  variable into a cell of that column. The string
> variable happens to contain a number and i get the green triangle in
> the particular cell indicating that i am writing a number as text.
> However, it is formatted  as a string variable. Testing the particular
> cell, if i put a number preceded by an apostrophe in that cell, also i
> get the error of writing number as text.
> What i want is to have a text  string into that cell as text, even if
> it includes a number,
> can anyone help me out of this weird problem?
> cheers,
> JH
>
> --
> ----------------------------------------------------------------------------------
> Some important links for excel users:
> 1. Follow us on TWITTER for tips tricks and links :
> http://twitter.com/exceldailytip
> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
> 3. Excel tutorials at http://www.excel-macros.blogspot.com
> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>
> To post to this group, send email to excel-macros@googlegroups.com
>
> <><><><><><><><><><><><><><><><><><><><><><>
> Like our page on facebook , Just follow below link
> http://www.facebook.com/discussexcel
>

-- 
Sent from my mobile device

Regards
Rajan verma
+91 9158998701

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

Reply via email to