+ Reply to Thread
Results 1 to 5 of 5

Vlookup to leave values and disappear automatically

Hybrid View

  1. #1
    Registered User
    Join Date
    12-22-2017
    Location
    Virginia
    MS-Off Ver
    2010
    Posts
    6

    Smile Vlookup to leave values and disappear automatically

    Hello,

    I found a lot of manual ways, but I'm trying to make this as idiot proof as possible. When I select the "product category" on row 6, I have the values pulling into Row 25. I would like for the VLOOKUP to leave the values automatically to prevent user error? Is there an easy way to do this? Thanks!

    Aaron
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Vlookup to leave values and disappear automatically

    Hi Aaron and welcome to the forum,

    I think you are looking for Cascading Dropdown Lists. You need to learn Named Ranges to the trick. See:

    https://www.ablebits.com/office-addi...n-lists-excel/
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    12-22-2017
    Location
    Virginia
    MS-Off Ver
    2010
    Posts
    6

    Re: Vlookup to leave values and disappear automatically

    Hi Marvin, It looks like all the values that I'm pulling in will be a drop down list thought. That's a lot of selection.

  4. #4
    Registered User
    Join Date
    12-22-2017
    Location
    Virginia
    MS-Off Ver
    2010
    Posts
    6

    Re: Vlookup to leave values and disappear automatically

    Can someone help me out? I've seen a few macros that do this, but can't get them to work.

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Vlookup to leave values and disappear automatically

    Hi,

    Right-click the worksheet tab, then select View Code and paste this code in
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Not Intersect(Target, Range("B6")) Is Nothing Then
            On Error Resume Next
            Application.EnableEvents = False
            Range("B25").Value = Application.VLookup(Range("B6"), Sheets("Minimum Information").Range("B:C"), 2, False)
            Application.EnableEvents = True
        End If
            
    End Sub
    Don
    Please remember to mark your thread 'Solved' when appropriate.

+ 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. Run a macro automatically when you leave a worksheet
    By jw191 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2022, 10:27 AM
  2. VLOOKUP values from multiply sheets, automatically
    By mary26 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-17-2015, 08:22 AM
  3. Replies: 2
    Last Post: 08-06-2013, 01:58 AM
  4. [SOLVED] Formulas disappear from cell and keeps values only
    By gmgree in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-20-2012, 11:07 AM
  5. How to automatically change Leave status to shortform in a drop down list?
    By fuzzy1203 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2012, 01:12 AM
  6. VLOOKUP Personal.xls - how to make values update automatically
    By maff in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-18-2008, 03:23 PM
  7. Linked values just won't disappear
    By Zwerk in forum Excel General
    Replies: 2
    Last Post: 07-16-2008, 03:24 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