- 帖子
- 155
- 主題
- 1
- 精華
- 0
- 積分
- 200
- 點名
- 4
- 作業系統
- windwos 7
- 軟體版本
- 64bit
- 閱讀權限
- 20
- 註冊時間
- 2017-5-29
- 最後登錄
- 2026-10-25
|
回復 3# swatt
Sub Temp1()
Dim intFileNum%, byttemp As Byte, intCellRow%, pos
intFileNum = FreeFile
intCellRow = 0
fipath = "C:\hello.txt"
Open fipath For Binary Access Read As intFileNum
Do While pos < LOF(intFileNum)
intCellRow = intCellRow + 1
Get intFileNum, , byttemp
pos = Loc(intFileNum)
Cells(1, intCellRow) = Hex(byttemp)
Loop
Close intFileNum
MsgBox "Done."
End Sub |
|