seekker2008
New Member
- Joined
- Jan 9, 2019
- Messages
- 4
hi there, can someone pls help. I'm trying to add found cell address to a formula but can't get it to work
my code so far
Dim LL
l = Application.Match("Delivery", Range("1:1"), 0)
If IsError(l) Then
On Error Resume Next
End If
Columns(l).Select
LL = Cells(2, ActiveCell.Column)
'LL = Columns(L).Cells(2, 1).Address(0, 0)
'Range("aa1") = LL
Dim pp
p = Application.Match("Movement Type", Range("1:1"), 0)
If IsError(p) Then
On Error Resume Next
End If
Columns(p).Select
pp = Cells(2, ActiveCell.Column)
Range("S2").Select
ActiveCell.Formula = "=sum(ll.address & pp.address)"
my code so far
Dim LL
l = Application.Match("Delivery", Range("1:1"), 0)
If IsError(l) Then
On Error Resume Next
End If
Columns(l).Select
LL = Cells(2, ActiveCell.Column)
'LL = Columns(L).Cells(2, 1).Address(0, 0)
'Range("aa1") = LL
Dim pp
p = Application.Match("Movement Type", Range("1:1"), 0)
If IsError(p) Then
On Error Resume Next
End If
Columns(p).Select
pp = Cells(2, ActiveCell.Column)
Range("S2").Select
ActiveCell.Formula = "=sum(ll.address & pp.address)"