+ Reply to Thread
Results 1 to 5 of 5

VBA to help highlight missing mandatory data

  1. #1
    Registered User
    Join Date
    09-18-2017
    Location
    London
    MS-Off Ver
    Office 2010
    Posts
    11

    VBA to help highlight missing mandatory data

    Hi

    I wanted to see if there is any VBA code that can help me with my query. I have a workbook with multiple tabs containing employee data such as personal data in one tab, address, phones etc in other tabs. In each tab there are a number of mandatory columns which will have the word “Mandatory” in a cell under the column heading, I wanted to see if there is way I can run a VBA macro that will loop through all the tabs in a workbook and for every mandatory columns to highlight in red the cell if the data is missing. The number of rows and columns (including mandatory columns) in each tab could be different.

    Many thanks

  2. #2
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,377

    Re: VBA to help highlight missing mandatory data

    This can be done with conditional formatting pretty easily, no VBA needed

  3. #3
    Registered User
    Join Date
    09-18-2017
    Location
    London
    MS-Off Ver
    Office 2010
    Posts
    11

    Re: VBA to help highlight missing mandatory data

    Yes I did think of conditional formatting but the issue is I have lots of workbooks, I wanted to run the macro against each workbook separately and check for missing data. With conditional formatting I believe I would need to write the rule in every workbook?

  4. #4
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,377

    Re: VBA to help highlight missing mandatory data

    You have multiple workbooks or worksheets?
    And yes you have to write formatting formula's for individual sheets.

  5. #5
    Registered User
    Join Date
    09-18-2017
    Location
    London
    MS-Off Ver
    Office 2010
    Posts
    11

    Re: VBA to help highlight missing mandatory data

    I have multiple workbooks with multiple worksheets in each workbook. There are other validation checks I need to do too such as making sure dates are entered in date fields etc but I thought if I start with checking the missing data first and then can build on it.

+ 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] Highlight missing values in a range
    By bfaws in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-23-2021, 05:56 AM
  2. [SOLVED] Formula to highlight missing numbers
    By bansche123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-05-2021, 02:29 PM
  3. Find Duplication names and highlight missing - macro request
    By missy22 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-20-2014, 09:09 AM
  4. [SOLVED] Need Help! Mandatory cell to highlight before saving
    By dgavranovic in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-12-2014, 03:30 PM
  5. Mandatory field required message when user skips mandatory fields
    By Bharathi27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2013, 05:12 AM
  6. Highlight missing entries and reclassify
    By pauldaddyadams in forum Excel General
    Replies: 1
    Last Post: 02-14-2012, 03:04 AM
  7. Compare 2 workbooks and highlight missing cells on original
    By mptorr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-12-2010, 11:22 AM

Tags for this Thread

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