+ Reply to Thread
Results 1 to 7 of 7

Show me the address of the active cell in a certain cell

  1. #1
    Registered User
    Join Date
    12-25-2017
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    25

    Question Show me the address of the active cell in a certain cell

    Hello,

    I would like to have that the address of the active cell of a sheet is shown in a certain cell of another sheet.

    Can this be programmed as a "Sub" or even better as a "Function"?

    Thank you very much for your help

    Florian

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Show me the address of the active cell in a certain cell

    sure,
    you can even do it in a formula
    in cell H3
    Please Login or Register  to view this content.
    The result is $C$3

    But a macro

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by Keebellah; 06-01-2018 at 05:57 PM.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    12-25-2017
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    25

    Re: Show me the address of the active cell in a certain cell

    Dear Keebellah,

    thanks for your reply.

    There seems to be a misunderstanding.

    I'd like to have a cell in sheet (e.g. A1) which always outlines the active cell of a sheet.

    Thus, if I select B3, in A1 is displayed "B3"; if I click then on C26, in A1 is displayed "C26".

    Hope these details bring a little light into the dark.

    Florian

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Show me the address of the active cell in a certain cell

    Maybe this ? Put in sheet module.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Show me the address of the active cell in a certain cell

    @ Bakerman2

    You don't need to use replace to create an relative address. The address property has this built-in to it.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  6. #6
    Registered User
    Join Date
    12-25-2017
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    25

    Re: Show me the address of the active cell in a certain cell

    Hello bakerman and Leith,

    thanks a lot for your replies.

    It works now perfectly.

    Florian

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Show me the address of the active cell in a certain cell

    @ Leith

    Thanks for head's up.

    @ Florian

    Glad to help.

+ 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] Return Cell Address for Active/Selected Cell
    By magicaces84 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2014, 11:56 AM
  2. [SOLVED] One TextBox Show Column and the other show Cell address Solved by : ragulduy
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-26-2014, 05:17 AM
  3. [SOLVED] Trying to change font in a frozen cell based on the address of the active cell. Possible?
    By sdavison in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2013, 01:23 AM
  4. Replies: 3
    Last Post: 01-10-2013, 10:17 AM
  5. Change cell values based on Active Cell Address in Excel 2007 with no VBA
    By bdmistri in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2009, 02:01 PM
  6. Repeat: Active Cell's Address
    By Milind in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2005, 09:05 PM
  7. address of active cell
    By pikapika13 in forum Excel General
    Replies: 3
    Last Post: 05-04-2005, 02:51 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