- ©«¤l
- 37
- ¥DÃD
- 11
- ºëµØ
- 0
- ¿n¤À
- 87
- ÂI¦W
- 0
- §@·~¨t²Î
- window7
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-3-14
- ³Ì«áµn¿ý
- 2022-5-30
|
¦^´_ 1# swatt
¸É¥R¤@¤U,¦¹µ{¦¡ªº¥Øªº¬On¥Hbyte¬°ªø«×,±N¥ô·NÀɮתºì©l½X(ASCII)¼g¨ìexcel,
°ò¥»¤Wµ{¦¡¬O¥i¦æªº¡A¦ý´N¬O¦b³Ì«á±·|¦h¥X¤@Óbyte¡A³oÓbyte¤@©w¬O0,
§ä¤£¥X°ÝÃD¦bþ¸Ì¡A½Ð¤j¤jÌÀ°¦£¤@¤U¡A·PÁÂ~- 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
½Æ»s¥N½X |
|