+ Reply to Thread
Results 1 to 4 of 4

Target.Calculate to Me.Calculate breaks Copy/Paste

  1. #1
    Registered User
    Join Date
    11-29-2013
    Location
    Pattaya, Thailand
    MS-Off Ver
    Excel 2013
    Posts
    71

    Question Target.Calculate to Me.Calculate breaks Copy/Paste

    Hello,

    please read below, I found the cause but not the solution
    Last edited by vayana; 12-27-2013 at 10:01 AM. Reason: Change title

  2. #2
    Registered User
    Join Date
    11-29-2013
    Location
    Pattaya, Thailand
    MS-Off Ver
    Excel 2013
    Posts
    71

    Question Re: cannot copy paste in same sheet.

    I just checked if there were any differences in the Visual Basic codes between the sheets, and it seems there is another sheet with the same VB-code that has the same problem:

    The code is used to auto-refresh a conditional formatting that highlights an entire row on selection of a cell.

    The 2 sheets with this code suffer from the problem:
    Please Login or Register  to view this content.
    And the other sheets use this code:
    Please Login or Register  to view this content.
    Not sure if I'm better off now to post this question in the VB part of the forum?!

  3. #3
    Registered User
    Join Date
    11-29-2013
    Location
    Pattaya, Thailand
    MS-Off Ver
    Excel 2013
    Posts
    71

    Re: cannot copy paste in same sheet.

    Ok, since I had some more info to go on, I stumbled on this thread which confirms the copy/paste loss.

    No solution is given though.

    The reason I use the Me.Calculate on those 2 forms is because I'm using some Array formula that spit out an error if I select them with Target.Calculate active.

  4. #4
    Registered User
    Join Date
    11-29-2013
    Location
    Pattaya, Thailand
    MS-Off Ver
    Excel 2013
    Posts
    71

    Re: Target.Calculate to Me.Calculate breaks Copy/Paste

    Basically, this code:
    Please Login or Register  to view this content.
    On a sheet with this Conditional Formatting:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    gives a VB runtime error 1045 when selecting a cell with this array formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    To avoid that problem I was suggested to use this VB-code instead:
    Please Login or Register  to view this content.
    Which has caused the copy/paste function to stop working.

    As a workaround to avoid the runtime error with the Target.Calculate code I have copied the array formula to a helper column and referenced the cells that I want to display the data in to that column.

    That's all I can provide for now, so I hope someone more knowledgeable knows a better way around it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to copy data with formula and paste another sheet as paste spl -value only
    By sumesh56 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-14-2013, 09:03 PM
  2. Replies: 1
    Last Post: 01-07-2013, 12:23 AM
  3. [SOLVED] Copy and paste data from sheet 2 to sheet 1 based on specific criteria on sheet 1
    By VBADUD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:18 AM
  4. Replies: 2
    Last Post: 02-22-2011, 02:07 AM
  5. Replies: 1
    Last Post: 01-04-2005, 06:06 PM

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