+ Reply to Thread
Results 1 to 5 of 5

referencing cells in relation to the active cell

  1. #1
    Registered User
    Join Date
    10-21-2014
    Location
    Milton Keynes, England
    MS-Off Ver
    2007
    Posts
    3

    referencing cells in relation to the active cell

    HI,
    In a database I would often use something like this code to find something relative to a particular cell

    Please Login or Register  to view this content.
    It might not be the best way but it works. But it relies on knowing which particular column the active cell is in.

    However I want to be able to select any cell (say "H72") and then be able to set the contents of "H3" & "B72" as variables or say "R432" and find contents of "R3" & "B432"

    I could use something similar to the above code but it would be a bit convoluted. There must be a better way?

    Any ideas

    Thanks
    Last edited by AnnaBrown; 10-21-2014 at 10:40 AM.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: referencing cells in relation to the active cell

    Does this help?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-21-2014
    Location
    Milton Keynes, England
    MS-Off Ver
    2007
    Posts
    3

    Re: referencing cells in relation to the active cell

    Thanks John.
    I would never have thought of using Activecell.Column

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: referencing cells in relation to the active cell

    You're welcome. Glad to help out and thanks for the feedback. Please comply with the Forum Rules and mark this thread as solved.

    http://www.excelforum.com/forum-rule...rum-rules.html

  5. #5
    Registered User
    Join Date
    10-21-2014
    Location
    Milton Keynes, England
    MS-Off Ver
    2007
    Posts
    3

    Re: referencing cells in relation to the active cell

    thanks wondered how I did that

+ 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] Populate Cell in relation to 3 other cells
    By DawkiT in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-04-2014, 11:53 AM
  2. Replies: 3
    Last Post: 01-04-2010, 02:09 PM
  3. [SOLVED] Referencing Cells without active cell
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2006, 01:05 PM
  4. [SOLVED] referencing the active cell
    By Jim O in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-15-2005, 06:05 PM
  5. [SOLVED] Referencing cells on non-active sheets
    By KellyB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-14-2005, 03:06 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