+ Reply to Thread
Results 1 to 4 of 4

InputBox selects active cell, not selected cells?

  1. #1
    Registered User
    Join Date
    01-14-2010
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    2

    InputBox selects active cell, not selected cells?

    I am trying simply to select a range with Application.InputBox method. It does ask to select the range and correctly specify it in a pop up window, but in reality it selects only the active cell (see two attached screen shorts, MsgBox shows number of selected counts). What is wrong?

    I work with Excel 2007 on WinXP.

    Thank you very much in advance!

    The code is :

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Last edited by DonkeyOte; 01-15-2010 at 04:01 AM. Reason: tags added

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: InputBox selects active cell, not selected cells?

    Welcome to the Board, however, please note:

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here


    On this occasion I have added them for you - please endeavour to do so yourself from this point forth.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: InputBox selects active cell, not selected cells?

    In your code you have not selected UserRange thus:

    Please Login or Register  to view this content.
    is applied to the active cell selection as opposed to the range specified via the InputBox dialog, to show that you would use:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-14-2010
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: InputBox selects active cell, not selected cells?

    Thanks a lot, DonkeyOte, for welcoming, post editing and helping with the problem!!!

+ Reply to 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