+ Reply to Thread
Results 1 to 3 of 3

VBA - Find cell in a range

  1. #1
    Registered User
    Join Date
    07-01-2020
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    2

    VBA - Find cell in a range

    Hello guys!

    I've been battling with this for a bit and eventually decided to swallow my pride and ask.

    I am trying to select a cell in a range based on the value that has been input in another range. This helps me updating a specific field by then pasting values below the selected cell. The below seems to fail at the Selection.Find step. As far as I can tell stepping through the variables are stored correctly. I tried a few alternatives (look for formulas instead of values for example) but no luck, I am a complete amateur with VBA though. Any ideas?

    Thanks!
    Fede


    Please Login or Register  to view this content.
    Last edited by davesexcel; 07-01-2020 at 05:54 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: VBA - Find cell in a range

    "search_value"
    search_value is a variable, it should not be in quotes
    After activeCell may not work as you have the entire range selected. maybe change to range("A1")
    Last edited by davesexcel; 07-01-2020 at 05:59 AM.

  3. #3
    Registered User
    Join Date
    07-01-2020
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    2

    Re: VBA - Find cell in a range

    Argh what a dummy! Many thanks it worked

+ 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] Search Range, find criteria, offset, copy and paste to blank cell in new specified range
    By fellodan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-14-2019, 01:42 PM
  2. Replies: 1
    Last Post: 03-02-2015, 11:18 AM
  3. Code look through range of cells, find blanks & delete cell range in the same row,
    By EagleInsight in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-10-2014, 11:24 AM
  4. Find blank cell, insert formula to find median of above cell range
    By lilyeye in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-05-2013, 11:58 AM
  5. macro to find text string in cell range and paste in other cell range
    By slearner1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2013, 11:15 AM
  6. Range.Find to find column and place value in next available cell in one line
    By davegugg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2011, 10:41 AM
  7. find row no. of particular cell in a range and find last entry in that row
    By VishalGupta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2011, 01:29 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