Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default popup warning

From time to time, excel prompts Windows clipboard does not contain data in
a supported format. Does this related to my macro which has lots of copy/cut
and paste and I placed Application.CutCopyMode = False after each action of
paste action. How do I avoid the popup again please?
Rgds
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default popup warning

There are some things that cause the clipboard to get cleared. If you've copied
something, then the macro stopped and you wanted another macro to paste, then
this may not work--most macros clear that clipboard.

But if it's in the same workbook, I try to keep my copy/cut's right near the
associated pastes.

Dim RngToCopy as range
dim DestCell as range

with worksheets("Somesheet")
set rngtocopy = ....
end with

with worksheets("someothersheet")
set destcell = ....
end with

'lots and lots of code here.

rngtocopy.copy _
destination:=destcell




Seeker wrote:

From time to time, excel prompts Windows clipboard does not contain data in
a supported format. Does this related to my macro which has lots of copy/cut
and paste and I placed Application.CutCopyMode = False after each action of
paste action. How do I avoid the popup again please?
Rgds


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default popup warning

Hi John and Peter,
As I am a tyro in the VBA, my project was done by the excel recorder and
kind donation of codes from experts in this forum. I understand set/dim,
as/=, variant/string etc should be used in programming to make it reliable
and efficiency, but I have no knowledge of these setting thats why I use
copy/paste instead. Any wed page that you would suggest that I can learn
these setting please?
Rgds

"Dave Peterson" wrote:

There are some things that cause the clipboard to get cleared. If you've copied
something, then the macro stopped and you wanted another macro to paste, then
this may not work--most macros clear that clipboard.

But if it's in the same workbook, I try to keep my copy/cut's right near the
associated pastes.

Dim RngToCopy as range
dim DestCell as range

with worksheets("Somesheet")
set rngtocopy = ....
end with

with worksheets("someothersheet")
set destcell = ....
end with

'lots and lots of code here.

rngtocopy.copy _
destination:=destcell




Seeker wrote:

From time to time, excel prompts âœWindows clipboard does not contain data in
a supported formatâ. Does this related to my macro which has lots of copy/cut
and paste and I placed âœApplication.CutCopyMode = False❠after each action of
paste action. How do I avoid the popup again please?
Rgds


--

Dave Peterson
.

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
UNDO DELEING ROW AND POPUP WARNING MESSAGE K[_2_] Excel Programming 5 March 26th 08 10:29 AM
How to turn off the popup warning when clicking on a hyperlink pschurb Excel Worksheet Functions 2 May 7th 06 04:36 PM
How to stop the popup warning window when clicking on a hyperlink pschurb Excel Programming 1 May 5th 06 09:08 PM
Add a warning popup to a Macro Button Teresa Excel Worksheet Functions 4 January 16th 06 09:27 PM
Protection and warning popup Ken Excel Discussion (Misc queries) 5 December 7th 05 03:22 PM


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

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"