Opening a word template, in Word VBA, from a private sub, using a DropDown menu -
I just add-doing in trying to make words, which shall select from the drop down menu templates my client They usually use it.
The use of the ribbon designer is add-in functional, but do not open the template.
When changing the drop-down menu within the switch statement, I have code:
document. Open (filename = "C: \ Mayfail \ Maidok Daok" Reedonli = false)
This gives me the error:
Non-shared requires an object reference to members
would be greatly appreciate any help. . Cheers
private sub DropDown1_SelectionChanged (ByVal as the System.Object, ByVal e Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs as) TemplatesDropDown.SelectionChanged dim strTemplatePath handle string strTemplatePath = "C As: Choose \ Users \ Aythan \ Documents \ DocSys \ Templates \ test.doxc "Case TemplatesDeepdown. Select item index case 0 msbx ("0") Episode 1 msbbox ("1") document. Open (Strait Maple Leaf) '& lt; & Lt; Error case on line 2 Msbibiks ( "2") Case 3 Msbibiks ( "3") Case 4 Msbibiks ( "4") Case assay Msbiboks ( "F") end end end end end
< / Div>
Comments
Post a Comment