Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Help with Clipboard

I am having a problem with the clipboard - i am copying a large set of
data from one workbook to another and am not getting consistent
results with the data that comes out of the clipboard.

I have two workbooks open - lets call them OLD and NEW - i go to a
sheeta in OLD and highlight the data from A1:T1144. I Control C to
copy the data and switch to the NEW workbook - I select sheeta in the
new workbook and select cell A1 - i paste the data using ctrl v - this
is where it gets strange . If the OLD workbook is open resulting data
in the NEW wb is exactly as in the OLD wb.

However if i close the OLD wb before i paste the data into the NEW wb
i lose 2 columns of data - As i close the OLD wb i get a message
asking if i want to keep the data in the clipboard and i answer yes
to keep the data. Also if i try to do a paste special i have the
option of copying the data as text or unicode only -

Any thoughts as to why this happens

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Help with Clipboard

I am not certain of the technical reasons but I am well aware of the problem.
I think it is a memory thing. When the 2 workbooks are open, I think that all
that is really in memory is the pointers to the source data but when you
close the source, all of the data needs to be placed in memory and if
insufficient memory then not all is copied.

The answer is as you have said; keep the source workbook open until you have
pasted.

--
Regards,

OssieMac


"vitorjose" wrote:

I am having a problem with the clipboard - i am copying a large set of
data from one workbook to another and am not getting consistent
results with the data that comes out of the clipboard.

I have two workbooks open - lets call them OLD and NEW - i go to a
sheeta in OLD and highlight the data from A1:T1144. I Control C to
copy the data and switch to the NEW workbook - I select sheeta in the
new workbook and select cell A1 - i paste the data using ctrl v - this
is where it gets strange . If the OLD workbook is open resulting data
in the NEW wb is exactly as in the OLD wb.

However if i close the OLD wb before i paste the data into the NEW wb
i lose 2 columns of data - As i close the OLD wb i get a message
asking if i want to keep the data in the clipboard and i answer yes
to keep the data. Also if i try to do a paste special i have the
option of copying the data as text or unicode only -

Any thoughts as to why this happens

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with Clipboard


I would try using pastespecial. I suspect that the Pastespecial options
are going to show up differently when the workbook is opened verses
closed. Ossie is probably right that when the workbook is opened it is
point to the old workbook which has the formating of the cells
accessable. When you cclose the workbook the either the formating is
being eliminated or the options that paste is using is different.

Microsoft programs have algorithms built in the make decision
automatically. These decision making algorithms don't always make the
decisions you want them to make. The problem may be that the paste
option is changing when the workbook is closed. The default condition
for a paste is to paste everything when using just excel. When you
close the workbook the source workbook credentials are lost. So the
algorithm doesn't know if the data came from a workbook or maybe word
document. So the paste operation picks the best formating style to
perform that paste operation.


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=178994

Microsoft Office Help

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
Where does Ms XL store the clipboard ? or where does MS Windowsstore clipboard ? Subu Setting up and Configuration of Excel 0 May 5th 09 01:20 PM
Clipboard empty but still get waring that clipboard is full Steve Excel Discussion (Misc queries) 0 June 17th 08 09:05 PM
Transfer clipboard from Task pane clipboard(office?) content to Excel (windows?) clipboard? tskogstrom Excel Programming 2 March 6th 07 12:50 PM
Restore clipboard from Task pane clipboard content? tskogstrom Excel Programming 0 January 30th 07 10:48 AM
ClearContents or ClearFormats also clears Clipboard. How can I keep the clipboard? [email protected] Excel Programming 5 December 16th 05 02:30 AM


All times are GMT +1. The time now is 08:11 AM.

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"