A formula cannot performs an action / method like "INSERT ROW" It only returns DATA(s). So, you need a macro '-------------- Sub InsertRowBelowYes() ' by siti Vi / may 12, 2010 Dim MyRng As Range, r As Long, c As Integer Set MyRng = ActiveSheet.UsedRange For r = MyRng.Rows.Count To 1 Step -1 For c = 1 To MyRng.Columns.Count If LCase(MyRng(r, c).Value) = "yes" Then MyRng(r + 1, c).EntireRow.Insert Exit For End If Next c Next r End Sub
On May 11, 5:56 pm, Puttu <puttu...@gmail.com> wrote: > Hi Experts, > I need help , I need a macro or formula where as in excel where ever I > found YES it should insert additional row bleow to that YES. > Can you please help me. > Thanks > Puttu -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 6,800 subscribers worldwide and receive many nice notes about the learning and support from the group.Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe