PC Review


Reply
Thread Tools Rate Thread

Auto conversion of the Text to Number Getting Failed in Excel 2007

 
 
Yuvaraj Mani
Guest
Posts: n/a
 
      9th Oct 2009
Auto Conversion of Text to Number is getting failed in excel 2007:

Number values from the Spreadsheet formatted as Text instead of Number that
leads to Type mismatch error in VBA Program.

How to auto convert the Number values in the excel cells to Number instead
of Text

 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      9th Oct 2009
Post the code


"Yuvaraj Mani" wrote:

> Auto Conversion of Text to Number is getting failed in excel 2007:
>
> Number values from the Spreadsheet formatted as Text instead of Number that
> leads to Type mismatch error in VBA Program.
>
> How to auto convert the Number values in the excel cells to Number instead
> of Text
>

 
Reply With Quote
 
Joel
Guest
Posts: n/a
 
      9th Oct 2009

MyNum = trim(Range("A1"))
if not Isnumeric(MyNum) then
MyNum = Val(MyNum)
end if


"Yuvaraj Mani" wrote:

> Auto Conversion of Text to Number is getting failed in excel 2007:
>
> Number values from the Spreadsheet formatted as Text instead of Number that
> leads to Type mismatch error in VBA Program.
>
> How to auto convert the Number values in the excel cells to Number instead
> of Text
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Conversion of Number to is getting Failed in excel 2007 Yuvaraj Mani Microsoft Excel Misc 3 15th Oct 2009 04:27 PM
RE: Excel 2007 General Formating Unwanted Text to Date Conversion Sheeloo Microsoft Excel Misc 1 16th Dec 2008 08:10 PM
Re: Number conversion to text in Ms excel Bob Phillips Microsoft Excel Worksheet Functions 0 20th Nov 2008 08:40 AM
Re: Number conversion to text in Ms excel muddan madhu Microsoft Excel Worksheet Functions 0 20th Nov 2008 07:09 AM
how do i get word conversion number to text in excel (100 = "hundr ismayil Microsoft Excel Programming 3 27th Dec 2007 05:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:07 PM.