+ Reply to Thread
Results 1 to 4 of 4

Copy Paste Issue

  1. #1
    Registered User
    Join Date
    10-10-2003
    Location
    Massachusetts
    MS-Off Ver
    Office 365
    Posts
    88

    Copy Paste Issue

    Strange problem using code we have used for a long time.

    We are copy/pasting a formula, and we're seeing the source copy values appear in the pasted range, even though the equations in the source cell are being pasted correctly.

    Here is the code we have been using:
    Please Login or Register  to view this content.
    Take a look at the formula for Range G32 in the code above.
    After pasting as in the code above this is the formula in Range G33: =(((D33-B33)*10)+((F33-B33)*10))/2
    The formula has been pasted as one would expect. The columns and row get adjusted.

    The problem is that the same values that are in G32, H32 and I32 show up in the entire pasted range. Not the calculated values based on the contents of the equation in the cell.

    I created the attached example workbook, copied the macro code to it, then ran the code and the values change as they should. I did create an xlsx for the example. The main sheet I use is an xlsb if that makes a difference. Take a look at the attached example sheet. As above, just the values from the source copy appear. Not the values that should appear according to the formula in the cells. Then run the macro code above, and the correct values appear.

    But in my main workbook, just values appear. Very odd. Would like to get my main workbook working again.

    As always, any help would be appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Copy Paste Issue

    What is the result if you replace this
    Please Login or Register  to view this content.
    with this
    Please Login or Register  to view this content.
    and add this at the top of your code
    Please Login or Register  to view this content.
    I have not tried it so make sure you try it on a copy of your original.

  3. #3
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Copy Paste Issue

    I guess your workbook is applying manual calculation mode. If that right, change calculation mode to automatic and then retry.
    ❖ Please mark your thread is SOLVED if there has been offered a solution that works fine for you.

    ❖ If you like solutions provided by anyone, feel free to add reputation by clicking on ✶ Add Reputation bottom left of their posts.

  4. #4
    Registered User
    Join Date
    10-10-2003
    Location
    Massachusetts
    MS-Off Ver
    Office 365
    Posts
    88

    Re: Copy Paste Issue

    I noticed when I saved and reopened the workbook, all the formulas had been applied. I followed huuthang_bd's suggestion. The workbook was indeed set to manual calculation. Switched formulas to automatic calculation and everything works perfectly. Very strange. No one but me works on the coding. There are only 2 of us and I know my employee didn't change the formula calculation setting option. In any event, calculations are working perfectly.

    What a relief!!!!!

    Many thanks to all who took the time to look. Special thanks to those who responded.

    MUCH APPRECIATED!!!!!!!!!!!!

+ 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. Copy Paste Issue Merge Cell & Paste Values other Column
    By majidsiddique in forum Excel General
    Replies: 12
    Last Post: 04-28-2020, 01:07 AM
  2. Copy and Paste Issue
    By Spider1987 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-08-2018, 06:31 AM
  3. [SOLVED] Help to correct this online copy, copy paste issue
    By bigroo1958 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-13-2016, 02:32 PM
  4. [SOLVED] COPY/PASTE Issue!!!
    By JamesGoulding85 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-11-2013, 07:47 AM
  5. copy and paste issue
    By dude2007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2008, 05:29 PM
  6. copy & paste issue
    By carterljohn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2007, 10:06 PM
  7. Issue with copy & paste?
    By Etrnal168 in forum Excel General
    Replies: 2
    Last Post: 07-11-2005, 11:05 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