Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default run-time error'-2147352571(8002005)

I have a userform with a textbox that the user can enter or edit data in,
it is then sent to a cell on a worksheet. this data is also retrived by
the textbox when opened. I have excel 2003 at home and it works
flawlessly. But when I use it at work on excel 2000 I get a run-time
error "could not set the value property, type mismatch" It works fine
until to much data is entered and then trying to retrive it. I'm talking
about 3 lines of text is ok but any more I get this error. The cell on
the worksheet has this in it after the error "#value". Any help would be
great, I hope this is not to confusing, thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default run-time error'-2147352571(8002005)


you almost diagnosed it yourself...

when you do not explicitly convert the text to a string data type
excel will pass it as a variant. older versions have problems
with passing long text inside a variant.

try Activecell = Cstr(Textbox)

and you should be able to store longer text (32000 characters) also in
xl97.

note:
when a worksheet contains long text, that text is truncated to 255
when the worksheet is copied.



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


cfii wrote :

I have a userform with a textbox that the user can enter or edit data
in, it is then sent to a cell on a worksheet. this data is also
retrived by the textbox when opened. I have excel 2003 at home and
it works flawlessly. But when I use it at work on excel 2000 I get a
run-time error "could not set the value property, type mismatch" It
works fine until to much data is entered and then trying to retrive
it. I'm talking about 3 lines of text is ok but any more I get this
error. The cell on the worksheet has this in it after the error
"#value". Any help would be great, I hope this is not to confusing,
thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default run-time error'-2147352571(8002005)

Hey that worked sweet. Thanks alot have a good week

Reply
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
Visual Basic Error Run Time Error, Type Mismatch Meg Partridge Excel Discussion (Misc queries) 12 September 10th 08 06:10 PM
Run time error 1004, General ODBC error [email protected] New Users to Excel 0 September 19th 05 01:41 AM
Befuddled with For Next Loop ------ Run - Time Error '13' Type Mismatch Error rdavis7408 Excel Programming 1 August 25th 04 03:54 AM
Code Error - Run Time Error 5 (Disable Cut, Copy & Paste) Tim[_36_] Excel Programming 4 April 23rd 04 02:53 AM
Run time Error -2147352571 when showing a form Ric Payne Excel Programming 2 October 2nd 03 04:48 AM


All times are GMT +1. The time now is 06:04 PM.

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

About Us

"It's about Microsoft Excel"