+ Reply to Thread
Results 1 to 5 of 5

Need Simple VBA: Using ActiveCell to search in another sheet

  1. #1
    Forum Contributor
    Join Date
    02-18-2020
    Location
    Ottawa, ON
    MS-Off Ver
    Professional Plus 2010
    Posts
    122

    Lightbulb Need Simple VBA: Using ActiveCell to search in another sheet

    Hi Guys and Gals,

    I'm brand new at learning VBA and I'm having a hard time with my second ever VBA code.

    Basically, I want to use whatever cell I have currently selected (ActiveCell?) as reference, to search in another worksheet called "Spare Parts" to find a match and bring me there. There will always be a match, and only one as any cell I would be selecting as reference for this search are unique 6-digit numbers. I know this is simple but I still can't figure out the proper code to manage this.

    I tried recording a macro to accomplish this, but I wasn't able to get it working that way.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Need Simple VBA: Using ActiveCell to search in another sheet

    What range on "Spare Parts" will you be looking for the value in?
    And you just want to move to that cell when the match is found?

    BSB

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Need Simple VBA: Using ActiveCell to search in another sheet

    Maybe this will point you in the right direction.

    Please Login or Register  to view this content.
    BSB
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    02-18-2020
    Location
    Ottawa, ON
    MS-Off Ver
    Professional Plus 2010
    Posts
    122

    Re: Need Simple VBA: Using ActiveCell to search in another sheet

    Wow! That worked like a charm. That code is so small, I thought I Would have needed so much more. Thank you for your help, I truly appreciate it. I'll try and dissect how this works now so I can use these tactics later.

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Need Simple VBA: Using ActiveCell to search in another sheet

    Happy to help

    Let me know if you need any of it explained.

    BSB

+ 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. Simple search bar to search data in column
    By Richardph in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-29-2018, 06:32 AM
  2. Simple search box column and retrive results to search box sheet
    By Tanakaka in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-08-2017, 08:47 AM
  3. [SOLVED] Search for data in row before activecell
    By vamosj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-06-2014, 07:01 PM
  4. [SOLVED] Using .Find to search data on sheet but to add new row from the ActiveCell code
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-08-2013, 11:21 AM
  5. VBA - If ActiveCell.Value (from sheet 1) exists in a range in sheet 2
    By nateorious in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2012, 05:25 AM
  6. Output contents of Activecell when Activecell may be string or numeric.
    By jfriddle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2012, 12:27 PM
  7. Replies: 2
    Last Post: 06-25-2010, 12:11 AM

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