+ Reply to Thread
Results 1 to 5 of 5

Change SpellNumber Macro

  1. #1
    Registered User
    Join Date
    07-15-2019
    Location
    Cape Town, South Africa
    MS-Off Ver
    MS Office Professional Plus 2010
    Posts
    2

    Change SpellNumber Macro

    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.

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Change SpellNumber Macro

    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.

  3. #3
    Registered User
    Join Date
    07-15-2019
    Location
    Cape Town, South Africa
    MS-Off Ver
    MS Office Professional Plus 2010
    Posts
    2

    Re: Change SpellNumber Macro

    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

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Change SpellNumber Macro

    Change the part noted below to add 'en ' and I think it then works:
    Please Login or Register  to view this content.
    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').
    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.

  5. #5
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Change SpellNumber Macro

    Hallo daar Johan...

    (for my language)
    I am assuming this to be Afrikaans...Very tricky...
    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...
    Attached Files Attached Files
    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!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Spellnumber
    By Williams in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 02-16-2020, 03:34 AM
  2. Spellnumber
    By tushararora in forum Excel General
    Replies: 6
    Last Post: 11-26-2015, 04:23 AM
  3. [SOLVED] Spellnumber
    By RIZVI in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2015, 01:13 AM
  4. Spellnumber
    By manjunath s j in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-27-2012, 01:19 AM
  5. SPELLNUMBER
    By Kulin Shah in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2006, 01:40 PM
  6. spellnumber
    By Kulin Shah in forum Excel General
    Replies: 1
    Last Post: 01-10-2006, 09:25 AM
  7. spellnumber twice
    By nowfal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-10-2005, 06:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1