+ Reply to Thread
Results 1 to 10 of 10

Application.CutCopyMode

  1. #1
    Registered User
    Join Date
    01-22-2013
    Location
    Eastleigh, England
    MS-Off Ver
    Excel 2007
    Posts
    14

    Application.CutCopyMode

    Hopefully this will be quick one.

    I look at macros and then use them to design my own code I'm looking simply at a copy and paste macro but it gives this option with = true, false. Looking online I can't see the difference between either option. Can anyone help and explain what the difference is.

    Please Login or Register  to view this content.
    Karl Fellbrich

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Application.CutCopyMode

    It's a flag which correlates with the 'marching ants' border that surrounds a range after it has been copied. In most cases, it doesn't do any damage taking it out if a macro records it
    Martin

  3. #3
    Registered User
    Join Date
    01-22-2013
    Location
    Eastleigh, England
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Application.CutCopyMode

    ok so does false take off the marching ants or does true do that or does it not matter.

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Application.CutCopyMode

    False should take them off put it doesn't really matter unless you want the visual effect.

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Application.CutCopyMode

    using False will clear the clipboard and can help free up memory as well as preventing the appearance of messages about large amounts of data being on the clipboard
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  6. #6
    Registered User
    Join Date
    01-22-2013
    Location
    Eastleigh, England
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Application.CutCopyMode

    brilliant thank you very much just as an extra then if i don't include it will it default to true?

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Application.CutCopyMode

    no. the valid values are either xlcopy or xlcut if a copy or cut operation is in progress, or false if neither has occurred or you wish to clear the operation

  8. #8
    Registered User
    Join Date
    01-22-2013
    Location
    Eastleigh, England
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Application.CutCopyMode

    Ok so it will not stay in the memory if I omit this part from my code completely? Thanks a lot for your help

  9. #9
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Application.CutCopyMode

    if you cut or copy in your code via the clipboard-especially if using large data-it is wise to set it to False afterwards

  10. #10
    Registered User
    Join Date
    01-22-2013
    Location
    Eastleigh, England
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Application.CutCopyMode

    ok thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1