+ Reply to Thread
Results 1 to 3 of 3

Auto delete

  1. #1
    Registered User
    Join Date
    03-26-2012
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    31

    Auto delete

    Hi - Khaled has been so kind helping me with auto date. I'm now asking for help for a code that auto delete the date when the initial data is deleted can anyone be so kind to help? Thanks!

    Sub worksheet_Change(ByVal Target As Range)

    Dim Cell As Range
    For Each Cell In Target
    With Cell
    If .Column = Range("B2:B300").Column Then
    Cells(.Row, "A").Value = Date + Time
    ElseIf .Column = Range("J2:J300").Column Then
    Cells(.Row, "H").Value = Date + Time
    End If
    End With
    Next Cell

  2. #2
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Auto delete

    Here you go

    Please Login or Register  to view this content.
    Regards,
    Khaled Elshaer
    www.BIMcentre.com

    Remember To Do the Following....
    1. Thank those who have helped you by clicking the Star below their post.
    2. Mark your post SOLVED if it has been answered satisfactorily:
    • Select Thread Tools (on top of your 1st post)
    • Select Mark this thread as Solved

  3. #3
    Registered User
    Join Date
    03-26-2012
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Auto delete

    Thanks so much, very much appreciated!

+ 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