Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This macro show the last cell in a sheet that has an empty row. I want it to
copy all rows from A16 till the last row in the sheet that is not empty or looks empty. I can't use .End(xlUp) since that copies empy cells with formulas in them. Sub testme() Dim myCell As Range Dim NextEmpty As Range Set myCell = ActiveSheet.Range("a16") Do If myCell.Value = "" Then Set NextEmpty = myCell Exit Do Else Set myCell = myCell.Offset(1, 0) End If Loop MsgBox NextEmpty.Address End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I need to modify my macro ... | Excel Discussion (Misc queries) | |||
How do I copy a graph that I want to modify in powerpoint? | Charts and Charting in Excel | |||
Modify macro to copy to next available row | Excel Discussion (Misc queries) | |||
How to modify a copy macro | Excel Worksheet Functions | |||
Help to modify macro please | Excel Programming |