+ Reply to Thread
Results 1 to 2 of 2

Copy only takes som of the data

  1. #1
    Registered User
    Join Date
    02-02-2006
    Posts
    25

    Copy only takes som of the data

    Hi.
    I've been using a macro to copy a worksheet, the macro takes the values and format but not the formulas and saves that, it's been working great.
    But now I've changed alot of the formulas in the worksheet and it doesn't take all data when it copies..

    the macro is as follows:
    Please Login or Register  to view this content.
    (NOW YOU MAY SKIP DOWN A BIT, THIS DOESN'T REALLY GIVE ANY VITAL INFORMATION....)
    the formulas in the cells that doesn't get copied is:
    Please Login or Register  to view this content.
    meaning approximately:
    Please Login or Register  to view this content.
    (SKIP TO THIS PART!!):

    Where the data omitted is from the part
    Please Login or Register  to view this content.
    But when I leave only that I get a #REFERENCE error.
    previously I used a formula where the equivalent part was
    Please Login or Register  to view this content.
    and that worked great!
    The data is in the worksheet being copied in both instances but why do one work but not the other?

    Any ideas?
    Last edited by Ruatha; 05-30-2008 at 02:11 AM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    In the following command (taken from your macro) intruction is to paste only the value of the copied data.

    If formulas are copied it pastes the result of the formulas not the formulas

    Please Login or Register  to view this content.
    If you are wanting values, format, formulas to be pasted as copied then use the Paste command instead of the PasteSpecial command
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ 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