Results 1 to 2 of 2

Thread: Excel Problem

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2003
    Posts
    51

    Unhappy Excel Problem

    Please help. I'm trying to get info from a excel spreadsheet into Visual basic.I want to find any excel files that have a certain word in a specifed cell and then get all the contents out of these files and display them on a form in vb?? Is this poss???? So far all i can manage to do is open the excel file.

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    If you can open it, you can read it!
    Assuming your Excel-WorkbookObject is called objExWorkBooK and the Cell in question is in Row 1 and Column 1.

    VB Code:
    1. if objExworkBook.Sheets("Name_of_Sheet").Cells(1,1).Value="The_Certain_word" then
    2. 'get the other cells info here
    3. End if
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

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