|
-
Oct 9th, 2008, 03:35 AM
#1
Thread Starter
Addicted Member
Problem writing to Excel
My [vb6] app inserts data into an Excel spreadsheet but it looks like there's a limit of 255 chars per field
Why is that?
I can paste more than that directly into Excel!
I need to have about 300 chars or so.
(Please don't say use a database - I know I can use a database; and I know a database would be better. I am using a spreadsheet because that's what the 'customer' wants! )
Another light-hearted post from Guru 
-
Oct 9th, 2008, 04:35 AM
#2
Re: Problem writing to Excel
what code are you using to insert the data?
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Oct 9th, 2008, 04:37 AM
#3
Re: Problem writing to Excel
 Originally Posted by Guru
My [vb6] app inserts data into an Excel spreadsheet but it looks like there's a limit of 255 chars per field
Why is that?
I can paste more than that directly into Excel!
I need to have about 300 chars or so.
(Please don't say use a database - I know I can use a database; and I know a database would be better. I am using a spreadsheet because that's what the 'customer' wants! )
This may help (or not): http://support.microsoft.com/kb/213841
-
Oct 9th, 2008, 10:03 AM
#4
Re: Problem writing to Excel
Tysons link should solve it and also explain the difference. Good find
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 9th, 2008, 10:14 AM
#5
Thread Starter
Addicted Member
Re: Problem writing to Excel
Thanks for the replies... I've been a bit tied up with something else today but I'll check it out when I get a chance.
Thanks
Another light-hearted post from Guru 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|