View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Keith R[_3_] Keith R[_3_] is offline
external usenet poster
 
Posts: 30
Default Programmely written code don't work

Works for me in OfficeXP.
Are you trying to get the msgbox within the VBA window, or are you actually
bringing up the Userform in Excel and clicking the optionbutton there? Do
you have macros enabled?
Keith

"Flemming Dahl" wrote in message
...
Hi,

On a userform certain actions course extra controls AND extra event-code

for
thise controls - however the code looks right........... it will not
work......

A OptionButton is created "OptionButton1" and this code is made one the
userform's code module:
Private Sub OptionButton1_Click()
MsgBox "YES"
End Sub

What do i do to make the new code work ?

Thanks,
Flemming