+ Reply to Thread
Results 1 to 3 of 3

Vba code to conditionally format a specific range

  1. #1
    Registered User
    Join Date
    02-02-2012
    Location
    Austin, Texas
    MS-Off Ver
    Office 365
    Posts
    33

    Vba code to conditionally format a specific range

    I'm still a rookie at this and can readily use any help y'all can provide. I need to have some VBa code to do the following things:

    1. Conditionally format a range - cells in "a" should be filled in red with white bold text when value is >20
    (value of a is detrmined by subtracting the date in column b from the System date auto entered in c1)

    2. Prevent the user from inserting/deleting rows from the Insert menu and from the right click menu

    3. Allow users to insert rows that will be properly formatted by using a button (ax:hX) - they should also be able to delete a row (ax:hx).

    I realize that this is a rather large request but I am hopeful that there is indeed a generous individual in the group willing to lend me his/her expertise.

    Thank you

    DummyBook2.xls
    Last edited by kelwood; 03-07-2012 at 11:20 AM.

  2. #2
    Registered User
    Join Date
    02-02-2012
    Location
    Austin, Texas
    MS-Off Ver
    Office 365
    Posts
    33

    Re: Vba code to conditionally format a specific range

    I have Solved the general formatting issue and now only need some assistance with the conditional formatting IF statement.

  3. #3
    Registered User
    Join Date
    02-02-2012
    Location
    Austin, Texas
    MS-Off Ver
    Office 365
    Posts
    33

    Re: Vba code calculate difference in dates and put result in adjacent cell.

    Am enclosing a piece of code that was provided to me that "should get the IF statement math done" I have treid it in several different ways and can't seem to get it to work. The start date should be the date in C1 as it is the basis for the mathe. The end date should be the cells in row b, the difference in days (number)should be placed into column a for each cell in column b. I have also enclosed my dummy2 ws for reference. I really need some help. Am learning a lot and have appreciated the help received on some earlier issues.

    Please Login or Register  to view this content.
    DummyBook2.xls
    Last edited by kelwood; 02-29-2012 at 01:48 PM. Reason: Clarification

+ 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