Article ID: 213392 - Last Review: October 11, 2006 - Revision: 3.3 XL2000: Visual Basic Macro to Convert Number to a Different BaseThis article was previously published under Q213392 On This PageSUMMARY
This article contains a sample Microsoft Visual Basic for Applications
function that converts an integer number to any base less than 10.
MORE INFORMATION
The following function is a sample function called "baseconv" that takes two
arguments. The first argument, InputNum, is an integer number to be
converted. The second argument, BaseNum, is the number of the base to
convert InputNum to.
Sample Visual Basic Procedure=baseconv(InputNum, BaseNum) =baseconv(100,2) 1100100 REFERENCESFor more information about creating function procedures in Microsoft Excel, click Microsoft Visual Basic Help on the Help menu, type Writing a Function Procedure in the Office Assistant or the Answer Wizard, and then click Search to view the topic. To access Visual Basic Help:
| Article Translations
|
Back to the top
