Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 325
Default Preserve contents of Clipboard when altering display options

Good morning, all,

I notice that if I copy something to the clipboard, then alter any of the
application or window display settings, the contents of the Clipboard are
lost.

This happens in "Normal" Excel too, as well as in VBA - can anyone suggest a
way of somehow preserving the contents of the clipboard?
I'm using Excel 2003.

Thanks in advance

Pete
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Preserve contents of Clipboard when altering display options

don't copy to the clip board until the next action is to paste. Make your
changes before copying.



--
Regards,
Tom Ogilvy

"Peter Rooney" wrote in message
...
Good morning, all,

I notice that if I copy something to the clipboard, then alter any of the
application or window display settings, the contents of the Clipboard are
lost.

This happens in "Normal" Excel too, as well as in VBA - can anyone suggest

a
way of somehow preserving the contents of the clipboard?
I'm using Excel 2003.

Thanks in advance

Pete



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 325
Default Preserve contents of Clipboard when altering display options

Tom,

You helped me out with this one first time round - only problem is, in my
latest app, the problem isn't occurring any more, but the code is basicslly
the same!

I'll have to rework it in the manner you suggest.

Thanks

Pete



"Tom Ogilvy" wrote:

don't copy to the clip board until the next action is to paste. Make your
changes before copying.



--
Regards,
Tom Ogilvy

"Peter Rooney" wrote in message
...
Good morning, all,

I notice that if I copy something to the clipboard, then alter any of the
application or window display settings, the contents of the Clipboard are
lost.

This happens in "Normal" Excel too, as well as in VBA - can anyone suggest

a
way of somehow preserving the contents of the clipboard?
I'm using Excel 2003.

Thanks in advance

Pete




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Preserve contents of Clipboard when altering display options

If it is in VBA you could store the clipboard in a variable and restore from
that after your code.

RBS

"Peter Rooney" wrote in message
...
Good morning, all,

I notice that if I copy something to the clipboard, then alter any of the
application or window display settings, the contents of the Clipboard are
lost.

This happens in "Normal" Excel too, as well as in VBA - can anyone suggest
a
way of somehow preserving the contents of the clipboard?
I'm using Excel 2003.

Thanks in advance

Pete


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 325
Default Preserve contents of Clipboard when altering display options

That would be ideal, if you happened to know how I reference the clipboard
contents in VBQ!

Thanks!

Pete



"RB Smissaert" wrote:

If it is in VBA you could store the clipboard in a variable and restore from
that after your code.

RBS

"Peter Rooney" wrote in message
...
Good morning, all,

I notice that if I copy something to the clipboard, then alter any of the
application or window display settings, the contents of the Clipboard are
lost.

This happens in "Normal" Excel too, as well as in VBA - can anyone suggest
a
way of somehow preserving the contents of the clipboard?
I'm using Excel 2003.

Thanks in advance

Pete





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Preserve contents of Clipboard when altering display options

It is quite easy with the Windows API. Do a search on Google for
something
like setclipboard or getclipboard and Excel and you will have the code
in no time.
If you have VB6 or if you know somebody who has you could make a very
simple
ActiveX dll that does the same. It is easy in VB6 as that has a
Clipboard object.

RBS


Peter Rooney wrote:
That would be ideal, if you happened to know how I reference the clipboard
contents in VBQ!

Thanks!

Pete



"RB Smissaert" wrote:

If it is in VBA you could store the clipboard in a variable and restore from
that after your code.

RBS

"Peter Rooney" wrote in message
...
Good morning, all,

I notice that if I copy something to the clipboard, then alter any of the
application or window display settings, the contents of the Clipboard are
lost.

This happens in "Normal" Excel too, as well as in VBA - can anyone suggest
a
way of somehow preserving the contents of the clipboard?
I'm using Excel 2003.

Thanks in advance

Pete




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Preserve contents of Clipboard when altering display options

Here a URL that shows all the needed code:

http://www.mvps.org/access/api/api0049.htm

RBS

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
Can the default paste options on the clipboard be changed? Bobo Excel Discussion (Misc queries) 1 October 22nd 09 07:33 PM
pivot tables reports - altering display of (blank) cells cak Excel Worksheet Functions 1 August 22nd 05 12:39 AM
Values won't display after altering a formula. Mike O Excel Worksheet Functions 1 March 13th 05 11:21 PM
Altering cell contents MelissaCreek Excel Programming 4 February 4th 04 05:27 PM
Clear contents of row but preserve formulas? debartsa Excel Programming 3 December 19th 03 05:32 PM


All times are GMT +1. The time now is 07:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"