» Sum the digits numbers in a cell using custom VBA function in Microsoft Excel
CATEGORY - Custom Functions in VBA , Custom Functions
VERSION - All Microsoft Excel Versions
Function SumDigits(Number)
Dim i As Integer
For i = 1 To Len(Number)
SumDigits = SumDigits + Val(Mid(Number, i, 1))
Next i
End Function
To test the function:
Book Store:
Recommended Books:
- The 11 Immutable Laws of Internet Branding
- Financial Risk Manager Handbook, Second Edition
- What the IRS Doesn't Want You to Know: A Cpa Reveals the Tricks of the Trade
- Microsoft Outlook Version 2002 Step by Step (With CD-ROM)
- Mastering Excel 2000 (for beginner)
- Microsoft Excel VBA Programming for the Absolute Beginner
No comments have been submitted.

