Syntax Error with SpellNumber function in Excel 2013

Anonymous
2019-04-05T17:45:07+00:00

I had set up a template with the SpellNumber function in Excel 2010, which worked just fine.  When attempting to use it in Excel 2013, I receive the following syntax error:

The function was created using the steps in 

https://support.office.com/en-gb/article/Convert-numbers-into-words-a0d166fb-e1ea-4090-95c8-69442cd55d98

I can't seem to find information on how to correct this.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. HansV 462.4K Reputation points MVP Volunteer Moderator
    2019-04-05T18:31:13+00:00

    The underscore in the offending line was intended to be a continuation character, and the rest of the line should have been on the next line.

    Remove the underscore _ to get rid of the error.

    40 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2019-04-18T18:00:36+00:00

    Thank you.  That seems to have removed one error, but not I'm receiving the following "Argument not optional" error:

    I'm at a loss.  Please let me know if there is a way to correct this, or whether there is another function code I should be using to convert numbers to words.

    Thanks.

    23 people found this answer helpful.
    0 comments No comments
  3. HansV 462.4K Reputation points MVP Volunteer Moderator
    2019-04-19T08:54:57+00:00

    Please remove the empty line below the line in red.

    13 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2019-04-24T18:01:48+00:00

    Unfortunately, this did not solve the problem.

    14 people found this answer helpful.
    0 comments No comments
  5. HansV 462.4K Reputation points MVP Volunteer Moderator
    2019-04-24T18:31:24+00:00

    Sorry, my mistake. Remove (delete) the empty line between

    Result = Result & GetDigit _

    and

    (Right(TenstText, 1)) ' Retrieve ones place.

    88 people found this answer helpful.
    0 comments No comments