Microsoft Word

28K

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

User cannot save files to network drive from within Word, Outlook, Excel. Additionally she cannot insert links from the network drive into Outlook. She can browse and open files without issue. She can save the file locally and the copy it to the network. It does not make any difference if she is saving an existing file or saving as a new file. She cannot save the file to the network drive from with office applications. She can save/create new/delete files using windows explorer.

The issue started 2 days ago. About the same time she experienced and issue with Windows Explorer crashing, when the navigator pane was open the the windows was minimised or moved between screens. This corresponded with the explorer windows flashing repeatedly. Although this was demonstrated to me prior to starting work I did not take any action to fix and have not been able to replicate since I started troubleshooting other issues.

No other users are experiencing the same issues.
She is running windows 10 pro, office 365 business. Symantec Endpoint Protection Cloud, Offline files
I have run:
dism
sfc
I have deleted temporary offline files.

Any assistance would be appareciated.

Thanks
0
How to go quickly  from an end note NUMBER in a text to the actual end note in the document. (MS Word 2013) Windows 10.
I know how to go from the endnote back to the number, but not the other way..
0
I'm using Word to automate the creation of an Excel workbook, copying over selected sheets from a Master workbook depending on user selections.  At one point my code adds data validation to a certain cell on the sheet.  The data validation works perfectly on the master sheet from which I am copying these worksheets, but when they copy over to the new workbook, it brings a link to the master workbook name in the validation formula so I use VBA to recreate the validation so it will be independent of the master book. The validation formula itself refers to some fairly complex dynamic dependent drop downs.

But on the line where I add the new data validation, I always get Error 1004, Application defined or object defined error.    There are dozens of posts all over the internet about this issue, with dozens of suggested causes and fixes.  I'm not using named ranges, no protection in the workbook, I'm using literal strings instead of variables, one post suggested I needed to activate the cell first which is why I have that.  But I still get error 1004.  Can anybody spot what is wrong with the code below?  
newsheet.Cells(8, 5).Activate
With ActiveCell.Validation
    .Delete
    .Add xlValidateList, Formula1:="=OFFSET(TestFrames!$B$1,MATCH($E$6,TestFrames!$B:$B,0)-1,1,COUNTIF(TestFrames!$B:$B,$E$6),1)"
End With
newsheet.Cells(10, 5) = "=INDEX(TestFrames!D2:D173,MATCH(1,INDEX((TestFrames!A2:A173=$E$4)*(TestFrames!B2:B173=$E$6)*(TestFrames!C2:C173=$E$8),0,1),0))"

Open in new window


0
Hello All.
I need to change the Height of of the Rows of a MS Word Table.
Below is the code that creates and changes the Width of the columns.

strAppendixAName = "Appendix_A.docx"
strAppendixAPath = CurrentProject.Path
strAppendixAFullPath = strAppendixAPath & "\" & "Appendix_A.docx"

Dim objWord
Dim objDoc
Dim objSelection

Set objWord = CreateObject("Word.Application")
Set objDoc = objWord.Documents.Add
Set objSelection = objWord.Selection

objWord.Visible = True
objDoc.SaveAs (strAppendixAFullPath)

 objDoc.Select
 objDoc.Activate
 objDoc.ActiveWindow.Activate

'If The Selected Document Is Not Open, A Message Box Will Open Telling The User To Open The Selected File.
If objDoc Is Nothing Then 'The Selected Document Is Not Open.
    MsgBox "Please Open The Selected Document" & vbCrLf & vbCrLf & strAppendixAPath, vbCritical, "Document Is Not Open"
    PID = Shell("explorer.exe " & strAppendixAPath, vbNormalFocus) 'If The Document Is Not Open, This Will Open The File Explorer To The Correct Folder.
    Exit Sub
Else '
End If

objSelection.TypeText ("Appendix A" & vbCrLf & "Total items:  " & inttblAppendixAWorking & vbCrLf & vbCrLf)

inttblAppendixAWorking = 10
intRows = inttblAppendixAWorking
intCols = 2

 'Create Table.  This moves the Table below any data that is in the document.
Set tblAppA = objDoc.Tables.Add(Range:=objDoc.Bookmarks("\EndOfDoc").Range, _
                                                    NumRows:=intRows, _
       …
0
Hello Experts. Could I get some advice on how to parse a table that is in Microsoft Word XML document using XPath. I created a Word doc, changed the extension to .zip and am using the document.xml file. I need to loop through the table and output the rows and columns. I know the table has a nested table in it but for now let's just ignore that. I'm not sure if XPath has the appropriate coding constructs to do what I need.  1) Identify the table. 2) find out how many rows it contains. 3) Find out how many columns it contians. 4) Iterate through each row and print the values for each cell. I'm using Coldfusion 10 to read in the file but it really could be in any language.

This is the start of the first table: //w:tbl[1]  
The start of the first row:  /w:document/w:body[1]/w:tbl[1]/w:tblGrid[1]
But how do you find the columns and iterate through the table?
TheDocumentXML.txt
0
I'm embarrassed to say I'm stuck on what should be a simple problem. I have a MS Word document that was collaborated on with notes and markups. I can shut them all off but don't want anything showing up in final document. But when I try to copy and paste it brings over all the hidden comments. I've tried pasting all the choices to no avail. Could someone fix this?!?
0
My cousin ask for help with this
Can someone help with this?
Can you do it?

Thanks


CAN YOU GET TWO PICS TO FIT ON A PAGE
AND PUT A BORDER(TWO LINES) AROUND EACH PIC AND NAME
AND CENTER THE NAME UNDER THE PIC
pic-pres-and-pm.docx
0
I have a document I need to merge data to.
I have a CSV with Name / School / Image
CSV
I then have my word document with the merge data in
Word Doc
When I run merge, all the text appears fine. I then press F9 to refresh the doc, and I get the image frame with a red cross:
Outcome
I've tried so much, but still can't get it to work.

Any help would be much appreciated!!!!!!!

Steve
0
The code below adds Text and creates a Table.  The code add the text "Appendix A" & "Total items: 10"
The problem is that it will add the text.  When the table is created, it overwrites the text.
How can I add the table under/after the text?
I thought "ActiveDocument.Content.InsertParagraphAfter" would fix it.

strAppendixAName = "Appendix_A.docx"
strAppendixAPath = CurrentProject.Path
strAppendixAFullPath = strAppendixAPath & "\" & "Appendix_A.docx"

inttblAppendixAWorking =10

Dim objWord
Dim objDoc
Dim objSelection

Set objWord = CreateObject("Word.Application")
Set objDoc = objWord.Documents.Add
Set objSelection = objWord.Selection

objWord.Visible = True
objDoc.SaveAs (strAppendixAFullPath)

 objDoc.Select
 objDoc.Activate
 objDoc.ActiveWindow.Activate

objSelection.TypeText ("Appendix A" & vbCrLf & "Total items:  " & inttblAppendixAWorking & vbCrLf & vbCrLf)

ActiveDocument.Content.InsertParagraphAfter

intRows = inttblAppendixAWorking
intCols = 2

 'Create Table
 Set tblAppA = objDoc.Tables.Add(Range:=objDoc.Range, _
                                                    NumRows:=intRows, _
                                                    NumColumns:=intCols)
tblAppA.Range.Font.Size = 12
tblAppA.Borders.Enable = True

tblAppA.Columns.PreferredWidthType = wdPreferredWidthPoints
tblAppA.Columns(1).PreferredWidth = CentimetersToPoints(3)
tblAppA.Columns(2).PreferredWidth = CentimetersToPoints(14#)
0
Hello All.  Is there a way to remove the Underline from TrackRevisions in MS Word.  This code I am using is below.
I have the data in a MS Access Table. The results come from comparing the data in 2 other tables.
 I am adding the results to a table in MS Word. When is is added to the MS Word Table using "TrackRevisions = True", it has an underscore.  
The underscore is fine if it is an "ADD" or "New Term".  If it is a "DELETE" or Term that has been removed, I need to remove the underscore.
I need to keep TrackRevisions on for all ADD and DELETE Terms.  It is turned off for Terms that have a MATCH'

I have attached a photo to show the difference  between VB and VBA.

    If strtxtStatusAAW = "Delete" Then
        objDoc.TrackRevisions = True
        strTrackRevisions = True
        tblAppA.Rows(intrsttblAppendixAWorkingRowCounter).Select
        tblAppA.Cell(intrsttblAppendixAWorkingRowCounter, 1).Range.Text = strttxtTermAAW
        tblAppA.Cell(intrsttblAppendixAWorkingRowCounter, 2).Range.Text = strttxtDefinitionAAW
        tblAppA.Rows(intrsttblAppendixAWorkingRowCounter).Range.Font.Strikethrough = True
        blAppA.Rows(intrsttblAppendixAWorkingRowCounter).Range.Font.Underline = wdUnderlineNone
    End If

Thanks
WonHop
TrackChangesUnderline.JPG
0
Office 2010 QAT and Ribbon cannot be readily edited - "more commands" greyed out.
Tried access via File, options menu but Options greyed out also.

Affecting too may users to do an office repair must be an update of some description.
Machines don't have KB 3114409 installed which was my initial thought.
Had been working for months and no real changes to system.

Any thoughts on the matter?

Thanks
0
After years of programming in most of the Microsoft Office suite applications, this morning I was hit by an anomaly.

The VBE will not show the code, any existing code. I can write code but once saved and reopened it all vanishes. This happens with all Office files (Word, Excel, Access etc.). The modules appear the the VBE tree, but when opening one, the VBE remains blank as if a module was never opened. The code however does exist as it runs as expected and when a module is exported the bas file contains all the code. Yet for some reason the code is not shown in the VBE.

On other computers everything works, so the problem is not with the files but rather with the computer\ Office installation. Rebooted Windows, re-installed Office, yet problem persists.

Searching online it seems that a handful of users experienced the same issue but I couldn't find a solution.

Ideas are welcome and your help is greatly appreciated.


EDIT: If I search for a function only that function will be shown.
0
Greeting Experts! I have a coding issue that I could use some help with. I'm using ColdFusion 10 to try and parse a Microsoft Word document, extract the contents, keep it's formatting, and put it into a SQL Server database in multiple parts. For example if the word doc were HTML, each row would go into the database separately. This is turning out to be a tough nut to crack. I'm having trouble with the XPath part. I can find individual cells with the XML structure that ColdFusion creates but I can't seem to list all child nodes for a given element. This is all an attempt to keep the MS Word formatting, including special characters. I know parsing HTML would be easier but the goal is to do it with the original MS Word document. Given the key words from the left hand column, the Word Doc will filter out the Details Text in the right column. For example if the key word search was "Bob" then only the rows that have "Bob" in the first column will be displayed. I'd like to stay away from third party plug-ins. Any help is appreciated.  Thank you.
EE_CFM_XML_DB.txt
TheDocument.docx
0
Hello All.
I am trying to add a Strikethrough in a Word Table Row.  I have tried the 2 version of the code below.
I need it for TrackRevisions.   All of the code works fine except for the Strikethrough code.  
Could someone please look and see what I am doing wrong?
I am using the data from a Table in MS Access create and populate the table.
I recorded a Macro in Word.  The code worked great in Word.  When I put the code in Access.  The Strikethrough did not work.
Actually, none of the "With Selection.Font" works.

    If strtxtStatusAAW = "Delete" Then
        objDoc.TrackRevisions = True
        strTrackRevisions = True
        tblAppA.Rows(intrsttblAppendixAWorkingRowCounter).Select
        tblAppA.Cell(intrsttblAppendixAWorkingRowCounter, 1).Range.Text = strttxtTermAAW
        tblAppA.Cell(intrsttblAppendixAWorkingRowCounter, 2).Range.Text = strttxtDefinitionAAW
        tblAppA.Rows(intrsttblAppendixAWorkingRowCounter).Shading.BackgroundPatternColor = -738132173
       
        tblAppA.Rows(intrsttblAppendixAWorkingRowCounter).Selection.Font.Strikethrough = True

Thanks
WonHop

       
        With Selection.Font
            .Name = "+Body"
            .Size = 14
            .Underline = wdUnderlineSingle
            .Strikethrough = True
        End With
  End If
0
Hi,
I restored a word 2007 document from the recycle bin on windows 2010 home edition.
When I try to open it now i get the message;
Word experienced an error trying to open this file.
Try these suggestions.
*Check the file permissions..........
any help appreciated.
Thanks
0
Dear,
Can you please help transfer attached PDF into one .doc document?
0
Contacting the server for information" Message Box- while opening up powerpoint. word, outlook excel, etc are fine
0
Help, please.  I have been beating my head against this problem for 2 weeks and cannot figure out what I am doing wrong.

Using VBA, I'm automating Excel from within Word.  At one point, my macro does this:
1. open up a Master Excel workbook (an .xlsm) containing pre-configured tables and graphs
2. create a new workbook (xlbook)
3. copy one or more worksheets from the Master to xlbook (based on user selections)
4. close Master book
5. remove unneeded worksheets from xlbook
6. Save xlbook as an .xlsm

I'm getting hung up on step #5.  For some reason, i cannot delete the default sheets.  I've tried a half dozen methods to iterate through the worksheets and delete these, but nothing seems to be working.   the simplest approach would be:
xlapp.DisplayAlerts = False
For Each mysheet In xlbook.Worksheets
    If mysheet.Name = "Sheet1" Or mysheet.Name = "Sheet2" Or mysheet.Name = "Sheet3" Then
        mysheet.Delete
        MsgBox xlbook.Worksheets.Count
    End If
Next mysheet

Open in new window

Even when DisplayAlerts is set to True, I get no error message on mysheet.Delete, so it appears to be deleting each sheet, but the MsgBox keeps giving me the same sheet count each time,meaning the delete is not working.  And when I open the new workbook in Excel, no surprise it still contains Sheet1, Sheet2, and Sheet3.

This is frustrating because it has worked perfectly in the past.  The only change I am making is the master book is now an .xlsm, but I don't save the new book as .xlsm until step #6, so I don't see how that can be the issue.

Can anybody spot what I am doing wrong?  Thanks!
0
I would like to remove all formatting features in my word document so I can edit it. Unfortunately, the borders and boxes around paragraphs cannot be undo.
Is there a way to undo all formatting features attached to the document particularly the paragraphs and borders because I cannot go outside the area if I want to add some more text.
0
I need a word Macro that will select 3 words to the right of the cursor position in the active document.
0
When I print a document in word 2016, text that is in a table disappears and doesn't print as soon as I click the print icon
0
I'm trying to parse a microsoft word xml file and write the text to a sql server table. If the xml structure uses plain words there is no problem but the xml document I'm using contains tags with "w:p" and "w:r" strings. It seems that the colon ":" is causing an issue. The error I'm getting is :  XQuery [nodes()]: The name "w" does not denote a namespace. I don't want to remove all the colons because it may be a character in the documents text and I don't want to manipulate what the users have written and I don't want to alter the current xml tag names  (w:r, w:t) . Is there a way to parse a Microsoft Word document in XML form without altering it's current structure that uses colons?  Here is the query I'm running in SQL Server 2016:


DECLARE @xml xml
SET @xml = N'<w:r>
               <po><ponumber>100</ponumber><podate>2008-09-10</podate></po>
               <po><ponumber>101</ponumber><podate>2008-09-11</podate></po>
             </w:r>'

SELECT
   doc.col.value('ponumber[1]', 'nvarchar(10)') ponumber
  ,doc.col.value('podate[1]', 'datetime') podate
FROM @xml.nodes('/w:r/po') doc(col)

-- if you change w:r to wr it will work.
-- any help is appreciated.
sampleXMLWordDoc.txt
0
Hi

I am looking at using the File Storage System in Azure. I need users on Windows and Apple Mac machines to be able to easily access
files (including PDFs, Excel, Word etc) and also upload them
Can this be done for instance using Windows explorer in a similar way to DropBox?


Thanks
0
I need some help please about onenote notebooks .Question 1- There are onedrive folder in my documents that has onenote notebooks section that contains three one notebooks with various names that are the same on onedrive app in the taskbar the white cloud but it is different than the onenote book shortcut in taskbar when I open to add something there. How can i make the names all the same in all 3 locations {onedrive white cloud app in taskbar and onedrive folder in my document and onenote notebook in taskbar.

Question 2-I noticed that there are 2 onenote notebooks in my apps. One of them has 2016 but not the other. Is that normal and what is the difference?

Question 3-When I click on onenote notebook shortcut in taskbar I do not see a new notebook opened up rather I see all my note notebooks open up. Once again is this normal ? The reason I ask when I click on Word document shortcut in taskbar a new word document opens up.

Lastly, when deleting a notebook I got this warning dialog box.My question is how do I know if something is online only{on my PC?} or on my onedrive {what would be the location name as in (ONLINE)?








0
I am looking for a method, utility or website to list how many times specific words are used in a Word document.

For example, I tend to overuse the word "Perform" when there are other suitable synonyms that can be used instead of "Perform."

So I am looking for a way of analyzing a Word document (or by copying and pasting the text) to give me a complete list of which unique words were used and how many times each word was used so I can discover trends in my writing and words that are being overused and can be replaced by synonyms to make my writing less monotonous and to give more variety and make my writing my descriptive and prolific.

I will gladly pay for such software or service that will allow this to be done.

What are the best ways of doing this?
0

Microsoft Word

28K

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.