how can I insert lines with the help of formulas

  • Thread starter Thread starter Gurdeep Kalra
  • Start date Start date
G

Gurdeep Kalra

Hello,

I wanted to insert one line on the basis of values in the above cells
(formula). If formula extracts FALSE then macro should insert one line and do
some calculations.

Pls advise.

Gurdeep
 
Sub Macro1()
With ActiveCell
If .Value = False Then
.EntireRow.Insert
End If
End With
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