Results 1 to 13 of 13

Macro to match value and insert/move columns where the value is found

Threaded View

  1. #1
    Registered User
    Join Date
    05-18-2014
    MS-Off Ver
    Excel 2003
    Posts
    8

    Post Macro to match value and insert/move columns where the value is found

    Hi, I'm still a novice on VBA. I'm trying to create a macro but failing miserably, if anyone could help please.

    I have a moving value (e.g.Mar 14, Apr 14, May 14, etc). Then I have columns with headers matching those values. I need to create a macro to insert a column where that value is found, basically this inserted column would be used to sum numbers in that row. For e.g. If the criteria is 'Find May 14', then a column would be inserted after that column in which Heading May 14 is found. This inserted column would then sum the values from Mar 14, Apr 14 and May 14. If The criteria is set to Apr 14, then I need to be able to delete the previously inserted column (in this case colunm which was insterted after May 14) and move it to after the column in which Heading Apr 14 is found.

    I have a spreadsheet where i'm constantly required to perform this task and it is not coming to a point where its unbearable to keep on inserting, deleting and formulating the cells. A a macro to do this would improve my time considerably.

    Attached spreadsheet shows what I'm trying to automate. Any help would be great, thank you!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Compare Columns and Copy if match found
    By betsyroal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-29-2014, 07:58 AM
  2. Compare values from another page and insert another value when a match is found
    By dogguy2010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2012, 11:20 PM
  3. [SOLVED] Code needed to move cell value from one sheet to another if match is found.
    By SLIDE1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2012, 07:46 PM
  4. Replies: 2
    Last Post: 06-29-2011, 01:36 PM
  5. Replies: 5
    Last Post: 10-11-2008, 04:01 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