redspanna
Well-known Member
- Joined
- Jul 27, 2005
- Messages
- 1,604
- Office Version
- 365
- Platform
- Windows
Hi all
I would like some help with code that will look down column A and find first blank cell, once found place a simple formula through columns K:AC of that coresponding row. The formula would SUM all the cells above until blank row is found IN COLUMN I
I have this code that (I think) will find first blank row..
but not sure if correct and/or how to complete the code to add the formula required
thanks in advance
I would like some help with code that will look down column A and find first blank cell, once found place a simple formula through columns K:AC of that coresponding row. The formula would SUM all the cells above until blank row is found IN COLUMN I
I have this code that (I think) will find first blank row..
Code:
Dim LastRow As Long
LastRow = Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
Dim rng As Range
For Each rng In Range("A4:A" & LastRow)
If rng = "" Then
thanks in advance