+ Reply to Thread
Results 1 to 4 of 4

Find and activate first cell on currrent row containing...

  1. #1
    Registered User
    Join Date
    06-04-2014
    Posts
    34

    Find and activate first cell on currrent row containing...

    Hi!
    I have a a specific value in column D, and the same valuein columns AI to CU. I want a button on every row, to find and select the first cell between AI and Cu, on the row the button is placed, that contain the same value as in column D. How would that macro look like? Thanks!

    EDIT: Perhaps I should have mentioned that the value in the columns between AI and CU is returned by a formula more or less copying the value from column D.
    Last edited by jeppenedved; 02-21-2019 at 07:04 AM.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Find and activate first cell on currrent row containing...

    This is easier than inserting a button on every row
    - after adding code simply Right-Click in column D to see if that value is found
    - looking for an EXACT match

    Put code in sheet module
    right-click on sheet tab \ select View Code \ paste code into code window \ {ALT{F11} to go back tio Excel
    Please Login or Register  to view this content.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Find and activate first cell on currrent row containing...

    The Approach is all Wrong.

    1. You need an unspecified number of rows and therefore buttons.
    Programming for that and creating the buttons would be a nightmare.

    All that can be avoided by using all cells in a specified column as if they were buttons.

    Right Click on your sheet name at the bottom of excel and select view code.

    Paste this code into the module that opens and close it.

    Please Login or Register  to view this content.


    2. Click on any cell in column D
    The Macro will select the matching cell on the same row within columns AI and CU.

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 02-21-2019 at 08:00 AM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Registered User
    Join Date
    06-04-2014
    Posts
    34

    Re: Find and activate first cell on currrent row containing...

    Awesome! You just saved me a whole bunch of hours putting in button to about 300 rows! Much appreciated, thanks!

+ 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] Find value from cell reference in a list and activate cell where found
    By Albert Toet in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-25-2019, 10:55 PM
  2. adding a % value to a currrent formula from another cell
    By pmw19800 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-05-2018, 03:36 AM
  3. [SOLVED] Find and activate cell via userform
    By GSTVBA in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-18-2017, 04:15 AM
  4. VBA Code to activate cell if text is found in cell, if not find next value
    By snelson0713 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-01-2013, 11:31 AM
  5. [SOLVED] Find last row in a worksheet and activate cell in column H
    By LiLi1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-23-2012, 02:20 PM
  6. [SOLVED] Activate cell in column B after performing Find
    By excelnut1954 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2006, 02:10 PM
  7. Find a cell with a special value and activate it
    By Mirja in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2005, 09:06 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