+ Reply to Thread
Results 1 to 3 of 3

Paste Values to the End of a Range Column Without Extending Past the Range Column

  1. #1
    Forum Contributor
    Join Date
    05-16-2007
    Location
    USA
    MS-Off Ver
    MS Office 2016, Excel 2016
    Posts
    214

    Paste Values to the End of a Range Column Without Extending Past the Range Column

    I'm using columns D4-AY4 as a range of cells for my data. For each cell, the values are just single words with a space and number appended to it, like so: Word 1, Word 10, Word 2, Word 20.
    Any cell within that range will either be blank or as described above.

    I'm trying to figure out how to move all the words within this range that have a 0 (actual zero), to then move those words to the end of the range, which is column AY4, BUT it can't extend past AY4.

    So, this means it needs to calculate how many cells from the end of the range (AY4) so that it can assign the correct column to begin pasting the words so that they do not extend beyond the AY4 column.

    Any suggestions using VBA to do this?

    Mike

  2. #2
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: Paste Values to the End of a Range Column Without Extending Past the Range Column

    Hello. Let us know when you have uploaded to the Forum a concrete example that includes two sheets:

    a) On the first sheet you must put your data as you currently have it.

    b) On the second sheet, show us the result you intend to obtain.
    You are always very welcome if you add reputation by clicking the * (bottom left) of each message that has helped you.

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,216

    Re: Paste Values to the End of a Range Column Without Extending Past the Range Column

    So if all the words with a 0 are to be placed from the end towards the beginning then I am assuming that all the others words are to be placed at the beginning towards the end?
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

+ 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. Replies: 1
    Last Post: 12-16-2022, 12:55 PM
  2. [SOLVED] Paste values to next unpopulated column within range
    By milkychips in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2016, 02:48 PM
  3. [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
  4. [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
  5. [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
  6. Extending column range in copy paste macro
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2010, 04:53 PM
  7. Extending column width past 255 characters
    By shieldsty in forum Excel General
    Replies: 4
    Last Post: 09-26-2008, 07:56 AM

Tags for this Thread

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