PC Review


Reply
Thread Tools Rate Thread

Clearing Office clipboard 2010

 
 
avi
Guest
Posts: n/a
 
      14th Jul 2011
Hello,

I've seen many posts regarding the subjects but do not feel that I
know how to clear programatically the Office/Excel clipboard

I'm looking for a code that will do a similar operation as clearing
manually from the clipboard window in Excel 2010

Has the issue a known and robust solution?

Best regards
Avi
 
Reply With Quote
 
 
 
 
GS
Guest
Posts: n/a
 
      14th Jul 2011
on 7/14/2011, avi supposed :
> Hello,
>
> I've seen many posts regarding the subjects but do not feel that I
> know how to clear programatically the Office/Excel clipboard
>
> I'm looking for a code that will do a similar operation as clearing
> manually from the clipboard window in Excel 2010
>
> Has the issue a known and robust solution?
>
> Best regards
> Avi


Are you saying that...

Application.CutCopyMode = False

...does not clear the clipboard in XL2010?

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


 
Reply With Quote
 
Mike S
Guest
Posts: n/a
 
      23rd Jul 2011
On 7/13/2011 11:32 PM, avi wrote:
> Hello,
>
> I've seen many posts regarding the subjects but do not feel that I
> know how to clear programatically the Office/Excel clipboard
>
> I'm looking for a code that will do a similar operation as clearing
> manually from the clipboard window in Excel 2010
>
> Has the issue a known and robust solution?
>
> Best regards
> Avi


Would you consider avoiding the use of the clipboard? Would this work
for your needs?

http://excelexperts.com/copy-values-vba

Bypassing Clipboard while copying values or formula in Excel

Submitted by Vishesh on 9 January, 2010 - 18:04

In VBA, to Copy Values from range A1:A5 to B1 you will generally write

Sheet1.Range("A1:A5").Copy
Sheet1.Range("B1").PasteSpecial xlPasteValues

Another method: write the following function in the code window

Sub CopyValues(rngSource As Range, rngTarget As Range)
rngTarget.Resize(rngSource.Rows.Count, rngSource.Columns.Count).Value
= rngSource.Value
End Sub

and call the above function using the following line of code wherever
you need to paste values

Call CopyValues(Sheet1.Range("A1:A5"), Sheet1.Range("B1"))

The source or target can be anywhere on any sheet or any workbook Copy
Formula You can use the similar approach like following:

Sheet1.Range("A3:A5").Formula = Sheet1.Range("A2").FormulaR1C1

Advantage of using this method of Copying Value and Formula

1. No use of Clipboard - just assigning values/formula; hence it is faster.

2. You must have observed screen flickering in some of the Excel Tools
which at times is there even after using screenupdating - but using this
there is no screen flicker.

3. Less use of memory.




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Office 2010 & Outlook 2010 and Business Contact Manager AvrahamC Microsoft Outlook BCM 0 4th Jan 2010 01:56 PM
stop office from clearing the clipboard on load? frumbert Microsoft Excel Discussion 1 18th Aug 2009 03:22 PM
clearing the office clipboard in vba =?Utf-8?B?bXRhdGxvdw==?= Microsoft Excel Programming 11 30th Jul 2007 05:20 PM
Transfer clipboard from Task pane clipboard(office?) content to Excel (windows?) clipboard? tskogstrom Microsoft Excel Programming 2 6th Mar 2007 12:50 PM
Clearing "Microsoft Office" clipboard Paula Microsoft Excel Misc 5 24th Aug 2004 10:15 PM


Features
 

Advertising
 

Newsgroups
 


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