+ Reply to Thread
Results 1 to 2 of 2

Open file and find a value in it

  1. #1
    Registered User
    Join Date
    05-08-2012
    Location
    Budapest
    MS-Off Ver
    2010
    Posts
    33

    Open file and find a value in it

    Hello

    I have the next question.
    i have a workbook, and i would like to run a macro in it, which i can compare two files. I have the macro to the compare.But
    i must open the file which i need to the comparasion and then search in it.
    so far, i had always the same file name, which i opened.
    now i have always different file (name) which i have to search.

    this were the code, when my file name was always the same

    keres = "'[pelda.csv]pelda'!$A$3:$A$1000"

    now i first need to open a file what names are forexample 82 or 85 or 69 ...etc.
    and then do the search. but i don't know how can i do this.

  2. #2
    Forum Contributor wallyeye's Avatar
    Join Date
    05-06-2011
    Location
    Arizona
    MS-Off Ver
    Office 2010, 2007
    Posts
    308

    Re: Open file and find a value in it

    You can allow the user to browse for a file name:

    Please Login or Register  to view this content.
    If you have a set folder but not a set file, you can do something similar by looping through all the files in a folder. Post back if you need something different.

+ 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