![]() |
|
|
|
#1
|
||||
|
||||
|
Hi ilkks,
Try: Code:
Private Sub cmdOK_Click() Selection.Fields(1).Code.Text = "MACROBUTTON Update " & cboFood.Value Unload Me End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#2
|
|||
|
|||
|
Thank you for your reply macropod.
I can see and choose all values in the UserForm/ComboBox, but when I press cmdOK_Click-button it says: Code:
Run-time error: 5941 The requested member of the collection does not exists. Code:
Sub FoodDropDownList()
frmTesti.Show
End Sub
Code:
Private Sub cmdOK_Click() Selection.Fields(1).Code.Text = "MACROBUTTON FoodDropDownList" & cboFood.Value Unload Me End Sub |
|
#3
|
|||
|
|||
|
Post removed
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Textbox updating from combobox selection | paxile2k | Word VBA | 0 | 10-26-2010 02:30 PM |
| How to use the content of a combobox for {IF} field? | Melaanie | Word | 0 | 06-14-2010 02:00 AM |
Array into ComboBox + Macro-Text into ActiveDocument
|
Vivi | Word VBA | 1 | 01-27-2010 07:03 AM |
Combobox manipulation
|
vsempoux | Word VBA | 3 | 10-31-2009 08:58 AM |
| Export/Import | Arkmom | Outlook | 0 | 03-31-2009 02:47 PM |