+ Reply to Thread
Results 1 to 2 of 2

Double click procedure in an add-in

  1. #1
    Registered User
    Join Date
    04-01-2009
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    1

    Double click procedure in an add-in

    Hi,

    I am creating an add-in in Excel that will be used by various people within a department.

    One of the functionalities I would like to add is a “drill-down” feature that upon double-clicking a number in a cell, Excel would query an Access database and return the detail that makes up the number.

    My question is how to go about this? The Excel/Access interaction is not a problem, but how do I go about getting the double-clicking to work.
    I’ve tried adding the “Workbook_SheetBeforeDoubleClick” sub in the add-in, but that only works if the add-in is active. I need this to work on whatever workbook is currently active (since the add-in is hidden anyway)
    Also cross posted here:
    http://www.mrexcel.com/forum/showthread.php?t=380424
    Any suggestions would be greatly appreciated?
    Thank!

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

    Re: Double click procedure in an add-in

    The double click event is specific to the workbook. Yo cannot use the addin's doubleclick event to work in the active workbook.

    The code should be in a standard module in the addin, you can then add code to the active workbook's double click event to run that macro
    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