+ Reply to Thread
Results 1 to 4 of 4

Adding information to a V-Lookup workbook via Message Box

  1. #1
    Registered User
    Join Date
    06-18-2012
    Location
    OKC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Adding information to a V-Lookup workbook via Message Box

    i am doing a V-lookup from a hidden workbook. i need to be able to add to the hidden workbook, if a name is not found... so that it will save it to the hidden list for the next time i run the macro.

    what i am doing is looking for a person's name in the hidden workbook and the value that is returned to the main workbook is location they are from.

    Hidden workbook contents:

    barry sanders OK
    matt leinart CA
    cam newton AL

    so now what i want to do is, if the name tim tebow is found in the list (on the main workbook) i want to be able to input the location information to the hidden workbook via some kind of message box along with the new name that was found. i want to be able to input the name to column 1 (don't really need to "input" this, so much as just take the info found fron the main workbook)... and the location to column 2.

    i hope this is clear enough to get my point across. and hoping this is possible. thanks all!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,510

    Re: Adding information to a V-Lookup workbook via Message Box

    Use an InputBox, not a MsgBox to get the location.

    Are you happy with working out the next available row in the hidden workbook?

    Quite often you will get a quicker and more effective response if you post sample workbooks.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    06-18-2012
    Location
    OKC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Adding information to a V-Lookup workbook via Message Box

    i don't really care if the input is added to the end of my hidden list of names and locations. i will try to create a simple mock up sheet and paste it up here. i don't want to post my full intentions because it would take forever to explain. how do the input boxes work as far as coding. i haven't used VBA since high school (12yrs ago) and i'm trying to refresh/reteach myself with google.

    thanks!

  4. #4
    Registered User
    Join Date
    06-18-2012
    Location
    OKC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Adding information to a V-Lookup workbook via Message Box

    input box sample.xlsx

    here is a sample i worked up. what i'm wanting is for v-lookup to run in column 3 in sheet "main", using the info in sheet "hidden". but, if a name on "main", isn't on "hidden", i want the ability to add the name and location to sheet "hidden" AND have it save there for future use.
    Last edited by MantisTobaggan; 06-19-2012 at 09:44 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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