delete row

G

gregork

Hi,
On the following code, in the last line, what do I write to delete the
entire row the match returns?

Dim anotherrng As Range, anotherres As Variant, anotherrng1 As Range
Dim lookup_value
lookup_value = Sheets("Blend Sheet").Range("O3").Text & _
CStr(ComboBox1.Text)
Set rng = Worksheets("Blending Details").Range("I2:I6000")

res = Application.Match(lookup_value, rng, 0)

If Not IsError(res) Then
Set rng1 = rng(res)
rng1.Offset(0, -1).Value = ""

Regards
gregork
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Another code for deleting row 3
Multiple Match 2
Move up text 2
Clear then move text up 9
Match function and displaying results 3
Type Mismatch Error 5
Move Text Up 5
Filtering ComboBox 2

Top