+ Reply to Thread
Results 1 to 4 of 4

Allow Copy and Paste function through VBA Auto Calculation

  1. #1
    Registered User
    Join Date
    02-25-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    15

    Allow Copy and Paste function through VBA Auto Calculation

    Dear All

    I wonder if someone can point me in the right direction please.

    I am trying to allow the copy and paste function to function more than once on a sheet in excel but i have the code below in the worksheet to auto calculate the sheet when certain cells are populated. With the code not there it works fine, i am able to copy once and paste many many times.

    Please Login or Register  to view this content.
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time because you only have a few posts, but you have been here long enough to know better. --6StringJazzer


    Thanks in advance

    Juicy
    Last edited by 6StringJazzer; 01-18-2016 at 07:11 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Allow Copy and Paste function through VBA Auto Calculation

    Calculate wipes out the clipboard. Why do you even need this macro? Formulas will be recalculated automatically, unless you have Manual Calculation set (normally not a good idea).
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    02-25-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Allow Copy and Paste function through VBA Auto Calculation

    Hi 6StringJazzer

    well my files that i run in excel are pretty big files and i may have two or three open at a time and with past experience excel seems to hang and then close. As excel Auto calculates the whole workbook when you leave any cell i figured i try and cut this down to only calculate on certain cells to help the situation, but now i've run into this problem.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Allow Copy and Paste function through VBA Auto Calculation

    I think you will have to retrieve the value from the clipboard, call Calculate, then put that value back to the clipboard. That is the simplest way to code it. I can think of other ways that are transparent to the user but require more complex coding. See this page: http://www.cpearson.com/excel/clipboard.aspx

    You may also need a redesign of your workbooks if they are so big that normal operations cause Excel to hang.

+ 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. auto copy paste 1 by 1
    By ash3angel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2015, 12:27 PM
  2. [SOLVED] Copy calculation results and paste special values to new row with each recalculation
    By Phily915 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2013, 10:48 AM
  3. [SOLVED] Auto copy/paste?
    By ads2k12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2012, 05:19 PM
  4. Auto copy & paste
    By clinet in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-25-2011, 09:32 AM
  5. Auto-Copy & Paste
    By dreicer_Jarr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2011, 10:31 PM
  6. Auto copy and paste value
    By processchip in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2011, 11:56 AM
  7. Auto copy and paste
    By Tom in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-16-2006, 04:45 AM

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