Microsoft Word

27K

Solutions

21K

Contributors

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

Does Microsoft Word have any way where code can be inserted in a format like the format shown below?

I often need to document code within Word 2016 documents and would prefer to document it in the same or a similar form to how code can be inserted into Experts Exchange postings:

If so how can this be done?

net stop wuauserv
net stop cryptsvc
net stop bits
net stop msiserver
rd c:\windows\softwaredistribution.old /s /q
rd c:\windows\system32\catroot2.old /s /q
ren c:\windows\softwaredistribution softwaredistribution.old
ren c:\windows\system32\catroot2 catroot2.old
Net start wuauserv  
net start cryptsvc
net start bits
net start msiserver

Open in new window

0
Cloud Class® Course: CompTIA Healthcare IT Tech
LVL 12
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

I used Microsoft Word to create a flowchart. I closed and saved the document. Now if I open MS Word and create a new document, I get a fine grid as my word document, and word seems to be stuck in Flowchart mode. Plus if I open other word documents that I created a year ago, they now have the grid behind the text. How can I fix this?
0
Word 2013 is printing addresses vertically on envelopes which is wrong and should print horizontally to a Ricoh 5055 MP printer copier.
The drivers are correct on the Windows 2008r2 print server that is being used.

When users setup the envelope print options, they click reset and the envelope setting changes to the correct setting, and will print continuous envelopes correctly,
However when they login to there workstation the next day, the settings change and the addresses print incorrectly again.

How can I make the setting in Word stay to the correct setting.

Thank You
0
I had this question after viewing Word VBA How to programmatically set highlight color of dropdown content control?.

Hi,
I want to populate unique values from a excel column to a wdContentControlDropdownList and assign it to a bookmark defined in word. Can you help how to do it?

For the time being, I have tried hard coding the list entries but still no luck. below is the code.

Dim lobdd As ContentControl
Dim WRD As Object
Dim ws As Worksheet
Dim DOC As Object
Set ws = ThisWorkbook.Sheets("Sheet1")
lstrow = ws.Cells(Rows.Count, 1).End(xlUp).Row
On Error Resume Next
    Set WRD = GetObject(, "Word.Application")
    If WRD Is Nothing Then Set WRD = New Word.Application
    Set DOC = WRD.Documents.Open ("path here" , ReadOnly:=False)
    WRD.Activate
Set lobdd = ActiveDocument.ContentControls.Add(wdContentControlDropdownList)
With WRD.ActiveDocument
str = ws.Range("B2").Value
.Bookmarks("Title").Range.Text = ws.Range("B2").Value
With lobdd
         .Title = "Cities"
         .SetPlaceholderText , , "[choose a City]"
        .LockContentControl = False
         .DropdownListEntries.Add Text:="Copenhagen", Value:="1"
         .DropdownListEntries.Add Text:="New York", Value:="2"
         .DropdownListEntries.Add Text:="London", Value:="3"
         .DropdownListEntries.Add Text:="Paris", Value:="4"
         End With
   

Open in new window

0
Windows 7 Pro PC
Office 2016 (purchased not subscription)
Server 2016 standard

Many Word documents are opening as read only

This happened twice in the past with another user and was fixed by creating a new network username and a new profile on the PC. Now it is happening to another user. I don't want to keep creating new user profiles JohnDoe1; JohnDoe2; JohnDoe3

I have never seen this anywhere else. Anyone have any ideas?

Many thanks for your suggestions

Bob
0
I work as a translator, and sometimes a project contains a lot of difficult terms so I have to lookup each and every term in the documents. But when even Google searches don't render any results or only a few pages, it's really difficult to find a translation for such terms. Almost always in these cases, it's a technical handbok for some kind of machinery. Today I translate several handbooks for crushers, feeders and screens (cone crusher, jaw crusher, huck bolted inclined screen, scalping screen and a vibrating grizzly feeder).

So I was thinking of this solution, if it's viable:

I have a list of these difficult terms that don't give any search results on my national Google.se (advanced search settings: display results in my language Swedish) and can't find anything in my technical electronic dictionaries either. The best now would be if I could find other documents (pdfs, word documents etc.) and also websites in a selection of languages (I am proficient in German, Spanish, Italian, French, Norwegian and Danish) for these terms in this list by doing a deep web search.

Also, if I could find exhaustive definition context for these terms on English websites and in documents in English. The best is of course a comprehensive technical dictionary, but the one I found, McGraw-Hill Multimedia Encyclopedia of Science & Technology, seems to be out of stock everywhere.

But perhaps the most effective way would be to search for the hyperonym of all these terms in my term …
0
A legal client of mine is considering Matter Center for Office 365 for their practice.  I've seen some advice on setting it up at this site: https://engagesq.com/6-tips-to-deploying-office-365-matter-center/.  I'm seeking any word from anyone who has experienced setting up Matter Center.  Any experience using it would be a real plus.

Thanks for any ideas or experience you have with this.
0
I have a number of users here at my work who have Office 2016. A lot of users are reporting issues with saving various files in MS Word, Excel and Powerpoint.

The most common issue is with MS Word. I have researched the issue online and came across another thread on here where someone else had the exact same issue.

What's happening is this. When a user goes to save the file after completing their work. The hour glass comes up while its trying to save.. Eventually it stops (maybe 20-25 seconds) and then the SAVE AS screen pops back up again. At that point, they get an error message from Microsoft Word that says "A file error has occoured. (C:\users\usersaccountname\filename.docx) ... At the same time, in the directory where the file has been already saving to (or trying to save it to, it creates a TMP file such as ~WRD0000.tmp or ~WRD0001.tmp. This is happening a lot. I have seen the issue myself. Now, if i go to SAVE AS and save the file as a .DOC file instead of the now standard .DOCX file, it saves without any issues.

This happens even when creating a new file with just a single word in the file.

I have tried running office 2016 repair on one of the workstations having the issue.. It happens on other profiles on the same computer. This causing people to lose their work. Some of the other links from this site i have found where other users have had the same issue going back to almost a year ago. There has to be a fix for this by now i would think.. I have also …
0
Hi All,

I have a word doc that have table of contents. each of the content has link to another word doc/pdf.

The problem is I can not change folder name or move to inside other folder.

Is it possible to open link using a current folder?

Thank you.
0
I am trying to copy a paragraph from an external, unopened document to the activedocument.

I am using the below code however am receiving an error stating that no text is selected.

I'm very new to VB so have just trying to figure this out using similar coding I'm finding on the internet.

Sub ThisDocuemnt()

Dim docA As Document
Dim docB As Document

Set docA = ActiveDocument
Set docB = Documents.Open("Z:\xxxxx.doc")

docB.Bookmarks("Demo").Range.Select
docB.Bookmarks("EndDemo").Range.Select
docB.Bookmarks("EndDemo").Range.Copy
docA.Bookmarks("PasteDemo").Range.Paste

End Sub

Open in new window


Any help on how to identify the selection of text would be great. I've tried using .start and .end as identifiers of where to start the selection and where to end the selection but that isn't working either.
0
Cloud Class® Course: Ruby Fundamentals
LVL 12
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

running  WORD vba from access.  Receiving 4605 error when trying to access the document.  The Document opens up OK and I can view the document from Word.  Cannot do any comments for inserting text or moving to a bookmark.  The document and access script work on other computers.  It only fails on the one computer that normally sends out the documents.  The Access program used a front and back-end linked files.  This script suddenly stopped working 4 days ago.  It has been used for 7 years with no problems.

Several other Word file that use the same technique have the same problem on 1 computer.access.txt

Copy of the affected text is attached.access.txt
0
Citrix XenApp 7.15 CU2 PVS "Server Desktop (HSD)" session Print issue: Problem with the excel and word Printing slow.
It prints finally after 2 to 3 mins
Citrix 7.15 LTSR CU2 - PVS
Windows server 2016 VDA
MS Office 2016
0
For years I have been using the Word startup folder to load a macro that provides various functions for my staff such as  a print button on a toolbar for different printers.  This was originally created in Word v2000 in a .dot template.  It is still in a .dot template format, not dotx.

I have since tweaked this to be a custom print button on the Home ribbon and have had it working fine in Word 2010, 2013 and, until now, 2016 and 365.
Once the template is in start up I can install the print macro on the Ribbon for each user using the customise ribbon bar tools in Word.
The button then appears for any document, new or old, that they edit and the various macro functions are available and run fine.
I have the .dot Template in the user's start-up folder and adjusted the security and trust center settings to allow it to run.

In the document part of the template I have recorded my notes and revisions of the macros over the years as this does not (or at least did not) display to the user.

I have just installed two new PCS in the office both with identical software (Windows 10, MS Office 2016 Pro Plus).  

On one PC it works as it always has done, i.e. the extra button appears on the Toolbar and the document page is blank and the macros work.  

On the other, the button is there but all my development notes appear in the document (Document 1) .  I have since had the same issue on a third PC.  The macros still work it seems but the users are confused having this …
0
Where are editing time, previously modified and created dates stored in the xml file of a word document and is it possible to edit it? I have found modified and created dates, but when I edit it, it changes to current time because I made a change to the document. Also, sometimes when I edit the created date, It is inconsistent with what shows when you click on the properties in file explorer (but is consistent in other tabs of properties). I have not found editing time, and have no idea how the time is formatted.
0
Word 2010 not saving hidden text to template file

Hi,

We have this issue where we cannot save hidden text changes to a Word template file.

If we "save as", the new file will have the changes. But if we open that file, and change some hidden text and choose "save" (ctrl+s), it doesn't save.

If we choose "save as" to overwrite the file, the changes will save

if we enter some regular text, "save" (ctrl+s) will save the changes.

user has full permissions to the file.

we tried a different folder and using the administrator account and having the same issue.

Why would Word not changes when it involves hidden text but will save changes if regular text is used?

Thanks,
0
I have a similar scenario. I am searching column A for the text "Avg" and then I need to copy the cell in Column E of the same row that the text was found. Then I am pasting it into a word table ( also having issues with placing the paste INSIDE the table).
 Sub CopyAndPaste()
Dim myfile, wdApp As New Word.Application, wdDoc As Word.Document
myfile = Application.GetOpenFilename(, , "Browse for Document")
Range("e4").Copy
wdApp.Visible = True
Set wdDoc = wdApp.Documents.Open(myfile)
wdDoc.Range.Characters.Last.PasteExcelTable False, True, False
End Sub 

Open in new window

In this code, I have entered the cell that I want copied manually from looking at the sheet. I need this to be automated.
It pastes into the Word doc but underneath the table I want it to go in. Can I bookmark the table and set code to paste it in cell (2,4)?
0
Can we check by whom and how the below changes happened on Winword.exe properties, we were getting authentication problem while opening Word file on citrix server. After below issue got resolved but need the root cause

•      browsed the Location D:\Program Files (x86)\Microsoft Office\Office16
•      Clicked on properties of Winword.exe
•      Clicked on "compatibility" tab
•      Under the settings,  unchecked the box "Run this program as an Administrator
0
Recently when I copy data from Microsoft Excel into an Outlook email or Word doc I can no longer paste as either "Keep Source Formatting" "Use Destination Styles"  "Link & Keep Source Formatting" etc. The only options that work are "Picture" and "Keep Text Only". I have done a quick repair on Office 2016 and the full online repair option which had a problem so I had to uninstall and re-install Office 2016. Before that I tried starting Excel in safe mode as well. Nothing has worked so far. Any ideas?

John
0
CURRENT SCENARIO:
I am able to print both colour and B&W, but when I choose a print option
For Email, it automatically prints colour, unless I do a few more clicks to set to B&W.

For PPT, there is a drop-down option to choose colour or B&W, unfortunately if I dun click on it to choose B&W, it defaults to colour.


WORD Doc print, as a user I need to click on Printer Properties, in order to get to colour options to choose B&W.

IE, ctrl + Print as a user need to click on Printer Properties, in order to get to colour options to choose B&W.

May I suggest that for those staff who have been given rights to print both colour and B&W…
1.      can IOE set their print default to B&W AND
2.      if they need to print colour, these staff can by themselves choose the colour print via the option.

20,000 Users and can configure using GPO
0
Free Tool: Port Scanner
LVL 12
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

I've changed the printer from black & white to color to perform printing in excel, word, powerpoint & winword.

Exit the printing setting to work space but the printer setting will be remembered by the office / IE application registry to color

My boss want to prevent ppl from accidentally printing color after exit the printing setting on the work space don't remember to color instead back to black & white.

we've 20,000 users using this printer.

How to set this to GPO and push down to every local machine registry printer to default black & white
0
This macro searches for words through the Word document. Is it possible to make it search only within certain headings in Word document? Example: search only from Heading1 to Heading2.
Sub test()
Dim Word As Object, WordDoc  As Object
Dim r As Boolean, f As Boolean, fO As Long
Set Word = CreateObject("Word.Application")
Set WordDoc = Word.Documents.Open(Filename:=Application.ThisWorkbook.path & "\test.docx")

'''name'''
Set r = WordDoc.Range
Do While UnifiedSearch(r, "name*book1")
    If f Then
        If r.Start = fO Then
            Exit Do
        End If
    Else
        fO = r.Start
        f = True
    End If
    WordDoc.Range(r.Start + 4, r.End - 5).Copy
    Range("C4").Select
    ActiveSheet.Paste
    Set r = WordDoc.Range(r.End, r.End)
Loop

WordDoc.Close
Word.Quit

End Sub

Private Function UnifiedSearch(r As Range, s As String) As Boolean

     With r.Find
        .ClearFormatting
        .Text = s
        .Forward = True
        .Wrap = wdFindContinue
        .Format = False
        .MatchCase = False
        .MatchWholeWord = False
        .MatchAllWordForms = False
        .MatchSoundsLike = False
        .MatchWildcards = True
        UnifiedSearch = .Execute
    End With

End Function

Open in new window

0


how can i  do my page a4?  i look at my parameter,  programme shows that it is a4. But right page it is not so.
0
I've built a toolbar for Microsoft Word that is deployed across our organization.  It allows users to search and insert chunks of pre-formatted content from a shared Building Blocks file.  The building blocks live in a shared file on the company network, which is loaded when the user invokes any of the commands which draw content from there.  The toolbar is a global template in the Word STARTUP folder, which loads the building blocks when first needed.  

One user is running into this scenario I've never encountered before:  When she’s working in Word (independent of the toolbar), content from the Building Blocks library will pop into her document based on typing certain words.  For example, she types "wi-fi" and hits enter, then a paragraph building block about wi-fi is inserted in place of the word.   If she hits delete, it goes back to the word she originally typed.   One clue is that the word typed is part of the name of the building block that gets inserted.

Seems like something to do with Word AutoText or AutoCorrect features, which I admit I am not too familiar with.  My toolbar does not use those features.  Nobody else has reported this behavior, so I assume this is some Word setting on her machine that is causing certain words to search the building blocks and insert the first match.  One mystery is that the building blocks are not supposed to be active if she is not using the toolbar, but they must be if they are getting inserted.  

Has anybody run into …
0
we have a word file, people take prints of the data we have in that file. we would like to count the number of prints taken for the file. first print would be 1, if one more print taken it will add into it and the counter would be increased.
0
Hello,

One of my clients stucked with her VBA project work as she forgot the password of her vba document. She started her project in that .doc VBA file, a few months back only. Now, she needs to complete that project this week only and looking for a solution to remove password from Word VBA project document. Can anyone help in this??
0

Microsoft Word

27K

Solutions

21K

Contributors

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.