+ Reply to Thread
Results 1 to 3 of 3

Copy and paste values into next sheet. (blank cells contain formulas)

  1. #1
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    Copy and paste values into next sheet. (blank cells contain formulas)

    Hi everyone,

    I've been fighting with this since yesterday and everything I've come up with search has not worked out. The reason for this is because I am trying to copy data from one sheet to another, the pasted data should always fall under the previous paste. In theory this works except the data that it is copying from has formulas in the cells, they result to "" which when pasted, is technically not blank to excel. This means when I press End + down arrow or have a macro go to last row with data in it, it over shoots the data filled cells and has a gap of a few hundred blank cells.

    As an example. Sheet1 has data from A1:E200. The cells all contain formulas and result to "" (visually blank) when not used. When the cells have the required data in them they actually show information. All I want it is to copy the visual data you could say into the next sheet.

    I don't want to copy the entire row over either as in the actual application of this there is surrounding data, so only A1:E200 in this case.

    Any ideas?

    This is the snippet of the code I am using to accomplish this presently. It works great minus the fact Excel sees the blank spaces as data cells.

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    02-09-2013
    Location
    Alberta, CA
    MS-Off Ver
    O365
    Posts
    80

    Re: Copy and paste values into next sheet. (blank cells contain formulas)

    I think I found a potential solution.

    I search for the blanks, input deletethis into it and then search for deletethis and put a blank.

    Please Login or Register  to view this content.
    Is there a more elegant way to do this?

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy and paste values into next sheet. (blank cells contain formulas)

    Have you tried sorting the data? After the copy paste is done, if you sort it, the blanks will go to the end.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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