+ Reply to Thread
Results 1 to 6 of 6

Macro to return the value of an identical cell location in another sheet?

  1. #1
    Registered User
    Join Date
    03-09-2015
    Location
    UK, Glasgow
    MS-Off Ver
    2015
    Posts
    19

    Macro to return the value of an identical cell location in another sheet?

    Hi,

    First of of all thanks to Tsjallie - was a great help on my last question. This question should be easier.

    I'm looking for a macro that will return the cell contents of the identical cell location in another sheet.

    Sheet 1 has the button to enable the macro, with the result box beside the button. The macro itself should wait for a mouse click (on cell J12, sheet 1 for example). Once the click registers, the macro should return the value of J12 on sheet2, in the results box (which is on sheet1). I know this is quite simple but I have absolutely zero software skills. Hoping someone can help!

    Thanks

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Macro to return the value of an identical cell location in another sheet?

    What do you mean by the word result box ?

    Is it cell or Form Textbox?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    03-09-2015
    Location
    UK, Glasgow
    MS-Off Ver
    2015
    Posts
    19

    Re: Macro to return the value of an identical cell location in another sheet?

    A cell would be fine

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: Macro to return the value of an identical cell location in another sheet?

    Sounds like a Worksheet Selection Change event handler would pick up the address of the currently selected cell so you could retrieve the contents of the same cell on another sheet.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Macro to return the value of an identical cell location in another sheet?

    Change A5 to your desired Cell.

    Copy the below code and do right click on sheet tab and select view code and paste it.

    Close the VBA window (Alt+Q to close VBA window) and return to that sheet and check.

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-09-2015
    Location
    UK, Glasgow
    MS-Off Ver
    2015
    Posts
    19

    Re: Macro to return the value of an identical cell location in another sheet?

    Thanks again - works a treat!

    Quote Originally Posted by :) Sixthsense :) View Post
    Change A5 to your desired Cell.

    Copy the below code and do right click on sheet tab and select view code and paste it.

    Close the VBA window (Alt+Q to close VBA window) and return to that sheet and check.

    Please Login or Register  to view this content.

+ 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. Find address and return GPS location from another sheet
    By shelbygt500 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2014, 04:35 AM
  2. Compare contents of two cell and return true if identical
    By SHOMAN in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-14-2013, 04:27 AM
  3. [SOLVED] How to search for identical cell in columns and return the correct value
    By caooi23 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-15-2013, 11:33 AM
  4. [SOLVED] [Help]macro to open file browser, to select a location, and save the location to a cell
    By zhuleijia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2013, 09:56 AM
  5. Replies: 4
    Last Post: 08-01-2006, 06:39 AM

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