+ Reply to Thread
Results 1 to 5 of 5

Adding 6 columns after each Column with a header

  1. #1
    Forum Contributor
    Join Date
    01-06-2015
    Location
    Huntsville, AL
    MS-Off Ver
    Office 365
    Posts
    185

    Adding 6 columns after each Column with a header

    I am having some issues trying to insert 6 columns after each column with a header. I have tried several different VBA's and tried creating a macro, but the macro seems to fail after so many entries. I have attached an example. I would like to have it insert 6 columns starting with column "K" and continue to Column "S". Any help would be greatly appreciated. Thanks,
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Adding 6 columns after each Column with a header

    Hi Chris McGlothen,
    try it
    Please Login or Register  to view this content.

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,057

    Re: Adding 6 columns after each Column with a header

    Give this a try:

    Please Login or Register  to view this content.
    Last edited by Arkadi; 09-17-2018 at 11:23 AM.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Forum Contributor
    Join Date
    01-06-2015
    Location
    Huntsville, AL
    MS-Off Ver
    Office 365
    Posts
    185

    Re: Adding 6 columns after each Column with a header

    Thank you both! These both worked great!!!

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,164

    Re: Adding 6 columns after each Column with a header

    How about another?
    Please Login or Register  to view this content.
    The secret is to insert from the right to the left using the Step - 1 in the For..Next loop.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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. Return header when there is a value in column. 4 columns possible
    By Gaellus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2018, 05:52 AM
  2. [SOLVED] Return Column Header for First and Last Columns to Contain a Value
    By winkee223 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-29-2017, 10:09 AM
  3. [SOLVED] Finding a column via header search and then adding everything in it into an array.
    By Scoobster_doo in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-22-2017, 09:58 AM
  4. Get the column Header where value matches in multible columns
    By paddudommeti in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2013, 03:36 AM
  5. If column contains certain header, delete column--exempt certain columns
    By kestefon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2013, 04:04 PM
  6. Copy Data from Several Columns with Same Header into One Column
    By tgilbride in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-21-2013, 12:38 PM
  7. Combine multiple columns into one column with header and date in another column
    By JJadams in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-12-2012, 05:30 PM

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