+ Reply to Thread
Results 1 to 4 of 4

Use address of cell found with index/match as range location

  1. #1
    Registered User
    Join Date
    02-05-2021
    Location
    United States
    MS-Off Ver
    365
    Posts
    2

    Use address of cell found with index/match as range location

    Hello,

    I'm having trouble using a cell address found with index match as my range. Here is what I'm currently doing:

    Please Login or Register  to view this content.
    Right now I'm just dumping that into a user form text box to make sure it's returning what I want, and it is. Now I'd like the user to be able to change the text in that box and overwrite the cell I just pulled that info from. I have it working on the option button click to populate say range("A1") but for the life of me I can't figure out how to get it to populate the range returned by the index match. What am I doing wrong?

    Thanks in advance!
    Last edited by AliGW; 02-06-2021 at 04:54 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,609

    Re: Use address of cell found with index/match as range location

    Two comments and some input:

    First comment: have a look near the top of the page on a yellow banner. If you'd attach file, one would know where the new content is taken from.

    A merit input: If your solution works returning proper address of the cell then such approach:
    Please Login or Register  to view this content.
    shall do the job.

    and second comment: Note that the code above is embedded between CODE tags - please edit your post to comply with one of the forum rules. See:

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    Best Regards,

    Kaper

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,416

    Re: Use address of cell found with index/match as range location

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. As you are new here, I have done it for you today.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    02-05-2021
    Location
    United States
    MS-Off Ver
    365
    Posts
    2

    Re: Use address of cell found with index/match as range location

    My mistake.

    I was able to get it to work by setting dim to
    Please Login or Register  to view this content.
    and using
    Please Login or Register  to view this content.
    instead of
    Please Login or Register  to view this content.
    Thanks for the input, though!

+ 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. Link Formatting of Another Cell That Is Found Using Index, Match, and Conditional
    By wayum999 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-24-2019, 10:49 PM
  2. trying to match value with a range and paste information into found location
    By BaronVonBeefDip in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-04-2019, 05:32 AM
  3. [SOLVED] INDEX/MATCH generates incorrect result by referencng nearest cell if match not found
    By aglawrence in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-29-2017, 08:59 AM
  4. [SOLVED] Get cell address (range) from shape location
    By Fattyfatfat Kid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-30-2015, 05:33 PM
  5. [SOLVED] Using Address, Index, Match and Max to give the cell location
    By JmundleBofA in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-26-2014, 07:23 PM
  6. VBA Code to Replace Cell Value when Address found by Index/Match
    By Rubert in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2013, 10:27 AM
  7. INDEX, MATCH: I want to get the first cell address where value is >= 2
    By angel1980 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2013, 02:28 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