Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default Converting NumberFormatLocal to NumberFormat

Hi Guys,


I need to convert strings containing local numberformats into English
numberformats.

And, currently, I'm using a cell as 'middleman' :-)

Range("A1").NumberFormatLocal = Local_Format_Name
English_Format_Name = Range("A1").NumberFormat

Is it possible to do this convert without using a worksheet at all?


CE


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Converting NumberFormatLocal to NumberFormat

Hallo Charlotte,

Am Sat, 5 Oct 2013 17:10:00 +0200 schrieb Charlotte E.:

I need to convert strings containing local numberformats into English
numberformats.


I use this function to translate local formulas to into english
formulas. That will also convert the numberformat.
Your string in A1 then call the function into the sheet with
=English(A1)

Function English(rngC As Range) As String
English = rngC.Formula
End Function


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default Converting NumberFormatLocal to NumberFormat

Thanks, Claus, but that does just what I'm already doing...

....I wanted to avoid using a cell in the process.



CE


"Claus Busch" wrote in message
...
Hallo Charlotte,

Am Sat, 5 Oct 2013 17:10:00 +0200 schrieb Charlotte E.:

I need to convert strings containing local numberformats into English
numberformats.


I use this function to translate local formulas to into english
formulas. That will also convert the numberformat.
Your string in A1 then call the function into the sheet with
=English(A1)

Function English(rngC As Range) As String
English = rngC.Formula
End Function


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Converting NumberFormatLocal to NumberFormat

Hi Charlotte

VBA is not very helpful when it comes to regional settings. Afaik no, the
way, at least the fast and easy way, to do this is through the worksheet
interface.

Best wishes Harald

"Charlotte E." skrev i melding
...
Thanks, Claus, but that does just what I'm already doing...

...I wanted to avoid using a cell in the process.



CE


"Claus Busch" wrote in message
...
Hallo Charlotte,

Am Sat, 5 Oct 2013 17:10:00 +0200 schrieb Charlotte E.:

I need to convert strings containing local numberformats into English
numberformats.


I use this function to translate local formulas to into english
formulas. That will also convert the numberformat.
Your string in A1 then call the function into the sheet with
=English(A1)

Function English(rngC As Range) As String
English = rngC.Formula
End Function


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default Converting NumberFormatLocal to NumberFormat

Thanks, Harald,

I'll continue to use my 'worksheet way'.

At least I did it the right way for once :-)


CE


"Harald Staff" wrote in message
...
Hi Charlotte

VBA is not very helpful when it comes to regional settings. Afaik no, the
way, at least the fast and easy way, to do this is through the worksheet
interface.

Best wishes Harald

"Charlotte E." skrev i melding
...
Thanks, Claus, but that does just what I'm already doing...

...I wanted to avoid using a cell in the process.



CE


"Claus Busch" wrote in message
...
Hallo Charlotte,

Am Sat, 5 Oct 2013 17:10:00 +0200 schrieb Charlotte E.:

I need to convert strings containing local numberformats into English
numberformats.

I use this function to translate local formulas to into english
formulas. That will also convert the numberformat.
Your string in A1 then call the function into the sheet with
=English(A1)

Function English(rngC As Range) As String
English = rngC.Formula
End Function


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2









  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Converting NumberFormatLocal to NumberFormat

For once? You are a master, Charlotte. Keep on sharing.


"Charlotte E." skrev i melding
...
Thanks, Harald,

I'll continue to use my 'worksheet way'.

At least I did it the right way for once :-)


CE



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default Converting NumberFormatLocal to NumberFormat

*Blushing*

Thanks, Harald, but still a lot to learn :-)


"Harald Staff" wrote in message
...
For once? You are a master, Charlotte. Keep on sharing.


"Charlotte E." skrev i melding
...
Thanks, Harald,

I'll continue to use my 'worksheet way'.

At least I did it the right way for once :-)


CE





  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Converting NumberFormatLocal to NumberFormat

Ahare it with us!

Am 08.10.2013 08:32, schrieb Charlotte E.:
*Blushing*

Thanks, Harald, but still a lot to learn :-)


"Harald Staff" wrote in message
...
For once? You are a master, Charlotte. Keep on sharing.


"Charlotte E." skrev i melding
...
Thanks, Harald,

I'll continue to use my 'worksheet way'.

At least I did it the right way for once :-)


CE






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
Excel automation through .NET Interop: NumberFormat property looks like NumberFormatLocal martin durtschi Excel Programming 4 May 13th 14 07:39 PM
Cell Format Function "NumberFormatLocal" in VBA ppt_puppet Excel Programming 1 January 4th 10 06:30 AM
NumberFormat vs. NumberFormatLocal [email protected] Excel Programming 2 March 10th 06 06:58 PM
NumberFormat vs NumberFormatLocal Martin V Excel Programming 1 September 3rd 04 12:51 AM
Copy with NumberFormatLocal included Patrick Molloy[_3_] Excel Programming 0 July 17th 03 07:46 AM


All times are GMT +1. The time now is 09:36 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"