I'm having a problem with:
Or, I'm trying to get the sub to cancel if the user clicks cancel. I tried replacing (If remove = "") with (If remove = vbCancel) but Excel isn't returning a value like it's supposed to, or I'm using the wrong user input box, so the sub isn't closing like I want it to. There is an option for Application.InputBox but I haven't tried it yet. I'm not sure if it'll return a "cancel" value like I want it to.Please Login or Register to view this content.
So, I created a Msgbox to display exactly what remove is equal when cancel is clicked so I could complete my If statement. Come to find out remove becomes blank, or "", so I set my sub to exit if remove = "". This works, but later on if the user just clicks ok and leaves the input box value blank the sub will end. I do not want this to happen.
I did some searching and it may have to do with how I'm declaring "remove". My understanding of "Variant", although taking up the most memory, should work as it covers all data types, correct? Any ideas?
Bookmarks