ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Auto conversion of the Text to Number Getting Failed in Excel 2007 (https://www.excelbanter.com/excel-programming/434774-auto-conversion-text-number-getting-failed-excel-2007-a.html)

Yuvaraj Mani[_2_]

Auto conversion of the Text to Number Getting Failed in Excel 2007
 
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


Mike H

Auto conversion of the Text to Number Getting Failed in Excel 2007
 
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


joel

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

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



All times are GMT +1. The time now is 07:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com