+ Reply to Thread
Results 1 to 2 of 2

VBA to collect data

  1. #1
    Registered User
    Join Date
    03-25-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    44

    VBA to collect data

    Hi, I have 2 sheets attached. The sheet 4th Floor contains desk locations, the second sheet contains connectivity information. I am trying to write a macro that will take the first location at cell A2, it will then search through column A of the second sheet connectivity. Whenever it comes across a matching entry it will transfer "IP Address", "Hostname" and "Mac Address" into the fields in the 4th floor sheet. In some instances there are more than one instance of the location in the connectivity sheet, this will need a new row inserting in the 4th floor sheet beneath the first one and the same information transferred. If there is no record for a 4th floor location "No Value" should be returned to the IP Address" field.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: VBA to collect data

    Hi Macca_GB

    Place all three Workbooks in the same Folder.

    Open the Code Book and Click the Button.

    You'll be prompted to Open the Source File (Connectivity) and then the Target File (4th Floor).

    Let me know of issues.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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: 2
    Last Post: 12-17-2013, 08:21 AM
  2. Macro to collect YTD data. I think I have most of it . . .
    By lsteinbach in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-07-2013, 04:26 AM
  3. help with collect data
    By 400396 in forum Excel General
    Replies: 2
    Last Post: 07-28-2012, 11:22 AM
  4. Collect data from other tab
    By saslotteroy in forum Excel General
    Replies: 3
    Last Post: 10-16-2011, 04:25 PM
  5. collect data from different worksheet
    By sheva in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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