+ Reply to Thread
Results 1 to 5 of 5

Macro to insert blank rows based on data above

  1. #1
    Registered User
    Join Date
    08-17-2007
    Posts
    18

    Macro to insert blank rows based on data above

    Basically what I am looking to do is create a macro to add a number of blank rows depending on the data above it. I have included a sample of what I have and what I want to be able to do. I want each tech number to have 12 rows regardless of whether there is information in them or not. Sheet1 of the sample is how it looks when sent to me, Sheet2 is how I would like it to look after the macro is done running. I will be sent over 200 rows of information daily and I need the information to look as I have it in the sample for another macro I am using to pull the information. This would be a great help. Thank you in advance.

    Matt
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-17-2007
    Posts
    18
    now I have this code I pulled from a reply to another question that will shift the data in row c down two rows, but I would like it to be able to insert blank rows, I think I might be able to figure out how to do the rest

    Please Login or Register  to view this content.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello MattLinkus,

    Here is the expanded version. I have already added this to your workbook which is attached.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-17-2007
    Posts
    18
    Thank you very much Leith, this is very close to what I'm trying to achieve. This code shifts the data in column c down, but what I would like to do is add a full blank row. I changed ".Insert Shift:=x1ShiftDown" to ".EntireRow.Insert"

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello MattLinkus,

    I wasn't sure if that's what you wanted to do. Thanks for the feedback.

    Sincerely,
    Leith Ross

+ 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