+ Reply to Thread
Results 1 to 2 of 2

Status code works when all data on one sheet; works differently when data on 5 sheets

  1. #1
    Registered User
    Join Date
    08-10-2015
    Location
    Chicago, IL, USA
    MS-Off Ver
    2013
    Posts
    33

    Status code works when all data on one sheet; works differently when data on 5 sheets

    The code in cells L3-L7 works on the "Original" sheet of the attached test spreadsheet. When individual sections of the sheet are moved to their own sheets (1-5), and the corresponding code is placed in cells A2-A6 of the "Approval Outstanding" sheet, I encounter two unwanted phenomena:

    Unlike in 6StringJazzer's solution in the "Original" sheet, when the code in the "Approval Outstanding" column A finds no missing Approved date in column H of the sheet it looks the data up in, the cell in column A on "Approval Outstanding" sheet
    1. displays "0" or remains empty. Unlike on the "Original" sheet, the cell doesn't get filled with the results of the first next line calculation that reflects the fact an Approved date is missing on the sheet it refers to. So the result is that instead of having all the findings of outstanding approvals listed one after another without a gap, they are separated by rows corresponding to sheets with no outstanding approvals. I presume it is because each row in column A of the "Approval Outstanding" refers to different sheet data. Is there a way to overcome this shortcoming?
    2. The first instance of a sheet (1-5) that has no missing Approved date, produces "0" in the corresponding cell in column A on "Approval Outstanding" sheet. Each additional instance produces an empty cell. Is there a way to make replace the "0" with empty cell?
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Status code works when all data on one sheet; works differently when data on 5 sheets

    This appears to be the same question that you asked in this thread which contains a proposed solution to which you have not replied.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. ReadOnly Status works but User can still enteract with the sheet!
    By JJFletcher in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-16-2017, 06:43 PM
  2. vba code for Excel 64bit works differently than Excel 32bit - need help
    By thecdnmole in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2017, 11:49 AM
  3. [SOLVED] Code for transfer data to a sheet works only for numbers. Not for text. Why?
    By MariaPap in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-23-2014, 08:24 AM
  4. how can i make this code works for multiple links it only works for one link
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2014, 08:38 AM
  5. Cannot pull web data when User is using IE8. Same code works with IE7 and below
    By Nebula1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-08-2012, 01:44 PM
  6. Code To Find and Offset works on first sheet but won't loop to other sheets
    By mgaworecki in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-10-2009, 03:02 PM
  7. [SOLVED] macro works differently when using the Step Into (F8) feature
    By Dave Y in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-23-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