Results 1 to 7 of 7

VBA Identify code to make information box not appear

Threaded View

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

    Lightbulb VBA Identify code to make information box not appear

    Hi,

    The below code runs perfectly well for the 10 people that I have in my main file, I am now going to be doing same things for over 4.5k people and do not want to sit and do that for this many rows of data, essentially it is a vlookup through vba that needs to be done but cannot work it out anyone able to assist?

    If Sheets("Home").Range("A1").Value = Sheets("Data_Source").Range("A2").Value _
    And Sheets("Data_Source").Range("G2").Value = 1 _
    Or Sheets("Home").Range("A1").Value = Sheets("Data_Source").Range("A3").Value _
    And Sheets("Data_Source").Range("G3").Value = 1 _
    Or Sheets("Home").Range("A1").Value = Sheets("Data_Source").Range("A4").Value _
    And Sheets("Data_Source").Range("G4").Value = 1 _
    Or Sheets("Home").Range("A1").Value = Sheets("Data_Source").Range("A5").Value _
    And Sheets("Data_Source").Range("G5").Value = 1 _
    Or Sheets("Home").Range("A1").Value = Sheets("Data_Source").Range("A6").Value _
    And Sheets("Data_Source").Range("G6").Value = 1 _
    Or Sheets("Home").Range("A1").Value = Sheets("Data_Source").Range("A7").Value _
    And Sheets("Data_Source").Range("G7").Value = 1 _
    Or Sheets("Home").Range("A1").Value = Sheets("Data_Source").Range("A8").Value _
    And Sheets("Data_Source").Range("G8").Value = 1 _
    Or Sheets("Home").Range("A1").Value = Sheets("Data_Source").Range("A9").Value _
    And Sheets("Data_Source").Range("G9").Value = 1 _
    Or Sheets("Home").Range("A1").Value = Sheets("Data_Source").Range("A10").Value _
    And Sheets("Data_Source").Range("G10").Value = 1 _
    Or Sheets("Home").Range("A1").Value = Sheets("Data_Source").Range("A11").Value _
    And Sheets("Data_Source").Range("G11").Value = 1 _
    Then
    Sheets("Overview").Shapes("Rectangle 11").Visible = False
    Else
    Sheets("Overview").Shapes("Rectangle 11").Visible = True
    End If
    
        
        Sheets("Overview").Select
    Last edited by Spear86; 11-20-2014 at 06:51 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Simplfy VBA code using Array set & loop
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-08-2014, 11:58 PM
  2. Is there a macro to simplfy our life when copying excel tables to word?
    By Naja in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-15-2013, 03:52 AM
  3. Help me Simplfy and Speed Sort Routine
    By Orada in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-02-2012, 05:31 PM
  4. [SOLVED] How to simplfy If & Sumif Code
    By Martin in forum Excel General
    Replies: 1
    Last Post: 04-27-2006, 05:35 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