+ Reply to Thread
Results 1 to 2 of 2

VBA code error for changing cell colour

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-11-2008
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    242

    VBA code error for changing cell colour

    Hi,
    I am writing a code which will give me a message before 10 days of expiry in column I,
    also the font of them will turn red,but I am getting error with code.also attaching the sheet.
    Private Sub Workbook_Open()
    Dim Count As Long
    Count = Sheets("KolWB").Evaluate("COUNTIF(I:I,TODAY()-10)")
    If Count Then MsgBox "you have " & Count & " contracts expired"
    End Sub
    Attached Files Attached Files
    Last edited by arnab0711; 03-31-2010 at 09:48 AM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: code error

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

+ 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