Consulting

Results 1 to 2 of 2

Thread: Solved: Search for word and delete text

  1. #1

    Red face Solved: Search for word and delete text

    I have a MS Excel spreadsheet.

    Is there any code that will search for 'Instant Purchase' then clear that cell?

    TIA.

    Picco


  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by crmpicco
    I have a MS Excel spreadsheet.

    Is there any code that will search for 'Instant Purchase' then clear that cell?

    TIA.

    Picco

    [vba]
    Dim cell As Range
    Set cell = ActiveSheet.UsedRange.Find("Instant Purchase")
    If Not cell Is Nothing Then
    cell.ClearContents
    End If
    [/vba]

Posting Permissions

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