Questions tagged [word-2010]

Word-2010 is to be used for Microsoft Word version 2010, a non-free commercial word processor designed by Microsoft. The version independent tag is [ms-word].

Microsoft Word 2010 is a commercial document editing program used for creating richly formatted documents for printing and distribution.

This tag should be used to indicate your version of Word when posting a question. You should also tag your question if asking about VBA usage in Word 2010.

Related Tags:

Links:

233 questions
24
votes
4 answers

How can I change text color via keyboard shortcut in MS word 2010

While typing sentences I would like to change the text color at few places. To do so I have to do it manually by going to fonts pop section. Is there any way to create a keyboard shortcut so that I can change the text color of some word in sentence…
Sukhjinder Singh
  • 1,745
  • 2
  • 19
  • 26
13
votes
2 answers

Is version control with Word/Office, but using a proprietary document repository (i.e. NOT Sharepoint), catered for with some sort of provider model?

I cant find any resources for hooking into the version control features offered by Word 2010. I know that it hooks in seamlessly to Sharepoint in terms of providing features to access the Sharepoint document repository . But take sharepoint out…
brumScouse
  • 3,166
  • 1
  • 24
  • 38
12
votes
2 answers

OpenXml Table error "

elements are required before every "

I have created a Word template that I am then processing via the OpenXML SDK to replace some of the content of the document with data from a database query. The template consists of some basic text with Plain Text Content controls injected in the…
Martin Robins
  • 6,033
  • 10
  • 58
  • 95
12
votes
3 answers

Remove paragraph mark from string

I have a macro that finds all of the 'Heading 1' styles within my document and lists them in a ComboBox on a UserForm. My problem is that the Find routine I am using is also selecting the paragraph mark (¶) after the text I wish to copy, and that is…
David Gard
  • 11,225
  • 36
  • 115
  • 227
11
votes
2 answers

How do you correctly set document properties using VBA?

The problem I'm having some trouble setting document properties using VBA in Word 2010. I have a document containing several Heading 1 sections and I use a macro to extract a selected section (along with it's contents) and paste it to a new…
David Gard
  • 11,225
  • 36
  • 115
  • 227
11
votes
2 answers

Save the cursor position in a document and return there later on

I have a macro that scans my document for Heading 1 styles, and consequently the cursor is moved to after the last match. I'm trying to capture the location of the cursor before this scan occurs, and then return to that position after it has…
David Gard
  • 11,225
  • 36
  • 115
  • 227
9
votes
4 answers

How do I create a hyperlink from Word to Excel specific cell, without macros/vba?

In reference to Creating hyperlink from Excel FlowChart to MS Word Heading I would like to know the correct syntax to hyperlink to a specific cell in an Excel Workbook from a Word document. For example: Say I am in word document "Explaining" and I…
VISQL
  • 1,960
  • 5
  • 29
  • 41
8
votes
4 answers

How can I create a header in a table for each new page with OpenXml Wordprocessing

I am trying to create a table with a header. I want this header to be repeated for each new page that the table takes. How can I do this in C# and OpenXml Wordprocessing? DocumentFormat.OpenXml.Packaging.WordprocessingDocument internalDoc =…
RRR
  • 575
  • 1
  • 11
  • 25
7
votes
1 answer

Create Range from current cursor position Word 2010 VBA

I have a .docm document with a user form. On the user form I have a button that needs to insert something (some text, for starter) at the last known cursor position in the document. For this, I want to create a range. How can I get the starting…
Silviu Preda
  • 628
  • 1
  • 10
  • 31
6
votes
1 answer

Difference between Cambria Math italic font in Word 2010

In Microsoft Word you can use Equation Editor to insert math equations. The font used in the editor is shown as Cambria Math. I found there is a difference between italic version of the font in the editor and those out of the editor, as shown in the…
starforever
  • 107
  • 1
  • 6
6
votes
1 answer

How to run a VBA Macro by clicking Word 2010 Checkbox?

I want to run a macro when I click a checkbox in Word 2010. Note that I neither want the "Legacy Forms" checkbox nor the "ActiveX" ones! They do only work in some "protected document mode" and look ugly, but I want the new ones which can be…
Ingmar
  • 2,361
  • 3
  • 19
  • 33
5
votes
2 answers

MS Word VBA: I need a color palette dialog box

In VBA for MS Word 2010, how can I get Word to bring up a color palette dialog box so the user can pick a color? There are tons of examples on how to do it in Excel, but I haven't found any help for Word users. Here's the code for…
Steve G.
  • 411
  • 1
  • 7
  • 21
5
votes
1 answer

Adding a tab stop to a paragraph range in c#

I need help with adding a tab stop(position at 1cm) to a word document using word interop and c#. This is what i tried already. Range range = paragraph.Range; int firstTabStart = range .Start; range .SetRange(firstTabStart, firstTabStart); range…
user2390368
  • 101
  • 2
  • 9
4
votes
1 answer

Unable to use existing paragraph styles in Open Xml

I'm working on an export of an HTML file to a Open XML wordfile. If in the HTML

is used, I want to add a Heading1 style to that part. But somehow when I open the document in Microsoft Word 2010, the Style isn't applied. If I open the created…

Vincent Hogendoorn
  • 700
  • 1
  • 7
  • 23
4
votes
2 answers

Print certain pages only

I have the following code which works fine: Application.PrintOut FileName:="", Copies:=2 This prints my 10 page document twice. I now want to use the pages option to specify only certain pages to print out: Application.PrintOut FileName:="",…
oshirowanen
  • 15,297
  • 82
  • 198
  • 350
1
2 3
15 16