+ Reply to Thread
Results 1 to 9 of 9

Use Vlookup vba

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Thumbs up Use Vlookup vba

    hello evryone

    i want to create a userform.
    with using userform i want to add some numbers according few conditions

    e.g

    i want to add some number to my table

    NAME5 = COLUMN A = ADD = 6 Result should be in cell (c7)
    NAME5 = COLUMN B = ADD = 5 Result should be in cell (d7)
    NAME5 = COLUMN C = ADD = 2 Result should be in cell (e7)

    I ATTACHED A SAMPLE FILE

    PLZ SOLVE MY PROBLEM
    Attached Files Attached Files
    Last edited by HaroonSid; 03-18-2014 at 07:31 AM. Reason: solved

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Use Vlookup vba

    Please Login or Register  to view this content.

  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: Use Vlookup vba

    Do double click on Add button and paste the below code...

    Please Login or Register  to view this content.


    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
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Use Vlookup vba

    Sixthsense

    THANX A Lot

    but there is a little problem

    if i want to add a new name like "Name11" then

    this one asked for to add or not
    if
    yes then add
    if
    no then no

    and update the name list

    plz do somthig

  5. #5
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Use Vlookup vba

    thanx for reply Bob Phillips

    sorry but not working

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

    Re: Use Vlookup vba

    Sorry I am unable to follow you...

    Because I already provided code for add button.. and your Post #4 requirement seems to get conflict with my earlier suggestion.

    Can you please show it in revised file with your expected task?

  7. #7
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Use Vlookup vba

    dear Sixthsense
    This code is working perfectly

    HTML Code: 
    in this code
    Please Login or Register  to view this content.
    In ComboBox1 if i add a name which is not in range "B:B" Then a form pop up and asked for "this name is not in range "B:B", do u want to add it in range "B:B"
    if i click on yes
    then
    add it to range "B:B" and update the ComboBox1
    if i click no
    then don't add this to range "B:B"

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

    Re: Use Vlookup vba

    Replace the previous code with the below one

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Use Vlookup vba

    wow..............
    thats working very cool....

    thanx a lot very very much

    best regards
    haroon2015

+ 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. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  2. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  3. how to bring all vlookup returns even with duplicate vlookup search keys
    By NYC4LIFE in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2013, 04:53 PM
  4. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  5. Replies: 5
    Last Post: 07-29-2009, 07:53 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