Hi, I need to change the NumberToWord Macro to write e.g. "One Hundred Seven and Twenty" (for my language) for 127 and NOT "One Hundred Twenty Seven" like in English.
Please advise
Thank you.
Hi, I need to change the NumberToWord Macro to write e.g. "One Hundred Seven and Twenty" (for my language) for 127 and NOT "One Hundred Twenty Seven" like in English.
Please advise
Thank you.
I assume you mean the one available on the MS site which gives you 'one hundred and twenty three dollars and forty five cents' or similar?
If so, try this - it's my amended version with euros and cents, with Dutch numbers - probably similar to Afrikaans if that's what you need.
I haven't tested it a lot, but it seems to be okay.
![]()
Please Login or Register to view this content.
Regards,
Aardigspook
I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
You don't need to give me rep if I helped, but a thank-you is nice.
Hi, thanx for the reply.
I've changed it but still sitting with a problem.
In my language the wording is as follows: All numbers from 001 - 019 and all x01 - x19 are written as "en" and the amount
e.g. one hundred en(and) one, ....... one hundred en(and) nineteen, ....... nine hundred en(and) nineteen.
I’ve managed to change the "one hundred en(and) twenty" up to "one hundred en(and) ninety".
I'll be glad if somebody can help me if possible.
Thanx in advance
Johan
Change the part noted below to add 'en ' and I think it then works:
The original code is written to give the written numbers the way the Americans do it (example 214 = 'two hundred fourteen'). In the UK we add 'and' just as you want ('two hundred and fourteen').![]()
Please Login or Register to view this content.
I think the amendment above will do what you want - I've quickly tested a few examples - but if it doesn't then please ask again. I'll then have to call in some expert VBA help - I'm just a novice with VBA.
Hallo daar Johan...
I am assuming this to be Afrikaans...Very tricky...(for my language)
Have adapted code to suite your requirements...The attached seems to work...
Am not always available as I'm busy with a project so can only follow up on your response later again...
Last edited by Sintek; 07-19-2019 at 05:24 AM.
Good Luck...
I don't presume to know what I am doing, however, just like you, I too started somewhere...
One-day, One-problem at a time!!!
If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
Also....Add a comment if you like!!!!
And remember...Mark Thread as Solved...
Excel Forum Rocks!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks