wayneryeven
Technical User
Hey all
I have a worksheet that is updated from an external source. Suffice to say the number of rows change from day to day. How i have a formula to column E- i want this copied down to the last row of data (i intend to attach the code to Workbook Open). This way, i dont have column E filled with Errors each time if number of rows is less than what i had anticipated.
What is the best way to achieve this? I have started by finding the last row:
'calculate last row
LastRow = ActiveSheet.UsedRange.Rows.Count
I was hoping then to select from E2:Last row and copy the formula from E2 down to the last row- however im not having much joy at the moment!
Range("E2:E" & LastRow).Select
Anyone any suggestions?
I have a worksheet that is updated from an external source. Suffice to say the number of rows change from day to day. How i have a formula to column E- i want this copied down to the last row of data (i intend to attach the code to Workbook Open). This way, i dont have column E filled with Errors each time if number of rows is less than what i had anticipated.
What is the best way to achieve this? I have started by finding the last row:
'calculate last row
LastRow = ActiveSheet.UsedRange.Rows.Count
I was hoping then to select from E2:Last row and copy the formula from E2 down to the last row- however im not having much joy at the moment!
Range("E2:E" & LastRow).Select
Anyone any suggestions?