+ Reply to Thread
Results 1 to 2 of 2

Right click and iterate through selection

  1. #1
    Paulymon
    Guest

    Right click and iterate through selection

    I want to drag a selection box around a group of cells in one column
    (a5..a10) for example and then when the right-click is pressed give the user
    the option to click "Process" and then iterate through each cell entry in the
    range.

    How do I do that? I 've got a fair idea for the right-click thing but I'm
    not sure how to step through each cell in the range and process the numbers.

    Thanks for any help
    Paul


  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Paul,

    Here is a code example that sums the values of the cells selected when the user Right Clicks the selection. The sum of the Selected cells is placed below the last cell in the selection.

    Remember that setting Cnacel to True in this event will disable the context menus.

    Example:

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross
    Last edited by Leith Ross; 12-10-2005 at 04:33 PM.

+ 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