thegamemike
New Member
- Joined
- Mar 26, 2019
- Messages
- 7
=ADDRESS(MATCH(IDNum,Database!C:C,0),MATCH(D10,Database!1:1,0))
***I want to replace the "CELLEXP" on the below code with the above formula, is that possible..? Please help.. Thanks.***
***My goal is to know which cell to add the "ExpAmt" to.
Sub AddExpense()
Dim d As Double
Dim rngClear As Range
Dim inputWks As Worksheet
Set inputWks = Worksheets("Data Input")
Set rngClear = inputWks.Range("ExpenseClear")
d = Range("CELLEXP").Value
Range("CELLEXP").Formula = "=" & d & "+ExpAmt"
rngClear.ClearContents
End Sub
***I want to replace the "CELLEXP" on the below code with the above formula, is that possible..? Please help.. Thanks.***
***My goal is to know which cell to add the "ExpAmt" to.
Sub AddExpense()
Dim d As Double
Dim rngClear As Range
Dim inputWks As Worksheet
Set inputWks = Worksheets("Data Input")
Set rngClear = inputWks.Range("ExpenseClear")
d = Range("CELLEXP").Value
Range("CELLEXP").Formula = "=" & d & "+ExpAmt"
rngClear.ClearContents
End Sub