![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 7
|
Hi,
I've got a VB6 application that takes data from an ADO recordset and copies it to an invisible Excel spreadsheet using the Windows clipboard. I've read that this is the fastest way to copy large datasets into an Excel worksheet. My problem is that while this application runs, my users are also using the Windows clipboard in other applications. Thus they can inadvertently change the contents that are pasted into the hidden spreadsheet or are surprised when the data that they are manually pasting is changed to the data that's destined for the spreadsheet. Am I forced to give up on using the clipboard for this data transfer or is there a way of protecting the clipboard contents? Thanks in advance. Bill [ This Message was edited by: billsox on 2002-04-07 18:54 ] |
|
|
|
|
|
#2 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Hi Bill
You have been mislead somewhat, the fastest way (if possible) is to bypass the clipboad altogether. EG Sheet1.Range("A1:100").Copy Destination:= Sheet2.Range("A65536").end(xlup) Of course, I am not sure if this can be used in your specific intstance? |
|
|
|
|
|
#3 | |
|
New Member
Join Date: Apr 2002
Posts: 7
|
Quote:
Bill |
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Just curious why you need a middle man on this one? Why not send it straight to Excel?
Tom |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|