shreyanshshah2
New Member
- Joined
- Mar 18, 2021
- Messages
- 8
- Office Version
- 365
- Platform
- Windows
Hi, I am trying to update a formula on a cell using VBA. so far this is my Code
the formula I need is this
=IF('Data'!F42=B10,"X","")
Dim i As Integer
i=1
Do While i <= 1000
ActiveSheet.Range("C10").Select
ActiveCell.Formula=_
"=IF(('Data'!" & Cells(i +41,6))= B10,""X"","""")"
But i am getting an error. Please help me with this
the formula I need is this
=IF('Data'!F42=B10,"X","")
Dim i As Integer
i=1
Do While i <= 1000
ActiveSheet.Range("C10").Select
ActiveCell.Formula=_
"=IF(('Data'!" & Cells(i +41,6))= B10,""X"","""")"
But i am getting an error. Please help me with this