Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I have a master list that is linked to 5 other Team
worksheets. Team 1: Rows 1 - 50 Team 2: Rows 51 - 100 Team 3: Rows 101 - 150 Team 4: Rows 151 - 200 Team 5: Rows 201 - 250 Now some of the teams need more record space and I need a Macro that inserts rows to the end of each team row allocation as follows: Check if there are less than 10 empty rows between Teams. Yes: Add rows to maintain 20 free rows between Teams No: Do not do anyhting. My current problem is that my macro adds the rows at the specific row where the macro was created. Let us say I created the Macro when Row 35 was empty. Now whenever I run my current Macro, it Inserts the new rows into 35 even if I have data in row 34, 35, 36, 37. I hope this makes sense. Thanks guys! |
#2
![]() |
|||
|
|||
![]()
Excel will need to know how to find the end of each team's data. In other
words, say that Team 1 goes from row 1 to 60 and Team 2 starts at 61, is there something unique about your data that Excel can use to determine that row 60 is the last row in the Team 1 data? Or maybe you know that there is always at least one blank row between teams? Pretend that you are explaining to a new hire how to do this. What would you tell him? HTH Otto "Need Help" wrote in message ... I have a master list that is linked to 5 other Team worksheets. Team 1: Rows 1 - 50 Team 2: Rows 51 - 100 Team 3: Rows 101 - 150 Team 4: Rows 151 - 200 Team 5: Rows 201 - 250 Now some of the teams need more record space and I need a Macro that inserts rows to the end of each team row allocation as follows: Check if there are less than 10 empty rows between Teams. Yes: Add rows to maintain 20 free rows between Teams No: Do not do anyhting. My current problem is that my macro adds the rows at the specific row where the macro was created. Let us say I created the Macro when Row 35 was empty. Now whenever I run my current Macro, it Inserts the new rows into 35 even if I have data in row 34, 35, 36, 37. I hope this makes sense. Thanks guys! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Linking to an Entire Sheet | Links and Linking in Excel | |||
Referencing an Entire Sheet | Excel Discussion (Misc queries) | |||
Linking sheets to a summary sheet in workbook | Excel Discussion (Misc queries) | |||
linking multiple sheets to a summary sheet | Excel Discussion (Misc queries) | |||
Hyperlink to specific sheet in Excel Web File | Links and Linking in Excel |