+ Reply to Thread
Results 1 to 4 of 4

Go through each sheet and check a certain Cell value before running code...

  1. #1
    Registered User
    Join Date
    12-05-2014
    Location
    Hanoi, Vietnam
    MS-Off Ver
    MAC
    Posts
    9

    Go through each sheet and check a certain Cell value before running code...

    Hi,

    I'm trying to change the code below (Thanks to NeedforExcel).

    This code goes through all rows of each sheet (Except "Master" sheet), matching the numbers (column "B") of each sheet to the numbers (Column "B") of the "Master" sheet. When a number has a "X" mark in Column "D" in a sheet, the code will place a "X" mark behind the corresponding number in the corresponding column in the "master" sheet.

    Please Login or Register  to view this content.
    What I would like to do now is, once a person has updated the list by clicking the button, cell "E1" of each existing sheet will get the value "UPDATED" (except Master sheet..Sheet1)
    After, when new sheets with data are added, the code will go through all sheets (including existing sheets) and check if cell "E1" contains empty or UPDATED. When it's UPDATED, the code can go straight to the next sheet and doesn't have to retrieve any data from that sheet anymore. If cell "E1" is empty the code should Match the numbers and retrieve the "X" marks.

    Hope I made myself clear enough
    Any suggestions?
    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: Go through each sheet and check a certain Cell value before running code...

    Hi spikedemike

    Try this (not tested on Mac)...
    Please Login or Register  to view this content.
    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.

  3. #3
    Registered User
    Join Date
    12-05-2014
    Location
    Hanoi, Vietnam
    MS-Off Ver
    MAC
    Posts
    9

    Re: Go through each sheet and check a certain Cell value before running code...

    Thank you so much John for the speedy reply.

    The code works great...even on Mac
    P.S. I looked it up..Atwood lake looks like a great place to live.

  4. #4
    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: Go through each sheet and check a certain Cell value before running code...

    Hi spikedemike

    You're welcome...glad I could help. Thanks for the Rep.

    If this resolves your issue please mark your Thread as SOLVED.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:
    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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. [SOLVED] Check if cell is empty before running code
    By cajand in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-26-2014, 03:01 PM
  2. [SOLVED] Running different code for multiple check box
    By pratyathedon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-15-2012, 05:16 AM
  3. make check before running the code
    By yiannis1925 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-03-2012, 05:34 AM
  4. Check if a Sub Exists Beofre Running Code
    By JimmyA in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-09-2010, 12:09 PM
  5. VBA Code to check cell before running macro
    By kolovel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-17-2010, 06:19 PM
  6. Replies: 1
    Last Post: 07-07-2005, 10:05 PM
  7. Check cell for data before running code
    By Pat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2005, 05:06 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