Results 1 to 4 of 4

Inserting number of rows based on a count of data

Threaded View

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    13

    Inserting number of rows based on a count of data

    Hi,

    I have a list of data in column A that changes length. I'm looking for a macro that can insert columns from column O based on twice the count of data in column A.

    eg. if there are 5 entries in Column A, I'd like to insert 10 columns from O. I have the macro to insert columns but it needs an exact number.

    Columns("O:O").Select
        Range(Selection, Selection.Columns(No of columns)).EntireColumn.Select
        Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
    Any help would be great.

    Thanks.
    Last edited by Cutter; 08-15-2012 at 11:23 AM. Reason: Added code tags

Thread Information

Users Browsing this Thread

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

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