Consulting

Results 1 to 3 of 3

Thread: VBA newbie need help on error

  1. #1

    VBA newbie need help on error

    error object required. Can someone help me to fix this?
    Do While 0 < Count
    If Task.Finish > DateTime.Now Then
    Font Color:=1
    End If
    Loop

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Step through the code to determine the actual error. Use the Watch window to check values. My guess is you need to define what Font refers to.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Can you post you project with a small explanation of how you invoke the code?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •