+ Reply to Thread
Results 1 to 4 of 4

Auto Populate sheet name of active workbook in Combobox in Command

  1. #1
    Bhavtosh
    Guest

    Auto Populate sheet name of active workbook in Combobox in Command

    hi all,
    i have an addin which has a Combobox in a commandbar and in the Auto_Open
    event of commandbar impopulating sheet names of active workbook but im not
    able to populate the same when i open another excel file.
    may be because the addin is already open in Excel... pls help how to achieve
    this for any excel file.. am im missing writing code in a particular event???
    --
    thanx..
    Bhavtosh

  2. #2
    Tom Ogilvy
    Guest

    Re: Auto Populate sheet name of active workbook in Combobox in Command

    In you addin you need to instantiate application level events. Then you
    can trap the opening of a workbook

    See Chip Pearson's site for an introduction:

    http://www.cpearson.com/excel/AppEvent.htm

    --
    Regards,
    Tom Ogilvy

    "Bhavtosh" <[email protected]> wrote in message
    news:[email protected]...
    > hi all,
    > i have an addin which has a Combobox in a commandbar and in the Auto_Open
    > event of commandbar impopulating sheet names of active workbook but im not
    > able to populate the same when i open another excel file.
    > may be because the addin is already open in Excel... pls help how to

    achieve
    > this for any excel file.. am im missing writing code in a particular

    event???
    > --
    > thanx..
    > Bhavtosh




  3. #3
    Bhavtosh
    Guest

    Re: Auto Populate sheet name of active workbook in Combobox in Com

    thanx for a gr8 link; it did help in knowing more abt events. one more favor
    if u can do. right now user can type in the combo box how can i prevent it or
    how can i make it just a normal drop down?

    thanx
    bhavtosh

    "Tom Ogilvy" wrote:

    > In you addin you need to instantiate application level events. Then you
    > can trap the opening of a workbook
    >
    > See Chip Pearson's site for an introduction:
    >
    > http://www.cpearson.com/excel/AppEvent.htm
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    > "Bhavtosh" <[email protected]> wrote in message
    > news:[email protected]...
    > > hi all,
    > > i have an addin which has a Combobox in a commandbar and in the Auto_Open
    > > event of commandbar impopulating sheet names of active workbook but im not
    > > able to populate the same when i open another excel file.
    > > may be because the addin is already open in Excel... pls help how to

    > achieve
    > > this for any excel file.. am im missing writing code in a particular

    > event???
    > > --
    > > thanx..
    > > Bhavtosh

    >
    >
    >


  4. #4
    Bhavtosh
    Guest

    Re: Auto Populate sheet name of active workbook in Combobox in Com

    thanx for a gr8 link; it did help in knowing more abt events. one more favor
    if u can do. right now user can type in the combo box how can i prevent it or
    how can i make it just a normal drop down?

    thanx
    bhavtosh

    "Tom Ogilvy" wrote:

    > In you addin you need to instantiate application level events. Then you
    > can trap the opening of a workbook
    >
    > See Chip Pearson's site for an introduction:
    >
    > http://www.cpearson.com/excel/AppEvent.htm
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    > "Bhavtosh" <[email protected]> wrote in message
    > news:[email protected]...
    > > hi all,
    > > i have an addin which has a Combobox in a commandbar and in the Auto_Open
    > > event of commandbar impopulating sheet names of active workbook but im not
    > > able to populate the same when i open another excel file.
    > > may be because the addin is already open in Excel... pls help how to

    > achieve
    > > this for any excel file.. am im missing writing code in a particular

    > event???
    > > --
    > > thanx..
    > > Bhavtosh

    >
    >
    >


+ 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