Professional Documents
Culture Documents
Sub Bin2dec
Sub Bin2dec
Cells(3, 1) = dec
hex01 = "A"
End If
hex01 = "B"
End If
hex01 = "C"
End If
If (hex01 = 13) Then
hex01 = "D"
End If
hex01 = "E"
End If
hex01 = "F"
End If
Cells(2, 1) = hex01
hex02 = "A"
End If
hex02 = "B"
End If
If (hex02 = 12) Then
hex02 = "C"
End If
hex02 = "D"
End If
hex02 = "E"
End If
hex02 = "F"
End If
Cells(2, 5) = hex02
hex03 = "A"
End If
End If
hex03 = "C"
End If
hex03 = "D"
End If
hex03 = "E"
End If
hex03 = "F"
End If
Cells(2, 9) = hex03
hex04 = "A"
End If
hex04 = "B"
End If
hex04 = "C"
End If
hex04 = "D"
End If
hex04 = "E"
End If
hex04 = "F"
End If
Sub des2bin()
des = Cells(5, 1)
des01 = Cells(5, 1)
hex01 = ""
bin = ""
des = des \ 2
Wend
Cells(7, 1) = bin
Cells(6, 1) = hex01
End Sub