Jchess
06-06-2012, 08:07 AM
I have an Excel sheet with Option Buttons used to add a value into a cell on the same sheet. I use the following code to do this.
Private Sub OptionButton1_Click()
If OptionButton1.Value = True Then Range("D15").Value = 1
End Sub
Private Sub OptionButton2_Click()
If OptionButton2.Value = True Then Range("D15").Value = 2
End Sub
Private Sub OptionButton3_Click()
If OptionButton3.Value = True Then Range("D15").Value = 3
End Sub
Private Sub OptionButton4_Click()
If OptionButton4.Value = True Then Range("D15").Value = 4
End Sub
What I'm now trying to do is to have the Excel sheet updated from a Word document. I want the Option Buttons to be in a Word document and for the selection to update the Excel sheet. I'm using Office 2003.
If anyone can point me in the right direction I'd really be grateful.
Private Sub OptionButton1_Click()
If OptionButton1.Value = True Then Range("D15").Value = 1
End Sub
Private Sub OptionButton2_Click()
If OptionButton2.Value = True Then Range("D15").Value = 2
End Sub
Private Sub OptionButton3_Click()
If OptionButton3.Value = True Then Range("D15").Value = 3
End Sub
Private Sub OptionButton4_Click()
If OptionButton4.Value = True Then Range("D15").Value = 4
End Sub
What I'm now trying to do is to have the Excel sheet updated from a Word document. I want the Option Buttons to be in a Word document and for the selection to update the Excel sheet. I'm using Office 2003.
If anyone can point me in the right direction I'd really be grateful.