+ Reply to Thread
Results 1 to 5 of 5

CutCopyMode with Calculation=xlCalculationManual

  1. #1
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    CutCopyMode with Calculation=xlCalculationManual

    I have one sheet where I want to turn off Calculation during SheetSelectionChange. But I don't want to lose the CutCopyMode and marching ants.

    Setting App.Calculation also turns off CutCopyMode

    Please Login or Register  to view this content.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: CutCopyMode with Calculation=xlCalculationManual

    a bit strange question, at first the specified code is not the selectionchange event code, secondly this event occurs when the selection changes on a worksheet and gives you changed range address. So turn off calculation and do whatever you need with the result range.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: CutCopyMode with Calculation=xlCalculationManual

    You haven't entered the Worksheet event code by selecting the correct event in the drop down of the VB Editor.

    Copying would be cancelled by changing the selection and performing an action on a different range, unless it is a paste operation
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: CutCopyMode with Calculation=xlCalculationManual

    Hi Roy;

    I'm trying to restore the range that has the marching ants around it. When Calculation is set to manual it turns off CutCopyMode and removes the marching ants. I can reset CutCopyMode but I want to know how to restore the marching ants.

  5. #5
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: CutCopyMode with Calculation=xlCalculationManual

    Hi watersev;

    I guess I didn't explain myself. When I'm working in the worksheet I want to do a copy and paste. I do the copy and Excel sets the marching ants, then I change the selection to do the paste, but my Worksheet_SelectionChange() event removes the marching ants when it sets calculation to manual. I'm trying to reset the marching ants so that I can do the paste.

    Right now the only thing I can think to do is to turn "EnableEvents" off, do my cut and paste and then turn "EnableEvents" back on.

+ 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