LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default Code Tweak

Columns("A").SpecialCells(xlBlanks).Offset(-1).Select

This code does what I want it to, It will select all blank spaces, then
select one cell above it. Now, i want to take it a step further and have it
select every row from that one up to the next blank above it. And if the
selection does not equal 30 spaces, I want it to add blank rows to it to
become 30 rows. SO for example

The selection is 14 rows, I want it to add 16 empty rows. Make sense???

Range(ActiveCell, ActiveCell(30 - _ActiveCell.Value, 1)).EntireRow.Insert

Wil this work for part of it?

So what will the complete code look like? Thanks!!!!!!

 
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
Need someone to help tweak a code JB Excel Discussion (Misc queries) 13 January 17th 08 03:04 PM
Newby Needs minor tweak on this VBA Macro code for Excel zulfer7 Excel Programming 1 May 21st 06 05:30 AM
Can someone please tweak my Macro? Wibs Excel Discussion (Misc queries) 3 December 15th 05 05:10 PM
excel code tweak for outlook - confusing periro16[_2_] Excel Programming 5 August 18th 05 10:29 AM
Need final code tweak Phil Hageman Excel Programming 12 August 16th 03 08:53 PM


All times are GMT +1. The time now is 06:49 AM.

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"