+ Reply to Thread
Results 1 to 4 of 4

Copy and paste random cells values from a range to another sheet column with no blanks

  1. #1
    Registered User
    Join Date
    09-05-2011
    Location
    Ryther, England
    MS-Off Ver
    Office 365
    Posts
    63

    Copy and paste random cells values from a range to another sheet column with no blanks

    Hi there

    I'm looking to see if there is any VBA way in which I can copy the cell values from one column, where the values may have blank cells in between, to another column in a separate sheet but with no blanks. Example:

    Sheet 1 Cell range A1 to A10, but only cells A1, A4, A5 and A7 have values
    I want to be able to copy these to sheet 2 column, A but to start in the first cell (a1) and populate all sequential cells without blanks, in this example A1 to A4.

    Further to this the values in sheet 1 are generated via formulas, and it's only the values I need to be copied, not the formulas or formatting.

    The cell ranges used above are arbitrary, as ideally I need to be flexible on the choice of ranges used.

    Hope that makes sense. Any help with this greatly appreciated :-)

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Copy and paste random cells values from a range to another sheet column with no blanks

    Maybe,
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-05-2011
    Location
    Ryther, England
    MS-Off Ver
    Office 365
    Posts
    63

    Re: Copy and paste random cells values from a range to another sheet column with no blanks

    Hi berlan. Wasn't sure if my previous reply got posted but just in case. Thank you The coding worked perfectly. I've spent hours on this and didn't manage to solve it and you wrapped it up in minutes. Genius!

  4. #4
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Copy and paste random cells values from a range to another sheet column with no blanks

    You're welcome, and thanks for the rep.

    There are many ways to do this. Another example for variety, which doesn't use the clip:
    Please Login or Register  to view this content.

+ 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. [SOLVED] Macro - copy a range of cells - paste as "values" to column - then next column - etc.
    By MIGARDEIN in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2015, 07:32 PM
  2. Replies: 7
    Last Post: 10-26-2014, 06:01 PM
  3. [SOLVED] Copy and paste values in column range into first empty column to the left
    By gbatz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-15-2014, 06:59 PM
  4. [SOLVED] Copy and Paste Range of Cells based on # of cell values in Column A
    By bwaite87 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-17-2014, 05:51 PM
  5. [SOLVED] Copy and paste range as values to specific sheet/range
    By lukestkd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-06-2014, 09:48 PM
  6. [SOLVED] How to copy/paste column, only cells with values (non-blanks)
    By ChristopherH in forum Excel General
    Replies: 5
    Last Post: 02-03-2014, 03:14 PM
  7. Macro that will copy values in Column J and paste values to Column B in new sheet
    By Phixtit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2010, 04:56 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