![]() |
|
#1
|
||||
|
||||
![]()
Gbaker, in the attached sample the rows are sorted by the value you're using to determine whether the row should be deleted. Thus you can just delete the last n rows manually. There's no real reason you shouldn't write a macro to do it, but it may be more work than it's worth.
Possible answer #1: Yeah, but this seemed like a good example for me to use to start learning how to write macros. Excellent! I'll help. Possible answer #2: In real life it won't always be sorted that way. Ok; in that case, how many rows are there likely to be? If it's only a few hundred it's no problem; if it's tens of thousands the macro may run a little slow. (Nothing like as slow as it would be to do it manually, of course.) Possible answer #3: Oh, duh! Of course you're right. Never mind. I don't really expect that, but it's well to ask. Possible answer #4: Something I didn't think of. By the way, since this is a macro question it should be posted in the Excel-Programming forum rather than here. If another moderator doesn't beat me to it, I'll move it there as soon as I can remember how :-). |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
dennist77 | Word | 1 | 10-29-2013 11:39 PM |
![]() |
Hoochtheseal | Word VBA | 1 | 01-29-2013 09:23 PM |
![]() |
j2b3 | Word Tables | 3 | 07-19-2012 03:59 PM |
![]() |
gib65 | Excel | 2 | 12-09-2011 02:09 PM |
![]() |
Learner7 | Excel | 1 | 04-19-2011 02:45 AM |