+ Reply to Thread
Results 1 to 7 of 7

If Statement in a Range

  1. #1
    Registered User
    Join Date
    02-26-2007
    Posts
    11

    If Statement in a Range

    Is there a way to write an if statement to detect in a specific range if a certain number is within that range. And when found display a msgbox

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    This might help

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    02-26-2007
    Posts
    11

    Find Numbers on a WorkSheet

    just say I want to find Number "2" on a worksheet and if its more than one number "2" select them all. How can I accomplish this with code.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-26-2007
    Posts
    11

    Find Method

    In my program I have a Find method looking for value 1010 and its picking up other values in my worksheet like "6081110101", "1001" and "1000".

    Here is the Code I have. Is there a way to match entire cell contents? for a more detail search.

    Please Login or Register  to view this content.
    Last edited by VBA Noob; 03-18-2007 at 01:16 PM.

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480
    This site may be of some help

    http://www.rondebruin.nl/find.htm

  7. #7
    Registered User
    Join Date
    02-26-2007
    Posts
    11
    That link helped alot!!!! Thanks!!!!!

+ 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