Microsoft Word





Microsoft Word is a commercial document editing program that is part of the Microsoft Office suite. It features numerous text-editing tools for creating richly formatted documents, along with tools for the use of macros in Word documents. Word's native file formats are denoted either by a .doc or .docx file extension. Plugins permitting the Windows versions of Word to read and write formats it does not natively support, such as the OpenDocument format (ODF) are available. Word can import and display images in common bitmap formats such as JPG and GIF. It can also be used to create and display simple line-art.

Share tech news, updates, or what's on your mind.

Sign up to Post

I working on a time critical task with some lawyers at one of our clients, in exporting certain emails from PST files which have corrupted files. My task is to try, on a best effort basis, repair - PDFs, DOCx, XLSx, JPEG files. If anyone know of any softwares you have worked with in the past in repairing such files, please send any info my way. Thank you 

Error examples:

XLSs:  Excel cannot open the file ... because the file format or file extention is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.

PDF: There was an error opening this document. The files i damaged and could not be repaired.
PDF files are old like 2015, however I am able to open some other attachments from the same email with PDF so it should not be the fact that how old is it.

IMage file " JPG:  It appears that we dont support this file format. using windows image viewer.
I'm trying to replace hardcoded addresses in a table inside the header at the top of the word document with mailmerge fields
1 Spring Avenue
Springfield TT4 77S

{MERGEFIELD Address_line1}
{MERGEFIELD Address_line2}
{MERGEFIELD Address_line3}
{MERGEFIELD Address_line4} {MERGEFIELD Address_PostCode}

The same address appears elsewhere like in main area or footer but only the address in the header should be replaced.

I'm trying Word VBA to get a single document working and if I can get it working then do excel vba to batch process documents in a folder

I have tried

Sub replace()
--this can replace the word in the main body ok - but not the word in the header section table

Dim oRng As Range
Set oRng = ActiveDocument.Range
'With oRng.Find
    'Do While .Execute(FindText:="Springtown")
        'oRng.Fields.Add oRng, wdFieldMergeField, "Address_line1", False
        'oRng.Collapse wdCollapseEnd
'End With

With oRng.Find
      .Text = "Springtown"
      .Replacement.Text = ""
      .Forward = True
      .Wrap = wdFindStop
      .Format = False
      .MatchWildcards = True
End With
If oRng.Find.Found = True Then
    oRng.Fields.Add oRng, wdFieldEmpty, "MERGEFIELD Address_line1", False
End If

End Sub

Sub replace2()

Dim oRng As Range
Dim hf As Word.HeaderFooter
Dim tableCount As Integer
Dim t As …
We have an application running in Internet Explorer Version 11.0.9600.19301.  This application runs cases for us and creates letters by merging data into a MS Word template (office professional plus 2016). This environment is used by around 45 employees and is delivered to users through a Citrix remote desktop environment.

The issue is that for a handful of users, when the word document is created it only runs in the background, you see the instance of winword.exe start up in task manager, but you can't get to the document. The case will not move as it asks you to close word and you can only do this by ending the winword.exe instance in task manager.

We can clear the problem temporarily by creating a new user profile for the individual. This allows them to work normally, but after a while, and with no apparent reason, it then reverts back to having the issue after a period of time - so the problem must be profile related.

Any help or advice as to how I can debug this issue is greatly appreciated.

I have a macro in Microsoft Word that I am using to sort a table by its first column, which contains dates in this format: 03/07/17 1357

There are possibilities of the dates being in a few different formats (with an unspecified number of spaces, or line-breaks, paragraphs, even date ranges, etc): 03/07/17 1357; 03/07/17  ^p 1357; 03/07/17 - 03/17/17

I inherited the macro, and it has a lot of pieces commented-out, I added pieces from what I recorded during a manual sort, some functions are repeated, and overall it sometimes works... It looks like garbage and I would really appreciate some assistance in cleaning it up.

Can somebody help me fix this to be more elegant, efficient, and effective?

I'll attach a sample table/document as well:Testing.docx

Sub AutoSort()

' AutoSort Macro

' Message box data

'    Dim WarningMessage As Integer
'    Dim MacroCompleted As Integer
'    Dim MacroStart As Integer
'    Dim MacroCancel As Integer
'    WarningMessage = MsgBox("Warning: You are about to run the visual basic auto date & sort macro." & vbNewLine & " " & vbNewLine & "Before you continue please ensure you have clicked INSIDE the table of which you wish to automatically sort." & vbNewLine & " " & vbNewLine & " If you have you can press 'ok' to begin the process, or cancel to stop it." & vbNewLine & " " & vbNewLine & "You can not undo the processes of a macro, and it is advised you save your work prior to 

Open in new window

Dear EE,

Can you help to share info about any third party software to monitor any program exe, e.g. (Winword, or any software exe) is running or not and if not running then send email to a user.

Screenshots taken using windows snipping tool are blurry when used in other media (PowerPoint, Word, etc)  Text is particularly bad and sometimes unreadable.
Is there a foolproof method to have screen capture faithfully represent the original?
Hi All

I would like to disable the Alt + F4 short which closes active windows within Widnows. Spefically Microsoft Office applcations word, excel etc.

Our users have new laptops with samll keyboards, some usesrs have been hitting this combination of keys by mistake and clicking not on the save prompt.

I thought this would be a standrd regedit but cant spot a conslusive answer online.

Many Thanks
Struggling to figure out the Mac OS equivalent of the following WIndows API call declarations in VBA.

Declare PtrSafe Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Private Declare PtrSafe Function GetPixel Lib "gdi32" (ByVal hdc As LongPtr, ByVal X As Long, ByVal Y As Long) As Long
Private Declare PtrSafe Function GetWindowDC Lib "user32" (ByVal hwnd As LongPtr) As LongPtr

Open in new window

I'm using the three in combination to retrieve a pixel color from wherever a Word user clicks on the screen. Any ideas?
Word lookup in Word 2010 has stopped working.   I have all reference websites checked and it says that I dont have connection to internet.
We have a single user who is having issues saving files in O365 Word. User is the co-owner, so I need to resolve. Frequent enough to be an issue, but not happening every time. When she saves a file, Word will go into a not responding state for approximately 30 seconds, but up to 2 minutes. The issue happens when the file is saved to the local machine, or to a network location.

Things I have tried to resolve.

I thought that it could be a OneDrive saving issue, as she does not have OneDrive installed on the machine, so I installed and configured. That made no difference.

Disabled Graphics Acceleration

Enabled Word Option to "Copy remotely stored files onto computer, and update remote when saving"

Quick Repair / Full Repair install of Office

Full uninstall of Office using Revo Uninstaller, Reboot, and fresh install of 64bit office.

Disabled any add-ins

Uninstalled Antivirus platform, Avast Cloudcare

Disabled "Show additional places for saving"

We have been receiving a large amount of job applications in the form of PDFs.

The problem with these is that we can't edit the text in these PDFs.

There are some converters online I have tried but they cause the format to change compared to original PDF.

I tried converting using Microsoft Word. It worked with some to convert to Word document but ruins format of some PDFs which are more structured.

Any ideas how to best edit the text in PDFs or convert to text document like Microsoft Word?

My Exchange Server 2013 is blocking genuine emails with the error message 554 5.7.1 This message has been blocked because it contains a banned word. (in reply to end of DATA command). Where do i maintain this list as i never setup any filtering on the exchange server. I already have the filtering on the gateway level. This is strange as i even disable the malware filtering in the Exchange 2013 ECP. I don't want any blocking of emails on the Exchange server

i'm using Office 365 Word and Im find it really odd.  The page break between the two pages does not resemble that of MS Word with a space between the pages and also I cannot get the page 1 of x shown at the centre bottom despite having it selected it from the menu.
Word file shows Page 3, 3, 5, 6 & 7. No matter what I do, I cannot seem to correct the page numbering sequence. No offense to the people at Microsoft, but when all else seems to fail, there should be some function that just lets you override the page number and implicitly put the page number you reference.  Of course, that would be too simple.
File is attached.
How do you overprint a line in Word?
Hello.  I am trying to Capture Style Header Data In A Variable using VBA. I have code that I am using to Loop thru a Word Document.
 I am looking for all "TBD"s Ex. <TBD 6.1>.  I have the code to find the TBD.  I look for it 2 ways.  I look for the ones in a Table.  I also look for the ones that are not in a Table.
The code I have finds and captures all of the data I need for the Table.  I need help with the "TBD"s that are NOT in a Table.

When A TBD that is not in a Table is found, I need to capture the data in the Style Header 1 or Style Header 2 or Style Header 3 or Style Header 4, etc.
Whichever Style Header that is above that TBD needs to be found.   When it is found, I need to capture that data in a variable.  Please see the Sample Attachment.
When <TBD 1-4> is found, I need the data in Header 3 captured in a variable.  1.1.2  AVENGERS TASKS (IN DESCENDING PRIORITIZED ORDER)
I am running this code from MS Access.  When the data is captured, it will added to  an MS Access Table one at a time.  I have that code and it is working.

 Now a few things.  This is the big picture of what I need.
I don't need an Array.  I need to find and capture them one at a time.
When TBD is found, somehow mark that location.  
Capture the data of the Style Header above that TBD in a variable.
When the data of the Style Header is captured,  I need to go back to the TBD that was found so the search for the next TBD starts there.
       The data will be added to the MS Access …
I am sending an email from Word 365 to addresses i merge from an Excel 365 file. I am looking for a way to send from an email address that is not mine but is in my Office365 E3 account stable of domain names.  

No email account exists for it and i can manually send from it in an individual email message.  I followed one tip that said to select the account in my account settings but there is only my account.

I don't know how to set up the other domain in a profile since there is no subscription for it.  Please let me know what other details i should provide.  

Ideally there would be a FROM field in the "Finish & Merge" dialogue box for "Merge to E-mail" but i haven't found a way to show it.
transfer data from excel to word
Hi, I'm trying to create a Word 2016 macro to select specific trays for printing various types of documents.  My problem is getting the macro to recognize trays 5 and 6.  I ran a macro to get the names for all the trays and trays 1 - 4 work fine with the names it pulled. Tray 5 it named 65529 and tray 6 it named 65528.  When I run the macro to use trays 5 and 6, I get -
- Run-time error '9118' Parameter value was out of acceptable range.

Open in new window

I've tried 528, 529, Tray5, Tray6, 5528, 5529, 25, etc. The printer is an hp 60065 (m608). I know it can be done setting up multiple printers for each type of job, but I have a lot of these printers to set up so I would like to avoid that route if possible. I've set up printer preferences (shortcuts) within the printer properties but macros cannot record this information.  

If anyone knows what these trays are named or another way to accomplish this task, it would be greatly appreciated. (FYI - Tray 1 - wdPrinterUpperBin, Tray 2 - wdPrinterMiddleBin, Tray 3 - wdPrinterLowerBin, Tray 4 - wdPrinterLargeCapacityBin).

Thank you.
MS Word continues to display an error, with every click of a word file name.  I get the error message "word could not create the work file.  Check the temp environment variable."

If I click anywhere, it repeats the error.  If I click another word file, another error.  Very quickly, very annoyingly.

I have of course tried google, and the basic problem/solutions described dont seem to work for me, or I dont understand them.  Hoping this crowd could zero me on a fix for this problem.
I had this question after viewing Word 2016 - GPO cut, copy and paste settings.

Windows 10-Office 2016
We are trying to find the registry setting for "Style area pane width in Draft and Outline Views" in Word2016
This option is in File>Options>Advanced>Display

Is there a document that lists all of the options and where they are stored?  We are trying to image 100 PCs and would rather not have to touch each one!

Thank you.
I have a user certificate that I use for electronic signatures.  I can use it to sign Adobe PDF's, and Microsoft Word docs in Office 2010 (Windows 7).

When I try to sign a similar Word doc in Office 2016 (Windows 10), I get the following error :

Your signature could not be added to the document.  If your signature requires a smart card, ensure that your card reader is installed correctly.

I get a failure whether the Word doc is on a network share or on my local drive.

The same certificate on the same Windows 10 computer can electronically sign a PDF.  

I get this error on multiple Windows 10 computers (using the same certificate). I even made sure on one Win 10 desktop to make sure a new user profile was created when I logged in.  

A coworker who also has Office 2016 running on Windows 10 can sign a similar doc (located on the same network share) without any issues.

I have revoked and re-issued myself a new certificate multiple times.  But I don't think it's the certificate since it works just fine on every Win 10 computer if I signe something in Adobe Reader.

It's only Word 2016.  

Where do I look for the red flags?

I have a problem with sharepoint online in combination with metadata and Office. We have created a Sharepoint Team site. Inside the document library we have created a document set with a bunch of shared properties. We have also activated the document ID feature, so each document is created with a uniqe, visible ID. This works fine - all documents have IDs in sharepoint.
Now we want to use this properties in Office (e.g. Word) inside the document footer.
But when I open the document properties page in Word, no additional properties are shown.  We also cannot use them inside the document.
No matter which office version we use.

Is this a limitation of document sets?
Does anybody have an idea?

Thanks in advance!

cheers, Martin
I have one workstation in one organization experiencing an issue with opening documents on a mapped network drive. The user opens word and then selects File > Open to view the mapped network drives. However, the mapped network drives are not listed. I can save locally to the PC, I can save to any device under Network locations but the mapped network drives are not there. I opened Excel, Office and PowerPoint and attempted the same File > Open and I have access to the mapped drives in those applications so it appears to only affect Word. I logged into the workstation with another user profile and replicated the issue in Word so it doesn't appear to be a user profile issue. About 15 minutes after I investigated the issue, the user reported that she rebooted the workstation and now has access to the mapped drives in Word when she selects File > Open. The issue appears to be intermittent and fixed (sometimes) by a reboot.
The user is working on a new Windows 10 machine that was deployed about a week ago. The user said she did not have the issue with her old Windows 7 machine.
This sounds like a possible permissions issue but I don't understand why if it's a permissions issue if it is only happening intermittently?

Added info from the user: Yesterday the issue happened the first time after a 30 minute period of inactivity but I had my Word document left open when I was away from the computer.  Today it happened fairly soon after I opened the document I was working on and I …
Please be gentle, I'm learning and I haven't worked with RecordSets and there are likely to be a number of "concerns" regarding the following code!   My learning issue is that I have a Word userform and I'm accessing an Excel spreadsheet that has 4 rows.

Field 1 -  Field 2 -    Field 3
1              Tom         Smith
2              Dave        Brown
3              Sally         Jones
4              Jane         Frank

I CAN search and return records on Field 1 (the number) but not Fields 2 or 3.  This might be something to do with how the record set is handling rows or fields but I don't understand what is happening at "search time" that works fine on Field 1 but not Fields 2 and 3.    

A couple of pointers to get me going again would be appreciated - I'm stuck!

Many thanks

My code:

' Connecting to an Excel Dataset using ADODB.
    Dim RS As ADODB.Recordset, rsCount As ADODB.Recordset
    Dim cN As ADODB.Connection
    Dim sqlGetTbl As String
    Dim sDataSource As String, sDataTable As String
    Dim sProvider As String

' set the recordset as the file and spreadsheet
    Set cN = New ADODB.Connection
    Set RS = New ADODB.Recordset
    sDataSource = "\\server\user\fred\FeeEarnerSigList.xlsx"
    sDataTable = "[Sheet1$]"

' the format to be used
    sProvider = "Microsoft.ACE.OLEDB.12.0;"
    sDataSource = sDataSource & ";Extended Properties = 'Excel 12.0 Xml;HDR=Yes;IMEX=1';"

' open the spreadsheet

Microsoft Word





Microsoft Word is a commercial document editing program that is part of the Microsoft Office suite. It features numerous text-editing tools for creating richly formatted documents, along with tools for the use of macros in Word documents. Word's native file formats are denoted either by a .doc or .docx file extension. Plugins permitting the Windows versions of Word to read and write formats it does not natively support, such as the OpenDocument format (ODF) are available. Word can import and display images in common bitmap formats such as JPG and GIF. It can also be used to create and display simple line-art.