Macro to change a formula to a value

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi. Another variation of an earlier thread ( thank Bob P).

I have a formula in Col M (Rows 2 thru 2000) and Col G (Rows 2 thru 2000).


I would like to change the formula in COL M to its value if the formula in
Col G has value "True".

Is this possible ?

Thank you in advance.
 
Enter and run this small macro:

Sub demo()
For i = 2 To 2000
If Cells(i, "G").Value = True Then
Cells(i, "M").Value = Cells(i, "M").Value
End If
Next
End Sub
 

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