Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]() |
#2
![]() |
|||
|
|||
![]()
If you want to do it digit by digit you could do something like this
In a 'normal' module: '*********************************************** Function hextobin(byval hexa as string) Select Case hexa Case "0": hextobin = "0000" Case "1": hextobin = "0001" Case "2": hextobin = "0010" Case "3": hextobin = "0011" 'continue until last hexa digit.... ' ' case "F": hextobin = "1111" End Select End function '*********************************************** "Aimran" escribió en el mensaje ... |
#3
![]() |
|||
|
|||
![]()
Rather than rolling your own, use Excel's HEX2BIN() function. You must have
the Analysis Toolpak add-in checked to make this available "Hernandez, Roberto" wrote: If you want to do it digit by digit you could do something like this In a 'normal' module: '*********************************************** Function hextobin(byval hexa as string) Select Case hexa Case "0": hextobin = "0000" Case "1": hextobin = "0001" Case "2": hextobin = "0010" Case "3": hextobin = "0011" 'continue until last hexa digit.... ' ' case "F": hextobin = "1111" End Select End function '*********************************************** "Aimran" escribió en el mensaje ... |
#4
![]() |
|||
|
|||
![]()
Thanks Duke!
I know the Hex2bin function... I was actually trying to 'spread' some example to use the powerful VBA capabilities. "Duke Carey" escribió en el mensaje ... Rather than rolling your own, use Excel's HEX2BIN() function. You must have the Analysis Toolpak add-in checked to make this available "Hernandez, Roberto" wrote: If you want to do it digit by digit you could do something like this In a 'normal' module: '*********************************************** Function hextobin(byval hexa as string) Select Case hexa Case "0": hextobin = "0000" Case "1": hextobin = "0001" Case "2": hextobin = "0010" Case "3": hextobin = "0011" 'continue until last hexa digit.... ' ' case "F": hextobin = "1111" End Select End function '*********************************************** "Aimran" escribió en el mensaje ... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to change the color of all series in an excel chart in one go. | Charts and Charting in Excel | |||
How do I change the default number format in excel? | Excel Worksheet Functions | |||
Excel random number | Excel Discussion (Misc queries) | |||
Excel 2003 random number generator | Excel Discussion (Misc queries) | |||
How to change the color of all series in an excel chart in one go. | Charts and Charting in Excel |