» 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 Essential 55: An Award-Winning Educator's Rules for Discovering the Successful Student in Every Child
- Essentials of Accounting and Post Test Booklet 8, Eighth Edition
- Wall Street Journal Guide to Understanding Money and Investing
- Microsoft Excel 2002 Simply Visual
- The Sweet Potato Queens' Big-Ass Cookbook and Financial Planner
- Word 2002: The Complete Reference
No comments have been submitted.

