+ Reply to Thread
Results 1 to 5 of 5

Open excel file by providing a part of file name through inputbox

  1. #1
    Registered User
    Join Date
    05-21-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    73

    Open excel file by providing a part of file name through inputbox

    Hi,

    I need a VB code to open excel files located in a path (fixed path) by providing a part of file name through a input box
    for ex: I have some files located in my local drive as below
    1. colurgreen.xls
    2. colurred.xls
    3. colurblue.xls

    I need a input box asking for file name and I input "green" or "red" or"blue" and it should open the resp file.

    Any help is greatly appreciated.

    Thanks
    SB
    Thanks
    Babu.S

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Open excel file by providing a part of file name through inputbox

    Please Login or Register  to view this content.
    It finds files - not opens them... A minor change for you to do.

  3. #3
    Registered User
    Join Date
    05-21-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Open excel file by providing a part of file name through inputbox

    Thanks cytop, it works well to find the file.
    any other suggestions to open a file?

  4. #4
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Open excel file by providing a part of file name through inputbox

    Yes, use the standard VBA coding to open a workbook.

    You should be able to find any number of examples in about 30 seconds....

  5. #5
    Registered User
    Join Date
    05-21-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Open excel file by providing a part of file name through inputbox

    Thanks cytop.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 10-23-2013, 12:54 AM
  2. [SOLVED] open variably named file, copy/paste data into consolidation file, open next file in list
    By sllawrence1968 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2012, 09:49 PM
  3. VBA for excel 2003. Open file dialog box, open 2007 file xlsx, continue with code
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2011, 12:12 AM
  4. Inputbox to open a file
    By jamesstorx in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-11-2010, 02:45 PM
  5. Want to save a file with part of the name derived from an inputbox
    By camcrazy08 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2007, 04:24 PM

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