LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 238
Default Why does this hang up?

Why does this hang up? It works on 16k files. Not on 32k and above. It
loads about 200 lines and then seems go get stuck in a loop.

Dim FileType As String
If FileType = "bin" Then
Const ForReading = 1, ForWriting = 2, ForAppending = 3
Const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0
Dim fs, f, ts, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(FileName)
Set ts = f.OpenAsTextStream(ForReading, TristateUseDefault)
ColumnCount = 3
RowCount = 2
Do While ts.atendofstream = False
Hexbyte = Asc(ts.Read(1))
Cells(RowCount, ColumnCount) = Hex(Hexbyte)
RowCount = RowCount + 1
Loop
ts.Close
MsgBox "bin"
Else
End If
End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application Hang with Excel Bennett Marco Excel Discussion (Misc queries) 6 November 5th 09 01:21 PM
Excel Application hang Ray Excel Discussion (Misc queries) 1 September 18th 09 12:53 AM
Spreadsheets hang! winniegirl29 Excel Discussion (Misc queries) 0 April 12th 09 08:54 AM
excel hang inenewbl Excel Discussion (Misc queries) 1 July 13th 06 12:37 PM
hang when formula bar open Stewart[_4_] Excel Programming 5 July 30th 04 08:07 AM


All times are GMT +1. The time now is 12:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"