Consulting

Results 1 to 5 of 5

Thread: Solved: How to detect multiple cell selection

  1. #1

    Cool Solved: How to detect multiple cell selection

    I need to detect if multiple cells are selected. but I'm unsure of how to do this.

    Lee

  2. #2
    [vba]If Selection.Cells.Count > 1 Then

    End If[/vba]
    -------------------------------------------------
    The more details you give, the easier it is to understand your question. Don't save the effort, tell us twice rather than not at all. The amount of info you give strongly influences the quality of answer, and also how fast you get it.

  3. #3
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    To be pedantic
    [VBA]
    MsgBox Selection.Cells.Count * ActiveWorkbook.Windows(1).SelectedSheets.Count

    [/VBA]
    as I found out when my Copy utility failed!
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  4. #4
    Thank you for the help that is exactly what I needed.

    Jimmy the Hand: I thought I gave all pertinent details, what was lacking in my question?

  5. #5
    Quote Originally Posted by leeweaver
    I thought I gave all pertinent details, what was lacking in my question?
    Nothing wrong there. That was only my signature, which you can see below all my posts. Sorry for the misunderstanding.

    Jimmy
    -------------------------------------------------
    The more details you give, the easier it is to understand your question. Don't save the effort, tell us twice rather than not at all. The amount of info you give strongly influences the quality of answer, and also how fast you get it.

Posting Permissions

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