+ Reply to Thread
Results 1 to 9 of 9

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

Hybrid 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

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,058

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

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.



    Why do you need VBA for this. It looks as though formulae would be sufficient.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


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

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

    Hi TMS

    I know that formulas properly could do the work. But I have a lot of formulas already, and if this needs to work good for the user, even in a couple of years. Then we could have around 1500-2000 rows with formulas. I would try to optimize as much as possible.

    /Daniel

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

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

    Isn't there anyone who are able to help me with this?

    #needhelp #vba #anyone

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

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

    For curser movement;

    File--> options
    Advanced--> After pressing Enter move selection
    Direction--> Select Right

    In the above code there is nothing much common. Optimization does not help much.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

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

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

    Quote Originally Posted by kvsrinivasamurthy View Post
    For curser movement;

    File--> options
    Advanced--> After pressing Enter move selection
    Direction--> Select Right

    In the above code there is nothing much common. Optimization does not help much.
    Please have a look at the question and the code again. I don't want anything to move. I want a cell to automatically show Low, Medium, High or Critical due to some criteria.

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

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

    I need the cursor to move to the next cell in the next column where the user needs to type data
    No problem. What the above quote says.

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

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

    Sorry mate. That's really my bad. I have now changed the description. I hope it makes sense

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

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

    Anyone who are able to help?

+ 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. 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