Run-time error '5025'
Buffer for return string is too small
Opening a Word7 document and copy string to clipboard.
Dim outfile as String
or outfile as String * 5000
wd.EditSelectAll
outfile = wd.Selection$() 'error here
Printable View
Run-time error '5025'
Buffer for return string is too small
Opening a Word7 document and copy string to clipboard.
Dim outfile as String
or outfile as String * 5000
wd.EditSelectAll
outfile = wd.Selection$() 'error here
dim as a single
string can only hold so many characters
------------------
DiGiTaIErRoR
VB, QBasic, Iptscrae, HTML
Quote: There are no stupid questions, just stupid people.
I think the limit for a string is 64K.
------------------
Marty
Why is it called lipstick if you can still move your lips?
64K is the limit for a Fixed Length String, as you are using. A Variable Length String can hold upto 2 Billion Characters.
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]