Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Format Number as Arabic (Saudi Arabai) inside text

Hello!

How I can format a number with a text

Range("A2") .NumberFormat = "[$-2000000]#0,000.00"

If I want " this number is 2000" then

something like
Range("A2") ="This number is " & format(2000, "[$-2000000]#0,000.00")

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Format Number as Arabic (Saudi Arabai) inside text

maybe something like

Range("A2").NumberFormat = """this number is ""$#,##0.0"
columns(1).Autofit

--
Regards,
Tom Ogilvy


"Abdul" wrote:

Hello!

How I can format a number with a text

Range("A2") .NumberFormat = "[$-2000000]#0,000.00"

If I want " this number is 2000" then

something like
Range("A2") ="This number is " & format(2000, "[$-2000000]#0,000.00")

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Format Number as Arabic (Saudi Arabai) inside text

Thanks tTom,

It wont work
when I say

Range("A2") .NumberFormat = "[$-2000000]#0,000.00"

Then the number I input in A2 will be changing to Hindi (Arabic(Saudi
Arabia)) format

I want add some text to A2 using code with a number and the number
should be in Hindi(Arabic-saudi arabia) format

Thanks


On Mar 13, 3:25 pm, Tom Ogilvy
wrote:
maybe something like

Range("A2").NumberFormat = """this number is ""$#,##0.0"
columns(1).Autofit

--
Regards,
Tom Ogilvy

"Abdul" wrote:
Hello!


How I can format a number with a text


Range("A2") .NumberFormat = "[$-2000000]#0,000.00"


If I want " this number is 2000" then


something like
Range("A2") ="This number is " & format(2000, "[$-2000000]#0,000.00")


Thanks



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Format Number as Arabic (Saudi Arabai) inside text

Sub ABC()
Range("A2").NumberFormat = _
"\T\h\i\s\ \n\u\m\b\e\r\ \i\s\ [$-2000000]#0,000.00"
End Sub

worked for me. If you want the text string to be in Saudi/Arabic as well,
then I can't say.

--
Regards,
Tom Ogilvy


"Abdul" wrote:

Thanks tTom,

It wont work
when I say

Range("A2") .NumberFormat = "[$-2000000]#0,000.00"

Then the number I input in A2 will be changing to Hindi (Arabic(Saudi
Arabia)) format

I want add some text to A2 using code with a number and the number
should be in Hindi(Arabic-saudi arabia) format

Thanks


On Mar 13, 3:25 pm, Tom Ogilvy
wrote:
maybe something like

Range("A2").NumberFormat = """this number is ""$#,##0.0"
columns(1).Autofit

--
Regards,
Tom Ogilvy

"Abdul" wrote:
Hello!


How I can format a number with a text


Range("A2") .NumberFormat = "[$-2000000]#0,000.00"


If I want " this number is 2000" then


something like
Range("A2") ="This number is " & format(2000, "[$-2000000]#0,000.00")


Thanks




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Format Number as Arabic (Saudi Arabai) inside text

Thanks

How I can Add a text and number using code?

A1 is empty now.

I want to add "This number is 2000" in A1 thru VBA and the number tobe
formated in Hindi ([$-2000000]#0,000.00")

Thanks


On Mar 13, 6:08 pm, Tom Ogilvy
wrote:
Sub ABC()
Range("A2").NumberFormat = _
"\T\h\i\s\ \n\u\m\b\e\r\ \i\s\ [$-2000000]#0,000.00"
End Sub

worked for me. If you want the text string to be in Saudi/Arabic as well,
then I can't say.

--
Regards,
Tom Ogilvy

"Abdul" wrote:
Thanks tTom,


It wont work
when I say


Range("A2") .NumberFormat = "[$-2000000]#0,000.00"


Then the number I input in A2 will be changing to Hindi (Arabic(Saudi
Arabia)) format


I want add some text to A2 using code with a number and the number
should be in Hindi(Arabic-saudi arabia) format


Thanks


On Mar 13, 3:25 pm, Tom Ogilvy
wrote:
maybe something like


Range("A2").NumberFormat = """this number is ""$#,##0.0"
columns(1).Autofit


--
Regards,
Tom Ogilvy


"Abdul" wrote:
Hello!


How I can format a number with a text


Range("A2") .NumberFormat = "[$-2000000]#0,000.00"


If I want " this number is 2000" then


something like
Range("A2") ="This number is " & format(2000, "[$-2000000]#0,000.00")


Thanks





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Format Number as Arabic (Saudi Arabai) inside text

A1 could be a formula ="This number is " & TEXT(A2,yourformat).
An equivalent VBA statement would be
Range("A1") = "This number is " & FORMAT(Range("A2"),yourformat).

Carl

On Mar 14, 4:18 am, "Abdul" wrote:
Thanks

How I can Add a text and number using code?

A1 is empty now.

I want to add "This number is 2000" in A1 thru VBA and the number tobe
formated in Hindi ([$-2000000]#0,000.00")

Thanks

On Mar 13, 6:08 pm, Tom Ogilvy
wrote:



Sub ABC()
Range("A2").NumberFormat = _
"\T\h\i\s\ \n\u\m\b\e\r\ \i\s\ [$-2000000]#0,000.00"
End Sub


worked for me. If you want the text string to be in Saudi/Arabic as well,
then I can't say.


--
Regards,
Tom Ogilvy


"Abdul" wrote:
Thanks tTom,


It wont work
when I say


Range("A2") .NumberFormat = "[$-2000000]#0,000.00"


Then the number I input in A2 will be changing to Hindi (Arabic(Saudi
Arabia)) format


I want add some text to A2 using code with a number and the number
should be in Hindi(Arabic-saudi arabia) format


Thanks


On Mar 13, 3:25 pm, Tom Ogilvy
wrote:
maybe something like


Range("A2").NumberFormat = """this number is ""$#,##0.0"
columns(1).Autofit


--
Regards,
Tom Ogilvy


"Abdul" wrote:
Hello!


How I can format a number with a text


Range("A2") .NumberFormat = "[$-2000000]#0,000.00"


If I want " this number is 2000" then


something like
Range("A2") ="This number is " & format(2000, "[$-2000000]#0,000.00")


Thanks- Hide quoted text -


- Show quoted text -



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
Convert number to arabic(Hindi) format with text Abdul[_2_] Excel Programming 1 March 13th 07 12:30 PM
Convert number to arabic(Hindi) format with text Abdul[_2_] Excel Programming 0 March 13th 07 10:42 AM
How do I get Arabic numbers converted to English text format? Kantoo Excel Worksheet Functions 1 March 6th 06 04:00 AM
Convert arabic number to english text TSK Excel Discussion (Misc queries) 2 July 9th 05 10:24 AM
converting an arabic number into a spellout text Widodo Excel Worksheet Functions 3 April 18th 05 01:18 PM


All times are GMT +1. The time now is 10:47 AM.

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

About Us

"It's about Microsoft Excel"