microsoft-word interview questions

Top microsoft-word frequently asked interview questions

Word: Disable spell checker for a paragraph?

Is it possible to disable the automatic spell checker in MS Word 2010 for single paragraphs of a document or just for some parts of a document?

I'd like to get rid of the squiggly lines in some parts of a document (e.g. containing extracts of an XML document), because they make reading the document hard.

Source: (StackOverflow)

Breaking the Outlook 2010 e-mail blue quote line for inline responses

I've finally figured out a way to comprehensively fix this problem, though it took a lot of work and the creation of an Outlook 2010 addin! See below for the addin download. As far as I'm aware, though, there is no way to deal with this problem unless you install an addin to do it, because this is essentially caused by a bug in Microsoft Word's conversion of documents to HTML (which needs to happen before you send an Outlook HTML e-mail).

See down below for the original description of the problem (Outlook 2007, 2010, etc. not allowing proper inline responses because you can't break the blue "quote line" on the left).

My addin basically intercepts the e-mail before it is sent, grabs the Word document (if the e-mail format is to be HTML), and fixes the Word document's XML, before saving it as HTML and setting the e-mail's HTML body to the 'fixed' HTML. Then, finally, inline responding works. :-) It can be done by going to where you want to break the blue line, pressing Ctrl+Q, and entering the inline response. Without my addin installed, the blue quoteline will be reinstated in front of the inline response when you send the e-mail.

Here's a screenshot to show what inline responses look like in Outlook 2010 once the fix is applied (yeah, it's messy because I was comprehensively testing it; all the stuff here is exactly what the (top of the) e-mail looked like before I hit 'Send'):

enter image description here

I have uploaded the source code of the addin that I had got round to developing when I originally posted this answer; I haven't had the time (or a copy of Outlook 2010 for that matter) to develop it further, so here's the disclaimer: this will probably not work at first because I can't remember where I was in developing it, but I know I got it to a proof of concept. I'm releasing this code under the GPLv3 so if someone with some development experience wants to try and get it working nicely with Outlook 2010, please do so and contribute your solution back (licensed under GPLv3) linked in a comment on this answer. However, I probably won't personally ever get round to making this a "finished" solution. The code is just to show you roughly how I did it. The addin is implemented in a Visual Studio 2010 solution, so you'll probably want to use that. Here's the download:

Jens Frederich contacted me to say that he has started working on making the addin usable. The Github project is here:

This has to be the most infuriating regression from Outlook 2003 to 2007. It also exists the same in Outlook 2010, as far as I can tell.

When you reply to an HTML e-mail message in Outlook, the quoted text has a blue line down the side, and is usually at the bottom of the message:

alt text

Now in Outlook 2003, when replying to HTML-formatted messages in Outlook, you used to be able to reply inline quite easily, by getting to the point in the quoted message you wanted to reply to, and pressing the 'decrease indent' button:

alt text

Since Outlook 2007 (and 2010), they replaced the e-mail editor with Microsoft Word. This means the blue line is implemented in a different way; it uses a blue left border. This makes it tougher to break the line up. After much ado, I found a couple of pages that said that you could remove all formatting by pressing Ctrl+Q, which would remove the blue line next to the cursor and allow inline replies:

alt text

OK, not too bad on the face of it. I can live with that. But here's the kick in the teeth; try sending that mail. I'll send it to myself. What do I receive? This:

alt text

Outlook 2010 reinstated the blue line, where I had removed it, upon my sending the e-mail! For God's sake! The two pages I linked to above don't seem to address Outlook's reinstating of the blue line upon sending.

So, does anyone know how you can actually reply inline in Outlook 2010 (or Outlook 2007) e-mail without the blue line being reinstated? Before anyone says, I do not want to convert the message to plaintext, and I do not want to just indent replies and have to manually build the blue line myself. I want something like the Outlook 2003 behaviour; I reply, Outlook creates the blue line, and I can break it up with inline replies, send it, and my inline formatting stays.

Source: (StackOverflow)

How to create a footer with a chapter name and page number?

I'd like a footer that has not only page number, but also the chapter title (heading 1) depending on what chapter the page is in.

How do I add the chapter info to the footer?

Source: (StackOverflow)

How can I get Word 2010 to show more styles than "Heading 1"?

There's no way to select Heading 2 (and higher). Suggestions on how to fix this are welcome.

It doesn't change when I creating documents from other templates.

Source: (StackOverflow)

Prevent Microsoft Word from wrapping tables across columns and pages

When writing technical documents, it is often required for tables to not wrap across columns and page breaks, so that all data from a given table are displayed in one place. In LaTeX, there is a setting to prevent tables from wrapping unless they are simply too long to do otherwise. Is there any similar such setting for Word 2010?

I know I can manually insert column and page breaks, but it becomes a hassle to reformat the entire document if I add in two lines of text which bumps two lines of a table over to the next column. I also found an option under Table Properties for "don't break row over pages", but this doesn't seem to do what I want. Is there any other setting that can do this?



unhappy column


happy column

Source: (StackOverflow)

Shortcut keys don't work in MS-Word on Win8

I've just upgraded to Windows 8 (from XP) and re-installed my copy of Office 2007. Now the common shortcuts (Ctrl-Z, Ctrl-C, Ctrl-V etc) don't work in Word, however other shortcuts (Ctrl-P) are fine.

These shortcuts do work in other applications (such as Chrome) and they even work in other office applications (PowerPoint).

When I go into the customize shortcuts option in Word I see that EditPaste command has Shift-Insert shortcut and I can add Ctrl-V but I can't find Undo and Redo.

BTW I'm using a Hebrew version of Office (I don't know if this is relevant).

Note: The accepted answer was edited after I accepted it. I didn't check that the modified answer is correct so be aware that the original answer (and the one that solved my problem) was to do with the currently selected input language when Word was launched, not the default keyboard language.

Source: (StackOverflow)

How do I insert text above a table at the top of a Word document?

This seems like it should be so basic, but it apparently isn't very intuitive.

The scenario: (1) I've inserted a table into a new blank MS-Word document. (2) I want to add some text outside and above the table.

The table is butted right up against the top of the document and I can't move the cursor to a point before the table to insert any new text.

I've found that you can do this by cutting the table to the clipboard, type the new text and paste the table back, but there just has to be a more straightforward way to put the cursor at a point before a table that is at the top of a document.

Source: (StackOverflow)

How to keep selected text highlighted when focus changes in Microsoft Word/Excel

Related to this question: Show cell selection in Excel when not in focus except that my case concerns Microsoft Word.

When I select text or a column/row in Microsoft Word or Excel (2003, 2007, 2010 or 2013) it shows up highlighted like this in Word:

enter image description here

and Excel:

enter image description here

However, when I change focus to another program, the highlighted text is no longer highlighted.

I generally work with 2 monitors, where one monitor contains a document/spreadsheet containing data I need to read, and the other monitor is where I am actually doing work. I will select some text (or cells) to make it stand out amongst the many pages of data, and then switch programs, but the highlighted text is no longer visible.

Is there a permanent solution to this problem?

Source: (StackOverflow)

How do I add formatted code to a Microsoft Word document?

I need to write a document in MS-Word 2007 that contains a lot of examples of VB.NET and C# code.

What is the best way of getting the code to look reasonable in the document?

What styles etc do people use?

(I do not have time to hand edit/format the code, and would be very happy if it just looked the same as it does in developer studio)

In other works what do people do that are writing programming books, there must be a good automated solution for this...

I would like a way to use word styles sheets to control what the code looks like, but don't wish to have to "select" every keyword etc to set it's style.

see also

Source: (StackOverflow)

How do I set up continuous paging in Word across different sections?


In a document I'm preparing, I have the following sections:

  • Cover page, table of contents, introduction, etc. -- portrait orientation
  • The second section, some challenges -- landscape orientation due to space limitations
  • Third section, some recommendations -- portrait orientation again.

I use section breaks to accomplish the different page orientations.


While the section breaks work well for orientation, it looks like they throw off MS Word's Table of Contents, which starts over at page 0 for each section:

Table of contents, starting at zero for each section


How can I get MS Word Table of Contents to ignore section breaks for the purposes of page numbering, so that I can have continuous numbering of my pages?

Source: (StackOverflow)

Is there a keyboard shortcut to indent a nested bullet point in a table cell the proper way?

Open Word and insert a table (1 x 1 will work just fine).

Right-click in the table and, in the context menu, select "Bullets" and a bullet image from the bullet library.

enter image description here

Type something and press enter.

Type something else, but, instead of clicking enter, right-click and select "Increase Indent"

enter image description here

Notice something else moves into the proper indentation of a nested bullet:

enter image description here

Outside of a Word table, you would simply press tab to get this behavior, but I want a keyboard shortcut (if available) to do this inside the table.

This is what I've tried:

  • Ctrl + Tab: Just indents the text, not the bullet
  • Ctrl + T: Same as Ctrl + Tab
  • Ctrl + M: Indents the text and the bullet but does not change the bullet style

Can this be done outside the right-click context menu?

Source: (StackOverflow)

How can text be justified on both the left and right sides of a line in Word?

Is it possible to set Microsoft Word to display some text left-aligned and other text right-aligned on a single line? Here's an example of what I mean (vertical lines represent edges of page):

| Chickens, turkey, geese, pigeon and duck   30 |
| Cows                                      240 |
| Pigs and boar                              83 |
| Sheep                          Not applicable |

The full justify option won't work because I don't want anything in the middle of the lines. The table of contents option has the formatting I want, but only supports page numbers, which does me no good.

Source: (StackOverflow)

Missing the "L" shaped formatting icons in Microsoft Word

I am missing the "L" formatting (or maybe layout) things in Microsoft Word and don't know how to get them back.

Below screenshot I found shows the missing parts in red circles:

word doc with marks

How can I re-enable or show these things? They look like corners of a box.

Source: (StackOverflow)

Syntax highlighting in Microsoft Office Word [duplicate]

Possible Duplicate:
How do I easily highlight the syntax of PHP code in Word?

I need to paste some code (ANSI C) in Microsoft Office Word, and I need some form of syntax highlighting (instead of simply changing the font to Lucida Console)

Is there some sort of addon maybe that will let me highlight code syntax in Microsoft Office Word ?

Source: (StackOverflow)

Batch convert Word documents to PDFs

How do I batch convert many Word documents and have them saved as [originalfilename].pdf?

Source: (StackOverflow)