Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Find Blank Line

I have a spreadsheet that is being populated by external data. The data is
grouped together by company and between each company there are a couple of
blank lines to allow for the insertion of some code. I am looking for a way
to find the first blank line so I can add the formulas using code and then
once hte formulas are added move onto the next group etc. Can anyone help me
with this

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Find Blank Line

I like to pick out a column that always has data in it if that row is used:

Dim NextRow as long
with worksheets("Sheet999")
Nextrow = .cells(.rows.count,"X").end(xlup).row + 1

.cells(nextrow,"A").value = "Used to be empty!!"

end with



Nigel wrote:

I have a spreadsheet that is being populated by external data. The data is
grouped together by company and between each company there are a couple of
blank lines to allow for the insertion of some code. I am looking for a way
to find the first blank line so I can add the formulas using code and then
once hte formulas are added move onto the next group etc. Can anyone help me
with this

Thanks


--

Dave Peterson
Reply
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
Find First Non blank cell than find column header and return that value Silver Rose Excel Worksheet Functions 10 April 30th 07 05:56 PM
insert a blank in every second line of a row EliseT Excel Discussion (Misc queries) 6 June 5th 06 01:43 PM
How do you add a blank line automatically after the Subtotal line MVSD Guy Excel Worksheet Functions 0 April 20th 06 01:04 AM
If cell is not blank, then line out row ~C Excel Worksheet Functions 1 January 26th 06 09:59 PM
Next blank line Aaron Howe[_2_] Excel Programming 0 June 30th 05 06:59 PM


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