Consulting

Results 1 to 3 of 3

Thread: Flag if Value

  1. #1
    VBAX Regular
    Joined
    Feb 2011
    Posts
    34
    Location

    Flag if Value

    Hi,

    1. In Column C, If any value in Cell then flag Column E Cell as Old.
    2. In Column D, If any value in Cell then flag Column E Cell as New.
    3. Finally move the Column C value of Cell to Column D to last record.

    Help to solve this.
    Flag.jpg

    Thanks.

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Formulas are dynamic, they wont work

    Dim LR as Long
    Dim Rw as Long
    Lr = Cells(Rows.count, "A").End(xlUp).Row
    
    For Rw = 2 to LR
       If Cells(Rw,"C") = "" Then 
          Cells(Rw, "E") = "NEW"
       Else
          Cells(Rw, "E") = "OLD"
          Cells(Rw, "D")  = Cells(Rw, "C")
          Cells(Rw, "C").ClearContents
       End If
    Next Rw
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  3. #3
    VBAX Regular
    Joined
    Feb 2011
    Posts
    34
    Location
    Hi,

    Thanks SamT.

Posting Permissions

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