Computing.Net > Forums > Programming > Delecting Cells with VB

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Delecting Cells with VB

Reply to Message Icon

Name: Jose
Date: September 9, 2002 at 12:43:15 Pacific
OS: Win NT
CPU/Ram: 1.2 GHz
Comment:

Hello,

I was wondering what the code would look like if I wanted the following: I would like an command button that when pressed, pops up a user input box that prompts the user for a name. When they enter that name, the code will search through a column of names and delete the one they typed in and shift all of the cells up. If they type in a name that is not on the list, then an error box will pop up.
If anyone has any suggestions, your help would be greatly appreciated.

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: VBKing(ish)
Date: September 10, 2002 at 00:44:14 Pacific
Reply:

Sorry I completely forgot about your earlier post. As this is in Excel it is easier to record a macro using the FIND function and DELETE.

Although personally I don't like using this function it is good to look at the code and it should just be a case of changing the FIND text to a variable created by the inputbox.

You may have to put in a trap for the FIND result if negative as I'm not sure if it automaticaly generates a value if an item is not found.

Let me know how you get on and I'll look into this as well.


0
Reply to Message Icon

Related Posts

See More


WebPage Help Win2000 msG?



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Delecting Cells with VB

Block TCP ports with VB www.computing.net/answers/programming/block-tcp-ports-with-vb/5457.html

add scroll with vb.net www.computing.net/answers/programming/add-scroll-with-vbnet/13035.html

Help request with VB www.computing.net/answers/programming/help-request-with-vb/8395.html