Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Jan 10, 10:53*pm, joel wrote:
You posting wasn't clear and most people want it the way I did it. *I also understand why you want it the other way. *sorry! Try these changes From LastRow = .Range("E" & Rows.Count).End(xlUp).Row FirstRow = LastRow - 4 If LastRow <= c.Row Then MsgBox ("There are no rows to copy on sheet : " & Sht.Name) Else If FirstRow <= c.Row Then FirstRow = c.Row + 1 End If To EndRow = .Range("E" & Rows.Count).End(xlUp).Row If EndRow <= c.Row Then MsgBox ("There are no rows to copy on sheet : " & Sht.Name) Else FirstRow = c.row + 1 LastRow = FirstRow + 4 If LastRow EndRow Then LastRow = Endrow End If -- joel ------------------------------------------------------------------------ joel's Profile: 229 View this thread:http://www.thecodecage.com/forumz/sh...d.php?t=168586 Microsoft Office Help Hi Joel, Sorry........... my earlier post not clear and now your modified codes works perfectly Thanks alot Regards Len |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dynamic copy range | Excel Programming | |||
dynamic charts - problem with copy | Charts and Charting in Excel | |||
Copy dynamic range | Excel Programming | |||
Dynamic range copy. | Excel Programming | |||
Dynamic range problem #2 | Excel Programming |