Hi Neeraj,
 
Hope it helps you
 
Sub FindFormula()
    Dim rngDtRange                      As Range
    Const strDataRange                  As String = "B1:B1000"
    Dim firstAddress                    As String
    Const strFindFormula                As String = "=RANDBETWEEN?"
    With ThisWorkbook.Worksheets("Sheet1").Range(strDataRange)
        Set rngDtRange = .Find(what:=strFindFormula, LookIn:=xlFormulas)
        If Not rngDtRange Is Nothing Then
            firstAddress = rngDtRange.Address
            Do
                rngDtRange.Offset(, 1).Value = 
Replace(Replace(strFindFormula, "=", ""), "?", "")
                Set rngDtRange = .FindNext(rngDtRange)
            Loop While Not rngDtRange Is Nothing And rngDtRange.Address <> 
firstAddress
        End If
    End With
End Sub
 
Regards,
Lalit Mohan

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

Reply via email to