HI i'm ind the process of make a function that insert a new line under the actvie copies the formalu from the above line. after this it should create a new line in another sheet an the same location, which is indicated be the selected active cell. This new line in the other sheet should have a link to cells in the first sheet
my code looks like this my find function does work or that i was think is wrong gInt = ActiveCell Cells(1, 1).Value = gInt 'Insert row below active cell ActiveCell.Offset(1).EntireRow.Insert 'copy the entrier information from the above row ActiveCell.EntireRow.Copy ActiveCell.Offset(1).EntireRow.PasteSpecial Paste:=xlPasteFormulas 'goto the other sheet Sheets("Sheet2").Select Cells(1, 1).Value = gInt Dim rFound As Range ' simple find rFound = Application.WorksheetFunction.Match(gInt, Range("c5:c65000"), 0) Application.Goto rFound, True 'Insert row below active cell ActiveCell.Offset(1).EntireRow.Insert 'Copy link to cell in other sheet as define in Dummy_row2 Range("C4:I4").Copy Application.Goto rFound, True ActiveCell.Offset(1).PasteSpecial any help would be highly appricated -- ---------------------------------------------------------------------------------- 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 7000 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