![]() |
#1
|
|||
|
|||
![]()
I have a table within Word 2013 document. I want the user to select any cell within that table to be the 'recipient' of a value from a User Form. The user then opens the User Form that displays various choices by way of OptionButtons i.e. they may select from values such as A0, A3, A5, C5. Once they have made their choice, I have an "Update" button that transfers the value of the OptionButton to the cell in the table. I tried by inserting a Bookmark into the table, like so:
Code:
Private Sub btnUpdateP_Click() Dim PeopleChoice As String, Tbl As Table, Rng As Range If Me.optA0 Then PeopleChoice = "A0" ElseIf Me.optA3 Then PeopleChoice = "A3" ElseIf Me.optA5 Then PeopleChoice = "A5" Else PeopleChoice = "C5" End If Selection.Bookmarks.Add ("bmPeople") ActiveDocument.Bookmarks("bmPeople").Select Selection.Text = PeopleChoice Can anyone assist me with this one please? Thank you. Corin. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
DeborahBartlett | Word | 1 | 01-04-2014 11:06 AM |
![]() |
mkasem | Word VBA | 2 | 09-29-2013 08:36 PM |
![]() |
simville02 | Word Tables | 1 | 01-31-2013 11:12 PM |
![]() |
Ossie1972 | Outlook | 1 | 12-08-2010 08:19 PM |
Text Wrapping on Fixed Lines in a Form field/Table cell | okrmjr | Word Tables | 0 | 10-30-2009 08:52 AM |