Relative Content

Tag Archive for vbams-word

How do I get vba to find text and then bold it?

Currently i have a userform with a combobox where once an option is chosen a document variable is set based on what option is chosen. Once the docvariable is set I want to only bold a part of the text. The docvariavble is LSBV, the combobox is LSB.

How do I get vba to find text and then bold it?

Currently i have a userform with a combobox where once an option is chosen a document variable is set based on what option is chosen. Once the docvariable is set I want to only bold a part of the text. The docvariavble is LSBV, the combobox is LSB.

How do I get vba to find text and then bold it?

Currently i have a userform with a combobox where once an option is chosen a document variable is set based on what option is chosen. Once the docvariable is set I want to only bold a part of the text. The docvariavble is LSBV, the combobox is LSB.

MailMergeDataSource Find Record function leads to Execute Merge Failure

I am trying to use Visual Basic in Word to automate a MailMergeDataSource document search followed by an executed MailMerge. I have both steps working independently. However, if I call the SearchForDocument() function first, the ExecuteMerge() fails. I receive a Run-time error ‘5631’: Word could not merge the main document with the data source because the data records were empty or no data records matched your query options.

MailMergeDataSource Find Record function leads to Execute Merge Failure

I am trying to use Visual Basic in Word to automate a MailMergeDataSource document search followed by an executed MailMerge. I have both steps working independently. However, if I call the SearchForDocument() function first, the ExecuteMerge() fails. I receive a Run-time error ‘5631’: Word could not merge the main document with the data source because the data records were empty or no data records matched your query options.

MailMergeDataSource Find Record function leads to Execute Merge Failure

I am trying to use Visual Basic in Word to automate a MailMergeDataSource document search followed by an executed MailMerge. I have both steps working independently. However, if I call the SearchForDocument() function first, the ExecuteMerge() fails. I receive a Run-time error ‘5631’: Word could not merge the main document with the data source because the data records were empty or no data records matched your query options.

MailMergeDataSource Find Record function leads to Execute Merge Failure

I am trying to use Visual Basic in Word to automate a MailMergeDataSource document search followed by an executed MailMerge. I have both steps working independently. However, if I call the SearchForDocument() function first, the ExecuteMerge() fails. I receive a Run-time error ‘5631’: Word could not merge the main document with the data source because the data records were empty or no data records matched your query options.

Macro to close right hand panes in Microsoft Word

I can have up to two separate panes open on the right hand side of my Microsoft Word document – see pink highlighted area in attached. One is styles pane and the other a plugin pane (SmartCite). Is there a macro that can close both these panes simultaneously?