----------------------------------------------------------------
Sub Temp1()
Application.ScreenUpdating = False
Dim intFileNum%, bytTemp As Byte, intCellRow%
intFileNum = FreeFile
intCellRow = 0
fipath = "C:\hello.txt"
Open fipath For Binary Access Read As intFileNum
Do While Not EOF(intFileNum)
intCellRow = intCellRow + 1
Get intFileNum, , bytTemp
Cells(1, intCellRow) = Hex(bytTemp) '' convert dec to hex
Loop
Close intFileNum
Application.ScreenUpdating = True
MsgBox "Done."
End Sub
-------------------------------------------------------------------------------------------------
[attach]32478[/attach]作者: swatt 時間: 2020-8-27 11:00