+ Reply to Thread
Results 1 to 2 of 2

Spinner-requiring Spinner buttons

  1. #1
    Greg Robinson via OfficeKB.com
    Guest

    Spinner-requiring Spinner buttons

    Hi
    I have an Excel spreadsheet with about 100 cells requiring Spinner buttons. At present the workbook displays as a single view without the need to scroll left right. If I add Spinner buttons I will lose this view which is very inconvenient as most of the users use tablet PC's

    Is there any way that when I select a cell that I have a spinner control available to that cell only. In much the same vein as a validation field using List

    Thanks in anticipation

    --
    Message posted via http://www.officekb.com

  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
    Hi,

    Technically, the Spinner Control is not part of any worksheet cell. Once you click the Spinner, you have activated the control not the cell beneath it. However, You can click on a particular cell and then activate one or more Spinner Controls on the worksheet.

    To activate a specific Spinner when a particular cell is clicked, requires writing code in the Worksheet_ SelectionChange() event using VBA.
    ________________________________________________________________

    Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)

    If Target.Address = "$C$1" Then
    Spinner1.OnAction = "MyMacro"
    End If

    End Sub
    ________________________________________________________________

    This event returns the user's selection whenever a cell or range of cells is selected. This check to see if cell "C1" was clicked on. If so, Spinner1 is set to execute MyMacro when clicked.

    Hope this helps,
    Leith Ross

+ 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