nsahistory.blogg.se

Ms word combo box function
Ms word combo box function







It can build a simple data entry form to get user inputs. Similarly you can modify code to populate rest of the control in running document commentary. Set objContentControl = (Type:=wdContentControlDate)

ms word combo box function

Press Alt + K to select Strikethrough (note that k is the underlined letter). To access the Font dialog box using a keyboard shortcut and then apply Strikethrough: Select the text you want to strikethrough. Set objContentControl = (Type:=wdContentControlComboBox)Įnd Sub Output Date Control Public Sub DateAddContentControl() Using keyboard shortcuts to access the Font dialog box. Set objContentControl = (Type:=wdContentControlRichText)Įnd Sub Output ComboBox Control Public Sub ComboBoxAddContentControl() Selection.Collapse Direction:=WdCollapseDirection.wdCollapseStart

ms word combo box function

RichTextBox Control Public Sub AddRichTextContentControl() Note to arrange multiple controls I have used a special symbol to avoid overlapping of the control on the page which I seek through MoveUntil method by passing it in Cset parameter. Microsoft Word VBA object offers ten Content Controls listed below which can be short hand the programming and provide various user input methods: SyntaxĮ(Type) List Content Controlsįollowing code will create three labels and three controls to take user input on a blank document. In-line user controls which can be embedded in the document withing a range or selection.









Ms word combo box function