+ Reply to Thread
Results 1 to 4 of 4

Insert column before last column in table

  1. #1
    Registered User
    Join Date
    06-27-2011
    Location
    Durban, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Insert column before last column in table

    Hi

    I have a few sheets, with tables, which vlookup values from a data sheet which is updated every month.

    Say I have 2 months, May and April, now I want to make June.

    I insert a column between May and April and copy the values of *May* into this new column.

    I then paste the new data sheet, then my last column is automatically updated for June.

    I want to automatically do this job, but the macro recording records the column names...

    Here is a recording of what I am doing:
    Please Login or Register  to view this content.
    Thanks!
    Last edited by Jerome000; 06-27-2011 at 04:54 AM. Reason: add tags for new poster

  2. #2
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Insert column before last column in table

    Hi
    Welcome to the forum.

    For your information, any code that you include in your post, must be included within tags
    "
    Please Login or Register  to view this content.
    "

    (without the quotation marks.)

    Now, as to your problem, it is difficult for me to follow what you are after, as I cannot see why you would want to place June, between April and May.
    Can you attcah a copy of your workbook with a little more explanation?
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Insert column before last column in table

    what if using:
    Please Login or Register  to view this content.



  4. #4
    Registered User
    Join Date
    06-27-2011
    Location
    Durban, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Smile Re: Insert column before last column in table

    Hi,
    Sorry for the confusion, here is a copy of my workbook...

    I copy the values of the old month (May) into the new column and vlookup formula will get new months values (June).

    Thank you!
    Attached Files Attached Files
    Last edited by Jerome000; 06-27-2011 at 04:58 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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