Consulting

Results 1 to 3 of 3

Thread: Checkbox onaction

  1. #1

    Checkbox onaction

    Hey folks

    Have lot of CheckBox'es (formular-menu)
    Created with a macro and all with onAction="test"

    Now i vant the macro "test" to tell me the name of the CheckBox
    that was clicked

    Haw ???

    tanks in advance

  2. #2
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    Try this
    [VBA]If TypeName(Application.Caller) = "String" Then
    MsgBox Application.Caller & " was clicked" & vbCr & _
    "Its value is " & (ActiveSheet.Shapes(Application.Caller).ControlFormat.Value = xlOn)
    End If[/VBA]

  3. #3
    excellent mike
    thanks alot

Posting Permissions

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