+ Reply to Thread
Results 1 to 6 of 6

Open workbook based on combobox selection

  1. #1
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 2010
    Posts
    688

    Open workbook based on combobox selection

    Folks,

    I have a workbook with a combobox1 to open some other workbooks which I saved in a share drive ("G:\public\Department"). The combobox values and workbook names are same. How I can open a workbook based on combobox selection by using VBA? Thanks in advance.

    Joshi
    Last edited by krjoshi; 03-19-2012 at 11:13 AM.

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

    Re: Open workbook based on combobox selection

    Depends what the ComboBox contains. Attach an example and/or provide more information
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 2010
    Posts
    688

    Re: Open workbook based on combobox selection

    Hi roy,
    The combobox contains the list of workbook names which I already saved in a share drive ("G:\public\Department"). The workbooks name and combobox values are same. If I select combobox value "SDG" then I want to open "SDG" workbook from share drive.

    Thanks in advance.

    Joshi

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

    Re: Open workbook based on combobox selection

    If you are using an ActiveX combobox something like

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 2010
    Posts
    688

    Re: Open workbook based on combobox selection

    Hi royUK,

    Thanks a lot. It is working well.

    Joshi

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

    Re: Open workbook based on combobox selection

    Glad it helped.

+ 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