Results 1 to 9 of 9

How to make Claim Importance show Low,Medium,High or Critical

Threaded View

  1. #1
    Registered User
    Join Date
    06-10-2021
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    11

    Red face How to make Claim Importance show Low,Medium,High or Critical

    Hi guys.

    I really hope someone can help me. I am new to VBA and I have a large Excel sheet, that needs to be optimized. I need the cells in column "C" to show Low, Medium, High or Critical due to certain criteria.

    - Cell "C25" is todays date inserted with the Today() formula.
    - Column "H" is a Claim date, stated by a timestamp()
    - Cell "AA" is the total value of a product
    - Cell "AD" is an Action field with text

    First of all, if a cell or row is blank, Range("C") must be blank as well.

    And this function needs to apply as Column "C" becomes active.

    If you are able to even optimize the code, please fell free to do so


    My code:

    Private Sub Claim_Importance()
        
        If Range("C25").Value = Range("H29").Value Or Range("AA29").Value > 3000 Or Range("AD29").Value > 0 Then
            Range("C29").Value = "Low"
    End If
        
        If Range("H29").Value + 2 > Range("C25").Value Or Range("AE29").Value > 0 Or Range("AA29").Value = 3000 Then
            Range("C29").Value = "Medium"
    End If
        
        If Range("H29").Value + 5 > Range("C25").Value Or Range("AF29").Value > 0 Or Range("AA29").Value > 3000 Then
            Range("C29").Value = "High"
    End If
        
        If Range("H29").Value + 7 > Range("C25").Value Then
            Range("C29").Value = "Critical"
    End If
      
        If Range("AA29").Value > 3000 Then
            Range("C29").Value = "Needs Approval"
            
    ElseIf Range("H29").Value = "" Then
            Range("C29").Value = ""
        
    End If
    End Sub
    Best regards

    Daniel
    Attached Files Attached Files
    Last edited by Miltoft; 06-20-2021 at 07:26 AM. Reason: Wrong decription

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. High Medium Low Surveys
    By Sunaila in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-27-2019, 05:55 AM
  2. Replies: 4
    Last Post: 08-21-2017, 01:30 PM
  3. Send Email W/ Multiple Recipients and Set High Importance
    By eseelhammer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2015, 05:22 PM
  4. [SOLVED] Sending Email to Multiple Recipients w/ High Importance
    By eseelhammer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2015, 02:14 PM
  5. Can't set OL Importance to HIGH
    By DonW in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2013, 04:41 PM
  6. [SOLVED] High Medium and low
    By mobileangus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-18-2013, 09:42 AM
  7. Values and Formulas - Problem - High Importance
    By Baapi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-29-2005, 07:05 PM

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