Closed Thread
Results 1 to 3 of 3

Newb question/User forms

  1. #1
    Registered User
    Join Date
    01-14-2013
    Location
    Columbus
    MS-Off Ver
    excel 2010
    Posts
    9

    Newb question/User forms

    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

  2. #2
    Registered User
    Join Date
    01-14-2013
    Location
    Columbus
    MS-Off Ver
    excel 2010
    Posts
    9

    Re: Newb question/User forms

    bump please

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Newb question/User forms

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1