Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Mon, 05 Nov 2007 03:24:46 -0800,    group: microsoft.public.word.vba.beginners        back       


Radio Buttons   
Hi there,

Please could some one help me with some code to say if this set of
radio of buttons is not selected then please do so.

thanks

Matt
date: Mon, 05 Nov 2007 03:24:46 -0800   author:   unknown

Re: Radio Buttons   
Assuming these option buttons are in a Userform then code something like
this in in your command button code:
Private Sub CommandButton1_Click()
Select Case True
  Case Me.OptionButton1
  Case Me.OptionButton2
  Case Me.OptionButton3
  Case Else
    MsgBox "Please select an option button"
    Exit Sub
End Select
'Rest of your command button code
End Sub


-- 
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


matthew.rodwell@luptonfawcett.com wrote:
> Hi there,
>
> Please could some one help me with some code to say if this set of
> radio of buttons is not selected then please do so.
>
> thanks
>
> Matt
date: Mon, 5 Nov 2007 07:41:51 -0500   author:   Greg Maxey RrOMEOgOLF

Re: Radio Buttons   
Thanks for this worked perfectly thankyou...

my second part is i have written this code before but i would also
like it to pop up if this hasn't been ticked or data had not been
written in to the box..
Private Sub optu3m_change()
txtover3m.Enabled = False = optu3m
Label50.Enabled = False = optu3m
End Sub

Above is the code i mean for the tick box so it desables the text box
but i what a messafe to pop up if neither these are used.

.i would also then like it to go back to the place in the screed
design where it was...(say i have 3 pages and this question was on
page 2 but obvouisly u finish on page 3)
date: Mon, 05 Nov 2007 07:52:32 -0800   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us