Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 31st, 2011, 12:39 PM
Authorized User
Join Date: Aug 2011
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Copy more than 1024 characters to a cell


I'm trying to copy data from a database into an excel.
However, the problem is for certain columns in my database,
the number of characters exceeds 1024.

So on copying it to an excel, it gives me the "recordset" error.

Can someone please give me a macro of how I can copy and paste
more than 1024 characters into a cell in excel.

Old September 4th, 2011, 10:27 AM
Friend of Wrox
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts

I think you are using Excel 2003 (Excel 2007 and above accepts 32767 characters).

One solution you can is to place it in two columns .. you need to adjust the query to bring that.

C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
Old September 13th, 2011, 07:36 AM
Authorized User
Join Date: Aug 2011
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks Shasur!!
Well I just found out that it was some other problem related..

However I've got another prob.. will post it in a new thread.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy from cell A3 workbookA into cell A3 workbookB mona_upm84 Excel VBA 1 September 5th, 2008 01:31 AM
Displaying last 8 characters in a cell scandalous Excel VBA 1 December 21st, 2007 11:04 PM
Copy data into cell by cell zone Excel VBA 2 September 4th, 2007 11:50 AM
reading first characters from a cell in excel vdriet Excel VBA 2 August 17th, 2003 10:10 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.