![]() |
Find last row in column D then Sum
Hello from Steved
Is it possible in VBA to goto last row in Column D then to a Sum Function. I know you can find the last row but was hoping to do a sum of that column D Thankyou. |
Find last row in column D then Sum
Steved:
try it, r = Range("D65536").End(xlUp) MsgBox "SUM:" & _ Application.WorksheetFunction.Sum(Range("D1:D" & r)) -- 天行健,君*以自強不息 地勢坤,君*以厚德載物 http://www.vba.com.tw/plog/ "Steved" wrote: Hello from Steved Is it possible in VBA to goto last row in Column D then to a Sum Function. I know you can find the last row but was hoping to do a sum of that column D Thankyou. |
Find last row in column D then Sum
Thankyou very much.
"chijanzen" wrote: Steved: try it, r = Range("D65536").End(xlUp) MsgBox "SUM:" & _ Application.WorksheetFunction.Sum(Range("D1:D" & r)) -- 天行健,君*以自強不息 地勢坤,君*以厚德載物 http://www.vba.com.tw/plog/ "Steved" wrote: Hello from Steved Is it possible in VBA to goto last row in Column D then to a Sum Function. I know you can find the last row but was hoping to do a sum of that column D Thankyou. |
All times are GMT +1. The time now is 10:37 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com