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

Malfunctioning AppActivate in Excel VBA 2016 for Mac is driving me nuts.

Anyone found a way to return to the Excel app having switched focus to, say Word, programmatically?

This triggers an error (works fine on a PC)
AppActivate ThisWorkbook.Windows(1).Caption

Open in new window

This triggers no error on a Mac but also has zero effect. (On a PC it causes an error, but that would be fine using conditional compilation).
AppActivate "Microsoft Excel"

Open in new window

I have experimented with simply minimising the Word window, but cannot then re-maximise it programmatically on a Mac either.

This works
WordApp.ActiveWindow.WindowState = wdWindowStateMinimize

Open in new window

But this does not:

WordApp.ActiveWindow.WindowState = wdWindowStateNormal

Open in new window

I seem only to be able to restore Word manually once I've minimised it.

Any ideas?
Hi how can I edit a word doc newsletter file. I tried to customized it but its hard to move thing around. Can you help?
I want to split the comments into words, eliminate words and categorize the comments.
Hi Experts,

under this folder i have 100 xmls
i want to see specific tags along with value
 <empid>100</empid> .. so on
how to fetch using linux command .

2.while fetching logs
how to use more command
more info.log i am giving this command logs are showing .
after that how to trace a specific word

more info.log
'textexample' i want to seach this word.

3.when to use more command and when to use less command.

suggest me best ways to trace the logs .
when log file size very huge and log is written in multiple files(i mean if i want to find logs in current and old files) how to fetch the specific word from all the logs.
Hello Community Members...

I have Windows 10 Home Edition and want a page from Publisher to send into Word as trying to make an ebook...

Have looked at the software but could not do it if it could be done...

All help Valued...

I can Mail Merge using Word.  I need to be able to maintain the hyperlinks in the word document to the end receiver of the email.
I have a VBA project in a Word document, to which I have added a module with several subroutines. I want to add shortcut keys to the project with the usual easy-to-remember command sequence “File > OpTions > Customize Ribbon > CusTomize > Macros > SaVe changes in (Drop-down box)"
    The drop-down menu for that command should show both my Normal and my Module1 modules, but all it shows is Normal.dotm.
Why? Have I got a memory problem?
I am using a word template for writing a resume. I would like to add background color to a text box. How do I do this? I attached the file its the second and third page white text boxes.
Can you password protect a calendar invite? This would be similar to password protecting a Word file.
For instance, I sent an e-mail, to someone, over an unsecured connection, or the invitation is not encrypted, can I send the meeting invitation in a way that it is unencrypted, and has a password on it. In other words, the user will have to login to an account, or create one (a Microsoft Online account) before they can access the meeting invitation.

Or even better, what if I just send the user a PDF file, with the calendar invitation attached, would they still be able to open the calendar invite and add it to there calendar?

Can I export a calendar invite in Outlook 365 to PDF,  and configure it to add the meeting invite to Outlook 365 or whatever e-mail client that recipient is using?

A few year ago, I had to install software (I believe it was on a computer before I could open a PDF file, in other words, I had to register the computer before I could open the file. So can the same concept be used to open encrypted calendar invites?
I have an application where I provide a Drop-Down list Content Control in a Word document.  

Is there a way to set the control so it will accept free text entries not included on the drop-down list, yet still keep the CC in place?  

The only approach I can think of is to have the user manually delete the CC then type the text they want in its place.

Thanks for any suggestions.
I know that:

     "Selection.GoTo(What, Which)"

does not work when the "Selection" (Word document) is in "Web Layout".
(Note: the currently selected "Layout" can be viewed in the "View" menu on the left hand side).

To *GET* the current Page/Line # from within Word VBA I call:

        Dim iCurPage As Long
        Dim iLineNum As Long
        iCurPage = Selection.Information(wdActiveEndAdjustedPageNumber)
        iLineNum = Selection.Range.Information(wdFirstCharacterLineNumber)

      (I Store this information for later use).

To *SET* (move the cursor and set focus to) a newly opened document to the last Page/Line # from within VB.NET I call:

     Public theApp As Object
     theApp = Application

     theApp.Selection.GoTo(What:=Microsoft.Office.Interop.Word.WdGoToItem.wdGoToPage, Which:=Microsoft.Office.Interop.Word.WdGoToDirection.wdGoToAbsolute, Count:=iPage)
     theApp.Selection.GoTo(What:=Microsoft.Office.Interop.Word.WdGoToItem.wdGoToLine, Which:=Microsoft.Office.Interop.Word.WdGoToDirection.wdGoToRelative, Count:=iLine - 1)

     (I hate and have disabled the "Welcome Back" feature).

I can *GET* the Page / Line #'s regardless of whether the document is in Print or Web Layout.  I don't care.
However, since I cannot *SET* the Page / Line when the document is in Web Layout, I programmatically:

     Change to Print Layout
     *SET* the cursor and focus to the Page / Line #
     Change back to Web Layout

The problem is that…
How do I superscript part of word in word table.


Cw  where w is superscript
JSb where b is superscript
KGab where a and b are superscript
I am trying to compare 2 columns in a word table and if they match return a specific value. There are 13 rows in the table and I am starting at row 3. If the entire column 4 is equal to the entire column 34 then add text to table 6, otherwise do nothing.

The first problem is that it is showing  no match at all. Even though it should.

So for example

Sub CompareColumns()
    Dim tbl1 As Table
    Dim tbl2 As Table
    Dim r As Integer
    Dim cl As cell
    Dim rw As Row
    Dim c As Integer
    Dim d As Integer

    Set tbl1 = ActiveDocument.Tables(9)
    Set tbl2 = ActiveDocument.Tables(9)
Set tbl3 = ActiveDocument.Tables(6)
    c = 4 'Column No

    For r = 8 To 8
        If tbl1.cell(r, c).Range.Text = tbl2.cell(r, d).Range Then
                   tbl1.cell(r, c).Range = "Yes"
        End If

    Next r

End Sub

Open in new window

What is the easiest way to create a QR Code or a PDF417 bar code, which can then be copied and pasted into regular Avery type label templates?
Can Microsoft Word be used to do this, or can a simple program be used to do this?
Short description: I am having a problem in cutting and pasting rows in a Word table: the pasted rows do not follow the other columns of the table, and that makes the table useless. The first picture shows a table with four items. If we cut the third row, move to a currently hidden section of the table, and paste the cut row there, it destroys the table. The second picture shows the hidden section of the table where the pasted row does not follow the other rows.
Details: I am developing a system for teaching French vocabulary to students. I first create a list of about 200 expressions in French and English. Users then use such a list to memorize the words from French to English and vice-versa. One can sort the list in several diverse ways: original order in source text, sort by French, by English, by parts of speech, or random order. The user can also select a subset of the expressions and work with them alone. The first picture shows such a subset. The other expressions not in the subset are hidden immediately beneath the visible words.
My problem is I want to let users temporarily hide words they have already learned. The user can select cells in one or more rows to hide and then press a shortcut to make the selected rows disappear. We hide chosen rows by designating them as “hidden” and then, to keep the automatic numbering of words valid, we cut and paste the chosen lines to the bottom of the table, from where we can later restore them whenever the user wants.
The …
Greetings Experts,

I have a very interesting challenge for everyone today. I have a very big Word document and there are attached objects(Not links).

What I am trying to do is to create a VBA subroutine flexible enough to be able to include counting the words present in these attachments. In the end, it is best to show a message box with the accumulated number of all the words in the Word document inclusive of all the words present in the attachments in the document.

It also needs to be "smart" enough to know what documents it can count from. For example, it would skip any MP4 embedded objects or images but read pdf, xlxs, etc.

Is this possible? Any help is much appreciated!
I have a Word VBA add in, working in Windows.
The addin reads Hebrew text from text file and displays it in user form lable.
I want to adjust the add in to Mac, but the project couldn't read the Hebrew text.
I've saved the text file in UTF8, UTF16, UTF16 BE Iin Mac) but although the text is displayd correctly in the Mac text editor,  none of the formats worked on the Useform label.
Is there a work around?

In office 365 when I open once specific file it stops responding and eventually I have to close the application. I tried using the same doc file in a different version  of Microsoft office 2010 and it seems to work fine with no issues. I have tried to do quick repair, online repair, and re-install the application but nothing seems to fix the issue I am having. I tried opening the file in safe mode but it still do the same thing and also unchecked all the add-ins in safe mode but no results.

Word and other apps just work fine but the problem is with that one specific file.

We have a PC that is not allowing the user to select windows from the Peek in the Taskbar. When the users focus on an app like word, ie or outlook the peek does not work and the user needs to click the taskbar to enable peek. Once he can see the windows in peek we are unable to select the window. The peek will work for a short time after a reboot but then revert back.

We have done the following;
•      Checked the settings with a working PC
•      Full rebuild of the PC
•      Installed all updates
•      Disabled the AV
•      Ran sfc /scannow
•      DISM /Online /Cleanup-Image /RestoreHealth
•      Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
•      Get-AppxPackage | Remove-AppxPackage
•      Get-AppxProvisionedPackage -Online | Remove-AppxProvisionedPackage -online
•      Editied HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced

General PC info
Make and Model:  Dell Inc. (Inspiron 3668)
Processor: Intel(R) Core(TM) i3-7100 CPU
RAM: 8.00GB
OS: Windows 10 Pro
Domain joined: yes
The envrionment is MacOS Mojave (most recent updates are applied), Office 2011 for Mac (most recent updates are applied) and MacMail being used with an Exchange account. Our client is no longer able to attach documents from within the File > Share menu in Word or Excel to MacMail (new message), MacMail shows in the foreground, but a new message is not created. This worked, according to our client, until recently.

The client does not want to switch to Microsoft Outlook, but an upgrade to a newer version of Office, if a solution, might be considered.

We have tried everything we can find via Apple Support and other resources (e.g. making sure MacMail is the default mail client), and options to check and/or repair permissions have been removed form Mojave. Any suggestions would be appreciated.
We have a user who has a massive 55 page Word 2016 table that they append to every day on the last page. They want to flip the table and edit it from the first page going forward.  There are a few merged cells and not sure if that would gum up the works.

I feel like there should be a way to do this simply whether it be to copy the table into Excel, reverse it, copy it into a new Word doc and start adding at the top etc. Just haven't found it yet and I'm sure someone on here has found a good method for doing this.

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


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.