![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Location: Isle of Man
Posts: 7
|
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 |
|
Board Regular
Join Date: Apr 2002
Posts: 112
|
I don't see any 'delete' command in your code. What do you want to delete?
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Location: Isle of Man
Posts: 7
|
I want to search say apple using a userform and then just click on a button and it is deleted from the sheet.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|