ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how can I insert lines with the help of formulas (https://www.excelbanter.com/excel-worksheet-functions/184647-how-can-i-insert-lines-help-formulas.html)

Gurdeep Kalra

how can I insert lines with the help of formulas
 
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

Gary''s Student

how can I insert lines with the help of formulas
 
Sub Macro1()
With ActiveCell
If .Value = False Then
.EntireRow.Insert
End If
End With
End Sub
--
Gary''s Student - gsnu200781


All times are GMT +1. The time now is 06:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com