LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions,microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Conditionally inserting blank rows using macro

I have a workbook containing the results from an archery competition,
(the data in there is just to make sure that it is working fine, I
will delete it once it is fully functioning), and I need some help
with the code.

I have found one problem when i come to format the team results page
for
presentational reasons. As was pointed out to me, there can be
situations
when there is not enough members to constitute a full team, (in fact
we had this problem only Sunday.)

A macro for generating the team results was given to me, but when
there are less than four members in a team, it immediately moves onto
the next university. I would like to have a situation where extra rows
would be inserted to make up the numbers in a team, (if only two team
members for novice, enters thes results followed by either blank rows
or the full data but with no name and scores of zero), as I plan to
write/record a macro whereas it takes
the team results sheet and formats it by moving the data from the
table to elsewhere.

If I simply copy the data as it is now, I will come unstuck when a
team in future has more or less than the cell ranges I have defined to
move for this set of results. Since each team has 4 members, inserting
blank rows in means I can define each range for novice/experienced and
each university.

I was thinking of inserting a new row immediately after the results
that are there, achieved by counting the number in each team and an if
statement.

The workbook can be found at
http://www.geocities.com/nulice2002/BUTTS04.xls

Thanks in advance to anyone who replies.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Help- Inserting Blank Rows jack Excel Discussion (Misc queries) 3 January 16th 07 09:43 PM
Macro needed for inserting blank rows sunslight Excel Worksheet Functions 2 January 12th 07 05:58 PM
Inserting Blank rows after every row upto 2500 rows Manju Excel Worksheet Functions 8 August 22nd 06 12:54 PM
Ending a macro early conditionally on one cell being blank Rokuro kubi Excel Discussion (Misc queries) 3 May 26th 06 02:09 PM
Inserting Blank Rows Macro? Michael Saffer Excel Worksheet Functions 2 November 9th 04 06:23 PM


All times are GMT +1. The time now is 09:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"