ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Last Cell (https://www.excelbanter.com/excel-programming/326037-last-cell.html)

Michael Smith

Last Cell
 
I want to put a formula 2 rows below my last line of data, in the L,M,N
columns. Some kind of offset xlend thing?

TIA - mike



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Bob Phillips[_6_]

Last Cell
 
range("L1").End(xlDown).Offset(2,0).Formula = ...

etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Michael Smith" wrote in message
...
I want to put a formula 2 rows below my last line of data, in the L,M,N
columns. Some kind of offset xlend thing?

TIA - mike



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!




Cesar Zapata

Last Cell
 
are the data on all columns that same lenght? if so then try this

sub TestThis()
irows = Cells(Rows.Count, "L").End(xlUp).Row + 2
Cells(12, irows).Value = "hello"
Cells(13, irows).Value = "hello"
Cells(14, irows).Value = "hello"
End Sub


Cesar Zapata


Michael Smith

Last Cell
 

Thank you both!


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


All times are GMT +1. The time now is 10:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com