+ Reply to Thread
Results 1 to 7 of 7

Various cells click to display that cells value in another cell, is a macro the way?

  1. #1
    Registered User
    Join Date
    10-31-2006
    Posts
    61

    Various cells click to display that cells value in another cell, is a macro the way?

    Hi All,

    I will start by saying I am a complete newbie to macros so if there is a simpler way to address my challenge feel free to correct the error of my ways . What I am trying to address is I have a set of data in cells A3:A10 all of which are unique, and instead of having a dropdown in each cell, I would like to be able to select one of those cells in A3:A10 and based on clicking that cell it would place that selection in another cell for example A15. Is the macro route the way to go, and if so how do I go about creating one to address my request. As always any help is greatly appreciated.

    Thx.

    Chris
    Last edited by waternut; 06-26-2019 at 03:01 PM.

  2. #2
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Various cells click to display that cells value in another cell, is a macro the way?

    try this:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-31-2006
    Posts
    61

    Re: Various cells click to display that cells value in another cell, is a macro the way?

    ok still having trouble, of course it is my faulty, (being so new to this) I added the VBA but can't get it to execute. I have attached my file for reference.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Various cells click to display that cells value in another cell, is a macro the way?

    you had the code in a standard module and it needed to go on to sheet1. i fixed the code and it is working now.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-31-2006
    Posts
    61

    Re: Various cells click to display that cells value in another cell, is a macro the way?

    Thats awesome! Thanks so much. For my own learning can you tell me what would make you place the code into a standard module versus being placed directly into the sheet I wanted to use it on? I suppose that if I wanted to place this in multiple sheets but in various locations on those multiple sheets, I would simply need to replicate the code and then adjust the cell references in the code accordingly? Thanks,Chris

  6. #6
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Various cells click to display that cells value in another cell, is a macro the way?

    Quote Originally Posted by waternut View Post
    Thats awesome! Thanks so much. For my own learning can you tell me what would make you place the code into a standard module versus being placed directly into the sheet I wanted to use it on? I suppose that if I wanted to place this in multiple sheets but in various locations on those multiple sheets, I would simply need to replicate the code and then adjust the cell references in the code accordingly? Thanks,Chris
    so yes, just put them on the various sheets and configure. as to whether you use a standard module vs sheet code is that mainly sheet code (and ThisWorkbook) is for events and standard modules are for sub (procedures) though subs can be anywhere.

  7. #7
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Various cells click to display that cells value in another cell, is a macro the way?

    so if this closes out the question, please mark the thread as sloved (thread tools at the top) and click on the Add Reputation in my post if your happy with the results.

+ 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. [SOLVED] Run Macro when click on merged cells
    By Jamesraywebber85 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-05-2018, 05:35 PM
  2. Macro to fill in cells from a column sequentially when I click on a button
    By MaryZ in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-20-2015, 09:39 AM
  3. Create macro upon double click cell display filter in new sheet
    By kamalhilmi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-14-2012, 07:40 AM
  4. Is there a macro that can double click on a range of cells?
    By xiaodi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2011, 11:12 PM
  5. Click on cell, that cells value shows up in A2
    By Oly Steel Man in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2011, 09:59 AM
  6. How to click macro - Move right 15 cells - Next click move back to home position
    By Launchnet in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-05-2010, 10:47 PM
  7. Mouse click in several cells to sum in other cell
    By Blue_Wings in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-07-2010, 12:39 PM

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