+ Reply to Thread
Results 1 to 2 of 2

Test for Entire Sheet selection

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,062

    Test for Entire Sheet selection

    I have a macro that colors the rows within a selected range if duplicate cells are found. The macro can't handle an entire sheet selection in Excel 2010, so I want to check on the front end that they haven't selected the entire sheet, but I can't find a check to ensure the entire sheet is not selected. I thought I had it with this routine:
    Please Login or Register  to view this content.
    which checks if an entire column or an entire row is selected. However, it generates an overflow error if the entire sheet is selected. Any help is appreciated.

    Thanks,
    John

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,062

    Re: Test for Entire Sheet selection

    Well, I found one way: check for the dimensions of the selection:
    Please Login or Register  to view this content.
    I think we could get more elegant, so I'm certainly open to alternative suggestions.

+ 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