+ Reply to Thread
Results 1 to 3 of 3

Value on worksheet with fullstop either side

  1. #1
    FIRSTROUNDKO via OfficeKB.com
    Guest

    Value on worksheet with fullstop either side

    Hi all,

    Can somebody please tell me how to use the value from the worksheet i.e Cell
    F10 to perform the code below

    If Cells(nb, 7).Value Like "*.134.*" Then

    I would like to replace 134 with any number, but there is a double
    complication that the number has a full stop either side of it

    Thanks in Advance

    --
    Message posted via OfficeKB.com
    http://www.officekb.com/Uwe/Forums.a...mming/200608/1


  2. #2
    Bob Phillips
    Guest

    Re: Value on worksheet with fullstop either side

    Do you mean?

    If Cells(nb, 7).Value Like "*." & myNum & ".*" Then


    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "FIRSTROUNDKO via OfficeKB.com" <u15639@uwe> wrote in message
    news:65184d2f20d6e@uwe...
    > Hi all,
    >
    > Can somebody please tell me how to use the value from the worksheet i.e

    Cell
    > F10 to perform the code below
    >
    > If Cells(nb, 7).Value Like "*.134.*" Then
    >
    > I would like to replace 134 with any number, but there is a double
    > complication that the number has a full stop either side of it
    >
    > Thanks in Advance
    >
    > --
    > Message posted via OfficeKB.com
    > http://www.officekb.com/Uwe/Forums.a...mming/200608/1
    >




  3. #3
    FIRSTROUNDKO via OfficeKB.com
    Guest

    Re: Value on worksheet with fullstop either side

    Perfect!

    Bob Phillips wrote:
    >Do you mean?
    >
    >If Cells(nb, 7).Value Like "*." & myNum & ".*" Then
    >
    >> Hi all,
    >>

    >[quoted text clipped - 7 lines]
    >>
    >> Thanks in Advance


    --
    Message posted via OfficeKB.com
    http://www.officekb.com/Uwe/Forums.a...mming/200608/1


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1