Remove data from a [hidden] list

I am using the below to add to a hidden list. Could a Expert provide me with VBA code that will enable data to be removed from the list.

So lets say in A30 it has Yellow and B30 Blue

If I want to remove this the a pop-up that asks for what is in column A so if I put Yellow it will remove data from A30 and B30 and then shift those cells up but not affect any other columns.

Thanks
JagwarmanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JagwarmanAuthor Commented:
forgot to put the code I am using:

With Sheets("Static")
    .Range("A" & .Range("A" & Rows.Count).End(xlUp).Row+1).Value = InputBox("Please enter a value for cell A" & .Range("A" & Rows.Count).End(xlUp).Row+1)
    .Range("B" & .Range("B" & Rows.Count).End(xlUp).Row+1).Value = InputBox("Please enter a value for cell B" & .Range("B" & Rows.Count).End(xlUp).Row+1)
End With
Rgonzo1971Commented:
Hi,

pls try

With Sheets("Static")
    strFind = InputBox("Please enter a value to delete in Column A")
    Set f = .Range("A:A").Find(strFind, LookIn:=xlValues, LookAt:=xlWhole, MatchCase:=False)
    If Not f Is Nothing Then
        f.EntireRow.Delete
    Else
        MsgBox strFind & " not found"
    End If
End With

Open in new window

Regards
JagwarmanAuthor Commented:
Hi Rgonzo, thanks only thing is I only want it to delete A and B as mentioned in original request.....remove data from A30 and B30 and then shift those cells up but not affect any other columns.


Thanks
Rgonzo1971Commented:
then try

With Sheets("Static")
    strFind = InputBox("Please enter a value to delete in Column A")
    Set f = .Range("A:A").Find(strFind, LookIn:=xlValues, LookAt:=xlWhole, MatchCase:=False)
    If Not f Is Nothing Then
        f.Resize(, 2).Delete Shift:=xlUp
    Else
        MsgBox strFind & " not found"
    End If
End With

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JagwarmanAuthor Commented:
excellent many thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.