+ Reply to Thread
Results 1 to 2 of 2

Select Case

  1. #1
    Registered User
    Join Date
    09-11-2009
    Location
    Torquay
    MS-Off Ver
    Excel 2003
    Posts
    13

    Select Case

    I am running a private sub with the following in it and is based on a result of a calculation from 2 other cells

    Please Login or Register  to view this content.
    when data is in put in to two cells e.g "G15" & "H15" a calculation is done in a seperate cell "L15" that determines the level of risk e.g. Case "Low - Little or no risk presented, continue with control measures in place" then the private sub will change the format of the cell according to the code (this works perfectly fine). what i want is for the cell to revert back to its orginal state if the two cells are cleared (orginal stating being font colour white and font colorindex being white) this is so that #value is not visible to the user another problem is that the calcution in "L15" is changing numbers into text. if there is no date in "G15" or "H15" "L15" states #value

    this is the code is based on this formula =IF(L15<=2,$O$26,IF(L15<=5,$O$27,IF(L15<=8,$O$28,IF(L15>=9,$O$29," "))))
    any help would be greatly appreciated, thanks in advance

    John
    Last edited by nitrox_guy; 02-26-2010 at 09:35 AM.

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Select Case

    3. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # button at the top of the post window. If you are editing an existing post, press Go Advanced to see the # button. For more information about these and other tags, click here.
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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