Hi Neeraj,
Try this: Sub FindFormula() Dim rngDtRange As Range Const strDataRange As String = "B1:B1000" With ThisWorkbook.Worksheets("Sheet1").Range(strDataRange) For Each rngDtRange In .Range(strDataRange) If rngDtRange.Formula like "=RandBetween*" Then rngDtRange.Offset(, 1).Formula = rngDtRange.Formula End If Next rngDtRange End With End Sub Regards, Lalit Mohan www.excelfox.com/forum From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Prince Dubey Sent: Saturday, June 30, 2012 6:23 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Re: Book3.xlsx Hi Neeraj, Try Out This, Sub test() Dim rng As Range Dim intCount As Integer Application.ScreenUpdating = False With ThisWorkbook.Worksheets("Sheet1") Set rng = .Range("A1").CurrentRegion For intCount = 2 To rng.Rows.Count If InStr(1, rng.Cells(intCount, 2).Formula, "RandBetween", vbTextCompare) <> 0 Then rng.Cells(intCount, 2).Copy rng.Cells(intCount, 3).PasteSpecial (xlPasteAll) Application.CutCopyMode = False End If Next End With Application.ScreenUpdating = True End Sub Regards Prince Dubey. On Friday, 29 June 2012 12:11:51 UTC+5:30, neeraj chauhan wrote: Dear Experts, I have a sheet kindly find it, if we have two formulas in one "B" Colum and I want to paste special only one (Randbetween) formula then how can I do it? Kindly find the attached sheet for the concerned. -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ---------------------------------------------------------------------------- -------------------------- To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com