LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Looking for easy way to add data to the first empty row from a for

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

Dim NextRow as long
with worksheets("Somesheetnamehere")
nextrow = .cells(.rows.count,"A").end(xlup).row + 1
.cells(nextrow,"A").value = "something here"
end with

or

Dim NextCell as range
with worksheets("Somesheetnamehere")
set nextcell = .cells(.rows.count,"A").end(xlup).offset(0,1)
somerange.copy _
destination:=nextcell
end with



Gluefoot wrote:

I'm pretty new to using forms in Excel. I'm wondering if there's a simple way
to write to the last empty row in a sheet without having to use a DO - LOOP
to find it.

Thanks for any suggestions!


--

Dave Peterson
 
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
Is there an easy way to delete empty columns? Acanesfan Excel Worksheet Functions 2 September 8th 08 09:01 PM
Easy way to stack column data? colleen Excel Worksheet Functions 1 July 7th 08 12:06 AM
Relatively easy data comparison Q? Dan Excel Programming 2 August 10th 07 01:16 AM
easy way to Consolidate Data within workbook's various worksheets estimator Excel Worksheet Functions 1 February 20th 06 06:49 PM
easy way to Consolidate Data within one workbook's various workshe estimator Excel Worksheet Functions 1 February 20th 06 01:30 AM


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