Consulting

Results 1 to 2 of 2

Thread: Delete value for some column

  1. #1

    Delete value for some column

    i have a table from col A - col Y,
    using vba i want to delete value/clear contents from col A - col Y except col C, D, E, F and headers.

    thanks

  2. #2
    VBAX Regular JONvdHeyden's Avatar
    Joined
    Mar 2009
    Location
    Hampshire, UK
    Posts
    75
    Location
    Perhaps;
    Public Sub ClearStuff()
        Const lngHeader As Long = 1 '< Headers in this row
    With ActiveSheet
            Intersect(.Range("A:B,G:Y"), .UsedRange).Offset(lngHeader).ClearContents
        End With
    End Sub
    Regards,
    Jon von der Heyden (Excel 2003, OS XP Pro)

Posting Permissions

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