Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Number stored as text

Hello All

I have changed my reginal settings to swedish

Then i use the folowing statement in my application
ApExcel.Cells(1, 1).value =FormatCurrency("1,00", 2, vbFalse, vbFalse,
vbTrue)


when i open my Excel sheet, cell 1,1 has a smll green trangle . when i
press it it warns "Number stores as text".
how do i avoid this. I need to store it as number


/Thanks in advance
Prash


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Number stored as text

Try inserting the following before your line of code:

Cells(1, 1).Value = Cells(1, 1).Value * 1
--
Gary''s Student


"Prashwee" wrote:

Hello All

I have changed my reginal settings to swedish

Then i use the folowing statement in my application
ApExcel.Cells(1, 1).value =FormatCurrency("1,00", 2, vbFalse, vbFalse,
vbTrue)


when i open my Excel sheet, cell 1,1 has a smll green trangle . when i
press it it warns "Number stores as text".
how do i avoid this. I need to store it as number


/Thanks in advance
Prash



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Number stored as text

Hi again
I got my all my currancy formats gone.
I can store this as a numbe without changing the formats i got from regional
settings
Thanks in advance
Prash


"Gary''s Student" wrote in message
...
Try inserting the following before your line of code:

Cells(1, 1).Value = Cells(1, 1).Value * 1
--
Gary''s Student


"Prashwee" wrote:

Hello All

I have changed my reginal settings to swedish

Then i use the folowing statement in my application
ApExcel.Cells(1, 1).value =FormatCurrency("1,00", 2, vbFalse, vbFalse,
vbTrue)


when i open my Excel sheet, cell 1,1 has a smll green trangle . when i
press it it warns "Number stores as text".
how do i avoid this. I need to store it as number


/Thanks in advance
Prash





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Number stored as text

Hi, you can do it this way:

range("a1").select ' or cells(1,1).select
selection.numberformat = "0.00" ' this is for 2 digits

Any help under numberformat in Excel.

Henrich

€žPrashwee" napĆ*sal (napĆ*sala):

Hello All

I have changed my reginal settings to swedish

Then i use the folowing statement in my application
ApExcel.Cells(1, 1).value =FormatCurrency("1,00", 2, vbFalse, vbFalse,
vbTrue)


when i open my Excel sheet, cell 1,1 has a smll green trangle . when i
press it it warns "Number stores as text".
how do i avoid this. I need to store it as number


/Thanks in advance
Prash



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Number stored as text Ana via OfficeKB.com Excel Worksheet Functions 3 October 14th 09 01:05 PM
Number stored as text GKW in GA Excel Discussion (Misc queries) 3 August 14th 08 05:53 PM
Functions, Arrays and number/text stored as text pepenacho Excel Worksheet Functions 3 April 23rd 08 08:02 PM
Number stored as text Andrew Clark Excel Discussion (Misc queries) 1 November 8th 05 10:25 PM
Number stored as text sueanne Excel Discussion (Misc queries) 1 March 2nd 05 10:56 PM


All times are GMT +1. The time now is 01:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"