The macro below works between 2 different worksheets. This is adding alternate parts to the first spread sheet. On the first spreadsheet, it adds 13 blank rows, then takes the PN from column B above those added rows, copies it into a different spreadsheet that spits out a set of alternate PNs and some associated data. It then first copy,past values of the alternate PNs back into the original spreadsheet in column B below the original PN, then goes back over and copies the associated data of those alternates (columns D to AC) back into the first spreadsheet. Currently it works, but runs for a long time. The way I read this is that it basically will go through 3,150 Lines (endLocation = 225 * 13 +225. I want it to stop after it reaches a blank cell in Column B. I inherited this macro and have tried a few things that don't work. I think the gotcha is the fact that it adds lines each time, so telling it when it reaches the end is tricky. Any help or ideas is appreciated,
Bookmarks