+ Reply to Thread
Results 1 to 5 of 5

Copy last used column to adjacent empty column

  1. #1
    Registered User
    Join Date
    03-09-2011
    Location
    Utah, USA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Copy last used column to adjacent empty column

    Greetings, I would like some help with VBA/macro code. I need to copy the entirety of the last used column (for example $G:$G) in a worksheet to the adjacent empty column in the same worksheet. The worksheet is currently set up with columns A,B,C are blank, D,E,F are informational and will not change, column G is made of formulas. This last column G is to be copied to the adjacent empty column H. However, the next time the macro would run, column H would copy to column I, and so on. I am a novice at VBA and greatly appreciate the help! Ah, I am using excel 2010.
    Last edited by itwas45and51; 01-15-2015 at 07:04 PM. Reason: Update excel version

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Copy last used column to adjacent empty column

    Hello itwas45and51,

    Something like this should work for you:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    03-09-2011
    Location
    Utah, USA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Copy last used column to adjacent empty column

    Awesome!!!! One last question about something I didn't consider earlier - what would I need to modify in the code so that I could place the macro in a separate worksheet? The column being copied is in worksheet "Scorecard". The macro would be placed in "Macros". Thanks again!

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Copy last used column to adjacent empty column

    Updated .Copy line:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-09-2011
    Location
    Utah, USA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Copy last used column to adjacent empty column

    Thank you so much, made my day!

+ 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 to find the empty cell in a column and copy a adjacent row to another column.
    By naga in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-18-2013, 07:44 AM
  2. [SOLVED] Fill Formula up to last empty adjacent Column
    By Floydlevedale in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-10-2013, 09:57 AM
  3. Fill empty cells per adjacent column
    By ElmerS in forum Excel General
    Replies: 11
    Last Post: 10-20-2010, 05:56 PM
  4. Insert data from one column into the empty cells of an adjacent column
    By kisboros in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2010, 02:53 PM
  5. To copy values in a column relevant to text in an adjacent column?
    By Guy Keon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-15-2005, 04:15 PM

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