Results 1 to 2 of 2

Thread: HELP Make Search In Excel In VBA

  1. #1

    Thread Starter
    Addicted Member señorbadger's Avatar
    Join Date
    Oct 2003
    Location
    Mud pools of wellingborough
    Posts
    193

    Angry HELP Make Search In Excel In VBA

    How can i search though a set of records on a excel sheet, i was wondering

  2. #2
    Addicted Member cutamacious's Avatar
    Join Date
    May 2001
    Location
    INDIA >> Andhra Pradesh >> Hyderabad
    Posts
    185
    use

    VB Code:
    1. intRow = Sheet1.Range("B8", "B45").Find("Some Text").Row

    where sheet1 is the name of the sheet

    B8 / B45 specify the range of cells which u want to search. Her i'm searching all the cells in the range B8 to B45. U can change this according to ur requirements

    Replace the Some Text with the text u want to search.


    This staement will return the row number and hence i'm using a integer varible intRow for the purpose
    Cute Member

Posting Permissions

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



Click Here to Expand Forum to Full Width