+ Reply to Thread
Results 1 to 11 of 11

Double click a cell to display something

  1. #1
    Registered User
    Join Date
    01-20-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    79

    Double click a cell to display something

    Hi, suppose in the excel sheet there are 50 person's names.
    I want to double click a cell then pop out a window and display the corresponding details such as Phone number,address etc.

    Thanks for help.
    Last edited by zhshqzyc; 01-31-2011 at 11:16 PM.

  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 a cell to display something

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

    This will let us know how your data is laid out
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    01-20-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    79

    Re: Double click a cell to display something

    Attached! Suppose I clicked the cell "Sanchez" then display

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Double click a cell to display something

    Are you wanting to just have the Address fly out when you hover your mouse over the cell with the name? or do you want to have to double click to see it?
    Attached Files Attached Files
    Life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.
    John Wright

  5. #5
    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 a cell to display something

    Where's the data to display stored?

  6. #6
    Registered User
    Join Date
    01-20-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    79

    Re: Double click a cell to display something

    Quote Originally Posted by jwright650 View Post
    Are you wanting to just have the Address fly out when you hover your mouse over the cell with the name? or do you want to have to double click to see it?
    Maybe both. It's a long story, actually I want to embed the workbook into a windows form.
    Not sure whether it is an approrite question.

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Double click a cell to display something

    Hi,

    Find the attached that does what I think you want. Double click a name and the Name and Address appear in a Message Box.

    Hope this helps.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  8. #8
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Double click a cell to display something

    Here is my attempt. It differs from MarvinP's mostly in that the addresses are found on another sheet.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-20-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    79

    Re: Double click a cell to display something

    Thanks but I want to know the priciple, how did you do it?

  10. #10
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Double click a cell to display something

    There is a "Before Double Clicking" event on the worksheet module. So, whenever the user double-clicks a cell, it will run this procedure. Then you simply add some conditions to test for (ie, desired range, rtc). Then you display your address in a message box depending on your data structure. MarvinP assumes the address is somewhere in the same row. Whereas my example assumes the address is in another table.

    Does this in any way answer your question? I am not sure how much detail to go into. Have you created macros before and are familiar with the editor?

  11. #11
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Double click a cell to display something

    My answer is shorter and longer than Wizbang's.

    Read http://www.cpearson.com/excel/Events.aspx

+ 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