function called spellnumber

TrustPilot

starstarstarstarstar Excellent

  • Home
  • Courses
  • Promotions
  • Schedule
  • Formats
  • Our Clients

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Function Called SpellNumber

Function Called SpellNumber

resolvedResolved · Medium Priority · Version 2007

Lina has attended:
Excel Intermediate course
Excel Advanced course

Function Called SpellNumber

Hello,

I sued the link to http://support.microsoft.com/kb/213360 to set up the function to convert numbers to words in excel 2010.

We have different currencies and the text always has "Dollar" and "Cent" wording when function Spellnumber is used.

Please advice how can I mac an amendment.
I have a number in cell A1 and currency type in cell B1.
Wording is appearing in A2.

Thanks

RE: function Called SpellNumber

Hi Lina

Thanks for getting in touch. Based on this information and the file we looked at together, I've made the following addition to the code:

Dim CurrentCurrency As String
Dim CurrencyMain As String
Dim CurrencyUnits As String

CurrentCurrency = Sheets("FP").Range("D22").Value

Select Case CurrentCurrency

Case Is = "GBP"
CurrencyMain = "Pound"
CurrencyUnits = "Pence"
Case Is = "USD"
CurrencyMain = "Dollar"
CurrencyUnits = "Cent"
Case Is = "EUR"
CurrencyMain = "Euro"
CurrencyUnits = "Cent"

End Select

Hopefully you can see how you would add another currency: copy the three lines beginning "Case Is..." and modify as required. Let me know if this isn't clear.

One little thing about this, the sheet must be recalculated after changing the drop down. You can achieve this just by editing a cell and pressing enter to force Excel to recalculate, or you can press F9.

I will email you a copy of this later this afternoon so you can see it in the code.

Kind regards

Gary Fenn
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector


 

Excel tip:

The Easiest Way to See a Sum or Average in Excel 2010

Did you know the quickest and most simple way of working out the average or sum of a set of numbers?

Highlight numbers in cells or type some numbers in cells and then look at the status bar at the bottom of the window. Here you will see a display of the average of the numbers, as well as a count of the cells and the sum of these cells.

View all Excel hints and tips


Server loaded in 0.07 secs.