+ Reply to Thread
Results 1 to 5 of 5

Need a VBA code to locate specific range

  1. #1
    Registered User
    Join Date
    08-15-2021
    Location
    Saudi Arabia
    MS-Off Ver
    2016 & 365
    Posts
    26

    Post Need a VBA code to locate specific range

    Good day!

    I am trying to locate the exact range.

    Formula:
    =ADDRESS(MAX(INDEX((A:A=F2)*ROW(A:A),0))*1,1) Result:$A$24

    Need a code to search/locate "A24" once you click on it.
    Attached Files Attached Files
    Last edited by zelda13; 08-16-2021 at 07:17 AM.

  2. #2
    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,420

    Re: Need a VBA code to locate specific range

    You could use a Selection Change Event handler monitoring cell H2. And use Application.GoTo to go to the cell.

    Can't give a full and tested solution as I’m using an iPad at the moment.
    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


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

    Re: Need a VBA code to locate specific range

    In H2 Cell

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Replace your current formula with the above one.


    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

  4. #4
    Registered User
    Join Date
    08-15-2021
    Location
    Saudi Arabia
    MS-Off Ver
    2016 & 365
    Posts
    26

    Re: Need a VBA code to locate specific range

    Quote Originally Posted by TMS View Post
    You could use a Selection Change Event handler monitoring cell H2. And use Application.GoTo to go to the cell.

    Can't give a full and tested solution as I’m using an iPad at the moment.
    Thanks TMS!

    I'm just new in VBA coding, if you know want I mean.

  5. #5
    Registered User
    Join Date
    08-15-2021
    Location
    Saudi Arabia
    MS-Off Ver
    2016 & 365
    Posts
    26

    Re: Need a VBA code to locate specific range

    Quote Originally Posted by :) Sixthsense :) View Post
    In H2 Cell

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Replace your current formula with the above one.
    Thank you so much Sixthsense

    Your help is greatly appriciated.

+ 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. Need to locate specific sheet, export/save as PDF with a specific filename.
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2018, 09:24 AM
  2. [SOLVED] VBA to locate an empty cell in specific range and add text
    By Sway2119 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-02-2017, 04:24 PM
  3. locate to a specific address
    By SBBmaster09 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2016, 01:29 AM
  4. macro to locate locate text string and copy/paste offset range
    By guystanley in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2014, 08:46 PM
  5. [SOLVED] Macro: Locate specific text within supplied range
    By darrenkaye in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-17-2012, 01:03 PM
  6. Locate a prticular cell in a range that meets a specific criteria
    By SyedHussainRaza in forum Excel General
    Replies: 4
    Last Post: 12-23-2010, 04:33 AM
  7. VBA code using Find to locate text and display the Cell Range.
    By slimla in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-27-2005, 05:05 PM

Tags for this Thread

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