Hi Guys,
Can someone write me a script that can delete specified # of rows after # of rows specified?
for example: Delete 2 rows after every 38 rows.
Thanks in advance!
Hi Guys,
Can someone write me a script that can delete specified # of rows after # of rows specified?
for example: Delete 2 rows after every 38 rows.
Thanks in advance!
Do the rows that you are deleting have something in them that distinguishes them from other rows? If yes, there is a better way to do what you are asking.
The above should do what you ask but there are better ways to delete variable rows.![]()
Please Login or Register to view this content.
Hi Rabbit,
I think you would need to call 111's code from another macro, passing it the a and b values. If you were just looking to run a macro to delete every 39th/40th rows (assuming starting in row 1), you could use:
This will delete rows 199 & 200, 159 & 160, 119 & 120, 79 & 80, 39 & 40.![]()
Please Login or Register to view this content.
Hi Rabbitstew,
You could try something like this:
XLAdept![]()
Please Login or Register to view this content.
Last edited by xladept; 04-24-2012 at 08:13 PM. Reason: Afterthought
Awesome! thanks everyone!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks