Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2006

Tip: Looking for answers? Try searching our database.

deselect an inline shape

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
frogman - 16 Aug 2006 21:12 GMT
I have many toolbox controls in my word document i have mouse down
action that passes the control name to the deselect function.  in the
deselect function i have a message box that asks if you want to
deselect the option button.  I just need the code to deselect the
option button.

Private Sub optStep1Pass_MouseDown(ByVal Button As Integer, ByVal Shift
As Integer, ByVal X As Single, ByVal Y As Single)
Call Deselect("optStep1Pass")
End Sub

Public Function Deselect(ControlName)
Dim intMsgBoxAnswer As Integer

   test = MsgBox("Do you want to deselect the control?", vbYesNo,
"Deselect Button")
   If intMsgBoxAnswer = vbYes Then
     ' Need Code
   ElseIf intMsgBoxAnswer = vbNo Then
       
   End If

End Function
frogman - 16 Aug 2006 23:29 GMT
I figured it out

Private Sub optStep1Pass_MouseDown(ByVal Button As Integer, ByVal Shift
As Integer, ByVal X As Single, ByVal Y As Single)
Deselect optStep1Pass
End Sub

Public Function Deselect(ControlName)
Dim intMsgBoxAnswer As Integer
If ControlName = True Then
   intMsgBoxAnswer = MsgBox("Do you want to deselect the control?",
vbYesNo, "Deselect Button")
   If intMsgBoxAnswer = vbYes Then
       ControlName = False
       CountPassFail
   End If
Else
   ControlName = True
End If
End Function
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.