Just learning excel VBA and i'm currently tinkering with user forms; I think my question is relatively simple. Basically, i've written a simple macro that checks whether the selection is a range slection and, if not, prompts the user to select a range: if type(selection) <> "range" then msg...
From there, if a range is selected, it calls the user form which asks the user what case (upper/lower/proper) to format the names entered. My problem is that the type(selection) does not appear to be working properly; even if a range is not part of the selection it ignores this and formats whatever it can. Secondly, after formatting the initial range, if I subsequently enter a name into a non-adjacent cell and run the sub again it now formats everything on the worksheet rather than the original or newly selected range.
Thank you for whatever help
Bookmarks