LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Add/Delete rows based on count


Thank you - almost perfect. Have come across 2 minor glitches. First on
I fixed myself:

Code
-------------------
'add rows
Do Until dRows = 23
ActiveCell.Offset(dRows + 1, 0).EntireRow.Inser
-------------------

The dRows +1 needed to be just dRows or it added the rows between th
name and starts.

The second glitch has me beat. It only affects the last block of data
No matter how many rows of data are in the last set of records, al
actions are performed above the last row. So if there are no data rows
rows are added between the name and starts row. If there are data row
then rows are added/deleted above the last row.

Not a real problem if there's more than 20 rows to work with, but no
good with less than 20 rows. I've tried to figure it out myself bu
just don't have the knowledge. Any fix would be great

--
Mark
-----------------------------------------------------------------------
Mark K's Profile: http://www.excelforum.com/member.php...fo&userid=1411
View this thread: http://www.excelforum.com/showthread.php?threadid=57324

 
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
If Count is not in a certain range, delete Rows CarolynRatcliffe Excel Discussion (Misc queries) 0 February 23rd 10 04:52 AM
Delete Rows based on condition Vic Excel Discussion (Misc queries) 2 August 18th 09 08:54 PM
Delete Rows based on value Sabosis Excel Worksheet Functions 4 October 28th 08 11:21 PM
Delete rows based on Cell name gmunro Excel Programming 1 November 25th 05 01:09 PM
Delete Rows Based On Content halem2[_38_] Excel Programming 1 October 12th 04 03:16 PM


All times are GMT +1. The time now is 03:02 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"