![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 1
|
Hello,
Using VBA, How do I sum a range from a starting reference like "P2" to the last occupied cell in that column and put that result in the cell below the last occupied cell. Thanks kindly |
|
|
|
|
|
#2 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Hi
Try this Code:
Sub SumIt()
Range("P65536").End(xlUp).Cells(2, 1) = _
"=SUM($P:" & Range("P65536").End(xlUp).Address & ")"
End Sub
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|