Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Delete cell

  1. #1
    New Member
    Join Date
    Apr 2002
    Location
    Isle of Man
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    hello mr excel,
    I have a problem for anybody to work out
    I want to delete everything in a cell, I have tried this macro but it does not seem to work, could somebody out there fix it for me please thank you.

    Private Sub CommandButton1_Click()
    Range("A1").Select
    Dim n As Integer
    n = 11
    Do Until Range("c" & CStr(n)).Value = TextBox1
    n = n + 1
    Loop
    Range("C" & CStr(n)).Select
    Range("F" & CStr(n)).Select
    Range("H" & CStr(n)).Select

    End Sub

  2. #2
    Board Regular
    Join Date
    Apr 2002
    Posts
    115
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I don't see any 'delete' command in your code. What do you want to delete?

  3. #3
    New Member
    Join Date
    Apr 2002
    Location
    Isle of Man
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I want to search say apple using a userform and then just click on a button and it is deleted from the sheet.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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