+ Reply to Thread
Results 1 to 5 of 5

Copy cells to next empty column

  1. #1
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Copy cells to next empty column

    Hi
    1: I would like a macro or vba to copy a range of cells to the next empty column, however all the columns do have a heading!

    2: I would then like a macro or vba to copy the last populated column to a pre specified column on sheet 1

    Please see attached file

    Many thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Copy cells to next empty column

    Hi,

    I find the request somewhat confusing. The note in the workbook says Copy J but there is no data in J, it's also confusing since you label the A:F range on Sheet 1 as Sheet2 and H:M as Sheet2 yet there is no data at all on the actual sheet2.

    Please would you upload an example that shows only the data that you start with, then manually add the data and layout that you want to end up with. Making sure the original data and results are clearly identified.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Re: Copy cells to next empty column

    My apologies, I changed things around and never checked it, and i am rubbish at explaining things like this on paper sorry.

    Please see attached file

    1: Copy Sheet2 B4:B18 to the next empty column on sheet2 (column D)and paste values only as column B are results of formulas.

    2: Copy last populated column on sheet2 (Column D)and paste to B2 on sheet1

    I would like items 1 & 2 as separate procedures.
    Attached Files Attached Files

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Copy cells to next empty column

    I think this must be to do with Excel trying to do the best it can with your data and it determining that with the size of the chart and the size of the x axis font it isnt possible to show every date without overlapping the dates making them unreadable.

    I say this because if you change the font size of the axis to say 5 (which makes the dates too small to read) and then zoom the sheet to say 200% you'll see that the axis does show all dates in sequence.

  5. #5
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Re: Copy cells to next empty column

    Quote Originally Posted by Richard Buttrey View Post
    I think this must be to do with Excel trying to do the best it can with your data and it determining that with the size of the chart and the size of the x axis font it isnt possible to show every date without overlapping the dates making them unreadable.

    I say this because if you change the font size of the axis to say 5 (which makes the dates too small to read) and then zoom the sheet to say 200% you'll see that the axis does show all dates in sequence.
    Wrong thread I think lol.

+ 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] Really hard!!! Copy data from column B to C and add empty cells.Please see example.
    By bonpara in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2015, 10:35 PM
  2. Replies: 0
    Last Post: 07-03-2015, 03:30 AM
  3. [SOLVED] Copy all cells in column that contain data & paste to first empty row of another column.
    By BPSJACK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2014, 08:45 AM
  4. Need to find empty filled cells in a column and copy to the empty cell below
    By Grahamfeeley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-30-2014, 10:09 AM
  5. [SOLVED] Find empty cell till next value merge or copy the respective cells in next column
    By rpriyadharsini1987 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2013, 03:46 AM
  6. Copy/Paste to Next Empty Row Overwriting Previous Row When Column A Is Empty
    By grantfitz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2013, 04:34 PM
  7. Copy a formula to cells in column A which don't have an empty cell in column B
    By floep in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2006, 04:57 AM

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