+ Reply to Thread
Results 1 to 4 of 4

Open Filepath and then display number of sheetnames using VBA

  1. #1
    Registered User
    Join Date
    09-21-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    8

    Open Filepath and then display number of sheetnames using VBA

    Hi Experts,
    I need help here. I am trying to use VBA to open and display a Filepath from another excel file and then respectively list/display a list of Sheetnames inside that file, in another cell or a drop down list. I have done my homework and I have problems trying to merge the 2 VBA scripts below.

    To Open File Path and display at Cell D5
    --------------------------------------------------------
    Please Login or Register  to view this content.

    To list down the names of the sheet.
    --------------------------------------------------------
    Please Login or Register  to view this content.
    ---------------------------------------------------------


    Any kind soul can assist please.
    Would really appreciate it.
    Last edited by davesexcel; 09-21-2010 at 06:05 AM. Reason: Code tags are required when supplying code, check out the forum rules

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Open Filepath and then display number of sheetnames using VBA

    Hi fodio,
    Kris http://krisexcelpostings.blogspot.com/
    has done all the hard work with this example
    Attached Files Attached Files
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    09-21-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Open Filepath and then display number of sheetnames using VBA

    Quote Originally Posted by pike View Post
    Hi fodio,
    Kris http://krisexcelpostings.blogspot.com/
    has done all the hard work with this example
    Hi Pike, Many thanks for your response.
    This is sweet

    But however, what i wanted it to do is when it list out the Worksheet name on Listbox2, i want it upon Double Clicking will list the name of the Worksheet name on Range("d5").Value

    Is this possible if you can assist me with it, i tried but couldn't.

    Many thanks.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Open Filepath and then display number of sheetnames using VBA

    Not sure which version of excel you have but there's a free navigator addin here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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