+ Reply to Thread
Results 1 to 3 of 3

VB Help: Double Clicking a cell and different cells pdating

  1. #1
    Registered User
    Join Date
    01-15-2014
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2003
    Posts
    2

    VB Help: Double Clicking a cell and different cells pdating

    Hey everyone,

    I am trying to write a VB code that when I double click on a particular cell, two cells on a different tab update to the column heading and row heading. For example, in the data below, if I double click the cell in D3, I should get the cell "B1" in another tab to update to "b" and the cell underneath it, "B2" to update to "2".

    PHP Code: 
     Sheet1                                                                                       Sheet2
     
                A          B           C            D           E           F                              A            B         C
            1                           1            2            3          4                          1   Letter
    :     b
            2             a                                                                               2   Number
    :   2
            3             b                                                                               3
            4             c
            5 
            6 
    Any help would be very useful. Please keep in mind that I have never used this help forum before, so any advice on how to use this forum better would be helpful as well. Thank you all!
    Last edited by nworner; 01-15-2014 at 03:25 PM.

  2. #2
    Forum Contributor gsnidow's Avatar
    Join Date
    07-22-2010
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2007
    Posts
    150

    Re: VB Help: Double Clicking a cell and different cells pdating

    Welcome to the forum. I, for one, am not clear on the logic you are trying to incorporate. For example, what is supposed to happen if you double click "D4"? What is the realtionship between the cell you are clicking, and the cells that are updating?

    Greg
    Just a guy trying to make work stuff easier.

  3. #3
    Registered User
    Join Date
    01-15-2014
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: VB Help: Double Clicking a cell and different cells pdating

    Greg,

    Thanks for the quick reply. I have a table in my first tab. Lets say that the row headings are a,b,c and the column headings are 1,2,3,4. My goal is to create a macro that when I double click on the cell that corresponds to the cell row and column from the table, I will get two cells on a separate tab that update to what the row value was and what the column value was.

    So I want to relate the row heading and the column heading for a particular cell to the output cells. So in the example that I gave earlier, when I double click the cell "D4" I want the letter to be c and the number to be 2. Because "D4" corresponds to row c and column 2 from my table.

    Hopefully this makes more sense. I really appreciate your help!

    It might make more sense if you open the Excel sheet attached. There is no coding in it, but it shows the layout of what I am talking about and the comment shows what I want as a result.

    Once again thank you for the help!
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Change cells back to original conditions by double clicking another cell
    By Bonnister in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2013, 10:21 AM
  2. Double clicking cells with formula
    By Snaffler1802 in forum Excel General
    Replies: 2
    Last Post: 08-26-2008, 09:03 AM
  3. double clicking on cells to filter data
    By baz0912 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-26-2008, 09:01 AM
  4. [SOLVED] Worksheet Scrolls screen length when double-clicking between cells
    By Pam Davis in forum Excel General
    Replies: 1
    Last Post: 08-31-2005, 09:05 AM
  5. [SOLVED] see the cells the formula relates to by double clicking the cell
    By pvagolfer in forum Excel General
    Replies: 1
    Last Post: 05-15-2005, 08:06 PM

Tags for this Thread

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