Question: Write a VBA code to convert an arbitrary decimal integer number to equivalent binary number. Specific requirements: 1. Use InputBox function to request the input
Write a VBA code to convert an arbitrary decimal integer number to equivalent binary number.
Specific requirements:
1. Use InputBox function to request the input for an arbitrary decimal integer;
2. Convert the decimal integer to equivalent binary number;
3. Return the binary number in a message box.
Below functions and symbol may be useful in your VBA code: Cstr( ): can convert a number in ( ) to a string; Int( ): can trim off fractional part and just return integer part of the number in ( ); & : can combine multiple strings into one string.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
