Error 1004 ...

  • Thread starter Thread starter Russell Potter
  • Start date Start date
R

Russell Potter

I'm trying to load , using VB, the contents of an online pronunciation
dictionary into an Excel spreadsheet (since I thought a spreadsheet
was a nice, easy format on which my completely computer non-
literate colleague could do his specialised processing), so the resulting
spreadsheet, when completed, would have something like 150,000
rows ...

Trouble is, my loading program reaches what seemingly random point
in its processing before crashing out with one of two "application-defined
errors" (and the actual error also seems to vary randomly): nos. 1004 and
25060 (or something like that: my memory for numbers is pretty awful :-)

I don't know how to look up the description of a error from its number,
so I was hoping someone with a hell of a lot more knowledge about Excel
than myself could tell me the cause(s) (and possible work-arounds for)
these problems. Could these errors possibly be caused by the huge size
of the spreadsheet?

Another quick (unrelated) question: how many bits are in a VB 'Long' type?

Russell
 
Hi Russell,
I'm trying to load , using VB, the contents of an online pronunciation
dictionary into an Excel spreadsheet (since I thought a spreadsheet
was a nice, easy format on which my completely computer non-
literate colleague could do his specialised processing), so the resulting
spreadsheet, when completed, would have something like 150,000
rows ...

Are you sure the errors mentioned are not cause by the simple fact that
Excel only has 65536 rows?

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com
 
Excel has a maximum of 65536 rows, so you'll likely have to break up the
source file. There are lots of workarounds in the archives:

http://groups.google.com/advanced_group_search?q=group:*excel*

but for a one-time import, using a text editor to divide the file into
three files seems easier.


As for bits in a VB Long. Looking up Long in VB Help (try it - it's
pretty good for versions before XL03):
Long (long integer) variables are stored as signed 32-bit (4-byte) numbers
ranging in value from -2,147,483,648 to 2,147,483,647.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Error 1004 on Range.Text with AutoFilter 3
Error '1004' 4
error 1004 6
Rnd() 1004 error 6
"Run-time error '1004' 5
Run-time error 1004 3
runtime error code 1004 2
Simple Answer ? 2

Back
Top