+ Reply to Thread
Results 1 to 5 of 5

Browse a file and read its values

  1. #1
    Registered User
    Join Date
    09-17-2012
    Location
    Islamabad, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    10

    Browse a file and read its values

    I have a button in my file which opens a dialog box and gets an excel file path.

    Now how can I read values from that browsed file.
    details

    If the file name obtained by that button is e.g. "D:\temp.xls"

    that button reads and place the file path in cell C3 as D:\temp.xls

    How to read any value from D:\temp.xls?

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Browse a file and read its values

    Perhaps something like this

    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    09-17-2012
    Location
    Islamabad, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Browse a file and read its values

    Thanks
    This indeed reads the values and display them as MsgBox
    Can it paste these values in my currently open workbook?
    Last edited by ahmed471; 09-18-2012 at 04:55 AM.

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Browse a file and read its values

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-17-2012
    Location
    Islamabad, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Browse a file and read its values

    Thanksssssssss

+ 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