PC Review


Reply
Thread Tools Rate Thread

Application.CutCopyMode = False

 
 
Simon
Guest
Posts: n/a
 
      13th Aug 2008
Does this only need to occur once in a module/macro?

Thanks
 
Reply With Quote
 
 
 
 
Susan
Guest
Posts: n/a
 
      13th Aug 2008
it needs to occur anytime you are cutting / copying / pasting & you
want the "marching ants" marquee to go away.

susan


On Aug 13, 10:25*am, Simon <simonlaven...@gmail.com> wrote:
> Does this only need to occur once in a module/macro?
>
> Thanks


 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      13th Aug 2008
If you are doing a series of cut, copy, paste or insert then you can put the
Application.CutCopyMode = False after the last one. As Susan pointed out, it
makes the marching ants go away from the last copy range if you used the
Select method to copy the range. If you use the direrect copy method like:

Worksheets(1).Range("A1").Copy Worksheets(2).Range("B5")

Then the marching ants don't show up.

If you are using PasteSpecial, you will need to turn the CutCopyMode off
after you have finished all of your copy actions. The number of times that
it is used is up to the programmer, but generally speaking, it is only
required after all copy processes are finished.
"Simon" wrote:

> Does this only need to occur once in a module/macro?
>
> Thanks
>

 
Reply With Quote
 
Jim Thomlinson
Guest
Posts: n/a
 
      13th Aug 2008
"but generally speaking, it is only required after all copy processes are
finished"... You are better off to cancel the copied section each time. If
you don't and something goes wrong then you could end up by pasting the wrong
info without the code letting you know that the error occured. Usually that
kind of thing happens when you make code changes that mess up your copy
actions... It is just one of those fail safes that makes things a bit less
prone to doing bad things...
--
HTH...

Jim Thomlinson


"JLGWhiz" wrote:

> If you are doing a series of cut, copy, paste or insert then you can put the
> Application.CutCopyMode = False after the last one. As Susan pointed out, it
> makes the marching ants go away from the last copy range if you used the
> Select method to copy the range. If you use the direrect copy method like:
>
> Worksheets(1).Range("A1").Copy Worksheets(2).Range("B5")
>
> Then the marching ants don't show up.
>
> If you are using PasteSpecial, you will need to turn the CutCopyMode off
> after you have finished all of your copy actions. The number of times that
> it is used is up to the programmer, but generally speaking, it is only
> required after all copy processes are finished.
> "Simon" wrote:
>
> > Does this only need to occur once in a module/macro?
> >
> > Thanks
> >

 
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
CutCopyMode=False does not work Horatio J. Bilge, Jr. Microsoft Excel Misc 4 19th Sep 2008 05:32 PM
Can't paste when CutCopyMode is false even though clipboard is not =?Utf-8?B?UGF1bDYyOA==?= Microsoft Excel Programming 0 5th Apr 2006 07:42 PM
Why is Application.CutCopyMode False? =?Utf-8?B?R2FyeScncyBTdHVkZW50?= Microsoft Excel Programming 2 16th Feb 2006 10:08 PM
CutCopyMode = False Michael Smith Microsoft Excel Programming 5 7th May 2004 05:33 PM
Re: Application.CutCopyMode Rob Bovey Microsoft Excel Programming 0 12th Mar 2004 03:48 PM


Features
 

Advertising
 

Newsgroups
 


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