+ Reply to Thread
Results 1 to 3 of 3

VBA Vlookup through 2 documents

  1. #1
    Registered User
    Join Date
    01-10-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    35

    Unhappy VBA Vlookup through 2 documents

    Hey Everyone,

    I currently have a userform that pops open at this moment when my excel document opens but I am only wanting it to open if the people that are accessing it do not appear on another document list.

    Currently This is how my code looks not put the vlookup into it but cannot work it out, can anyone help:

    Please Login or Register  to view this content.
    I am also trying to open the other file to sit in the background
    Last edited by Spear86; 03-17-2014 at 11:10 AM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA Vlookup through 2 documents

    This example uses the COUNTIF function to test if the value from twb.Sheets("Home").Range("A1") is found in nwb.Sheets("Accepted ID's").Range("A:A")

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    01-10-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: VBA Vlookup through 2 documents

    Ah cheers for the input I finally figured out the code:

    Please Login or Register  to view this content.
    Thanks though

+ 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. convert all 97-2003 excel documents to macro enabled documents on server
    By viperisback in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2013, 09:06 AM
  2. How to copy and link 2 new documents with Vlookup?
    By kareldv9 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-09-2013, 11:37 AM
  3. Help with Vlookup between two documents
    By Ryanreid in forum Excel General
    Replies: 1
    Last Post: 09-27-2012, 08:46 PM
  4. Vlookup accross multiple saved documents
    By izelle in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 07-20-2011, 01:31 PM
  5. VLOOKUP merge documents, copy-paste special...
    By nastech in forum Excel General
    Replies: 4
    Last Post: 02-12-2006, 09:00 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