Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am working on a Worksheet with several sheets. In the first one, I have a
series of lines that I need to copy to each of the other sheets, based on the line. The select criteria is no problem. The problem is that I need to find out how to find the first blank row on each of the sheets and paste the line for that sheet there. This is needed to be done via a macro. I know you can use ctr down down to get to the last line. However the macro stores that exact cell as the range. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Does not consider row 1 if open or test for whether you have hit the
bottom of your sheet. This can be modified if needed. Sub GetNextCell_row() Dim Nextrow As Long Nextrow = ActiveCell.SpecialCells(xlLastCell).Offset(1, 0).Row MsgBox "Next open row = " & Nextrow End Sub hjyoungii wrote: I am working on a Worksheet with several sheets. In the first one, I have a series of lines that I need to copy to each of the other sheets, based on the line. The select criteria is no problem. The problem is that I need to find out how to find the first blank row on each of the sheets and paste the line for that sheet there. This is needed to be done via a macro. I know you can use ctr down down to get to the last line. However the macro stores that exact cell as the range. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro to insert blank line when lines sum to zero | Excel Discussion (Misc queries) | |||
macro change at each blank line | New Users to Excel | |||
how do I write macro to sum numbers up to next blank line? | Excel Discussion (Misc queries) | |||
Insert blank line macro | Excel Worksheet Functions | |||
Macro to exclude blank line and total column | Excel Programming |