+ Reply to Thread
Results 1 to 3 of 3

Insertrow macro

  1. #1
    Registered User
    Join Date
    04-27-2007
    Posts
    2

    Insertrow macro

    Ok here's my particular situation.

    I got a big worksheet, and I need to insertrows after a particular data shows up in one of the fields, say column A. This recurring data has SOME pattern to it, like AAAAA1, AAAAA2, AAAAAA3, AAAAAA4

    So it's like this

    AAAAAA1
    Garbage info
    Garbage info
    Garbage info
    Garbage info
    AAAAAA2
    Garbage info
    Garbage info
    AAAAAA3
    Garbage info
    Garbage info
    Garbage info
    Garbage info
    Garbage info
    Garbage info
    Garbage info
    Garbage info
    AAAAAA4
    Garbage info
    Garbage info
    Garbage info

    Note there's no pattern to the number of lines I need separated. Basically before each AAAAAAx I need to insert a complete blank row. So the AAAAAAx should be the separator.

    I feel I haven't explained this the best way. Let me know what you guys have understood.

    end result should look like

    AAAAAA1
    Garbage info
    Garbage info
    Garbage info
    Garbage info

    AAAAAA2
    Garbage info
    Garbage info

    AAAAAA3
    Garbage info
    Garbage info
    Garbage info
    Garbage info
    Garbage info
    Garbage info
    Garbage info
    Garbage info

    AAAAAA4
    Garbage info
    Garbage info
    Garbage info

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454
    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    04-27-2007
    Posts
    2
    If it's not too much trouble can you just explain your code a little?

    I'm new to making macros or knowing the ins and outs of excel altogether. If I just understood what is happening to what and where I think I might be able to play around with it.

    I just copy pasted your code and it nothing happened when I ran the macro.

+ Reply to Thread

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