If...Then function

  • Thread starter Thread starter Pingin
  • Start date Start date
P

Pingin

I was wondering if anyone could help me get this to work

If Range("B30:BS30").Formula = "=SUM(B19:B29)" Then
Range("B31:BS31").Value = "yes"
 
Try:

Sub chkFrm()
Dim cell As Range
For Each cell In Range("B30:BS30")
If cell.FormulaR1C1 = "=SUM(R[-11]C:R[-1]C)" Then
cell.Offset(1, 0).Value = "yes"
End If
Next cell
End Sub


Hope this helps
Rowan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top