Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

Microsoft Word

27K

Solutions

20K

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

Hey guys, instead of getting my users to fill up forms and emailing them to me. I like to digitize my word document form by creating a chatbot on Azure Bot framework. However I'm stuck now using Azure Bot framework.

SMTP code I have done but the packaging the responses into a document, that I'm not sure.

How do I get it to package all the responses from the user into a document and send the document to my email?
0
Free Tool: IP Lookup
LVL 10
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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 have a file that I downloaded from the Internet onto a computer using Word 2016.  The file, though, does not display all of the text that it should.  Left is incorrect, Right is screenshot of correct
The text on the left is what is downloaded to my computer and it is missing the text that is on the left side of the chart.  On the right side is a screenshot of what it should actually look like.  Does anyone have any ideas what options I need to turn on on Word to get the text to actually show up?  I have verified on other computers here that the file does work and does display properly, so it is not actually a problem with the document.
0
Experts,

I have a requirement to get our Access application to send out email alerts based on, in this case, PO expiration dates in the current quarter, except what we typically send is a lengthy email with instructions and forms attached.

I can find many examples of code similar to that below, but if the body of my email is a Word Doc with a table and formatting, and it works well as a mail merge with field codes based on an access query, is there a (reasonable) way to run a Word Mail Merge from Access or should I just leave this process in Word?

With objOutlookMsg
             .To = ""
             .Subject = "Test"
             .Body = "Hi "
             .Attachments.Add  "Path to Attachment1"
             .Attachments.Add "Path to Attaachment2"
             etc etc
             .Save
             .Display

 End With 

Open in new window

0
Hi,

I hope that someone is able to help. I have now started having to do a lot of travel. I have taken ownership for a number of sites and i need to translate documents. I have tried google translate and its ok. I can get word and pdf files.

The problem is that i need to be able to work offline.

Best Regards,

Ross
0
Dear Experts, Can you please help to get script/method to copy specific sections from MS word and the script should create a new note pad and only the specific sections from the word to be copied and pasted without any manual intervention by running the script.
i tried it in the attached word file and got an error. I just need to get the 1. Executive Summary 2.Business Impact and
3. Action List sections only to be copied from the word file and to be pasted in the notepad. kindly advice
Automatic-copy-paste.docx
0
I've got text that has an unusual kind of formatting "shading": <span
style=3D'background:#80FFFF'>text</span> (if you take a peek in file saved as HTML)
17-09-21-02-54-032700.jpgNot a highlight, but it looks similar (highlight covers it, making you think it overrides it, but when you change it back to no highlight, the "3D BAckground" is still there).

How to batch convert all instances of it to a font color (say for example red)?
0
Hi ,

I want suggestions to refactor the below code. The code is small.

1. map is a key value Dictionary Object. This populated from backend.
2. IEnumerable<SdtBlock> ccBlocks  [is Ienumerable collection]     . Content Control from Word file
3. IEnumerable<SdtRun> ccRuns       [is Ienumerable collection]    . Content Control from Word file

Each map item.Key can be Either ccBlocks or ccRun.

Based on map item.Value I need to perform actions.
Any recommendation is appreciated, you can point out if anything looks incorrect or adding property or sub function to make code leaner.

Thanks in advance

using (WordprocessingDocument myDoc = WordprocessingDocument.Open(destFilename, true))
            {
                MainDocumentPart mainPart = myDoc.MainDocumentPart;
                DocumentFormat.OpenXml.Wordprocessing.Document bodyDoc = mainPart.Document;
                IEnumerable<SdtBlock> ccBlocks = bodyDoc.Descendants<SdtBlock>();
                IEnumerable<SdtRun> ccRuns = bodyDoc.Descendants<SdtRun>();

                foreach (var item in cBO.map)
                {
                    
                    SdtBlock myBlock = ccBlocks.FirstOrDefault(ccb => ccb.Descendants<SdtAlias>().FirstOrDefault().Val == item.Key);
                    SdtRun myRun = ccRuns.FirstOrDefault(ccb => ccb.Descendants<SdtAlias>().FirstOrDefault().Val == item.Key);
                  
                    Text textContent=new Text();
                    if (myBlock != null)
 

Open in new window

0
Using MS Word VBA, I have loaded items in a ListBox and I display it on a form. How can I find out what a user has selected and then close the ListBox? Does it require first adding an OK button for the user to click after making a choice? Is ListBox modal? Should I make a Do . . . Loop around the Form.show command? Right now, my code displays the ListBox and goes to the next line of code. I would rather it wait until a user has made a choice in the ListBox
     These sound like trivial questions. A couple days of searching the Internet suggest that anyone who uses a ListBox must already know the answers. I don’t.
     Thanks for your patience with a neophyte.
     JRA in Priddis
0
Very new to VBA - trying to use a macro to create a "submit" button that will convert the active document to a PDF and attach it to an email in IBM Notes. Most of the resources I've found provide code to perform this operation using Microsoft Outlook as the email client, but I haven't been able to find out much otherwise.

I've had success adding the document to an email in IBM Notes using this code:

Private Sub CommandButton1_Click()
    Options.SendMailAttach = True
    ActiveDocument.SendMail
End Sub

However, it would be ideal if I could have the document attached as PDF. I was also able to find coding to save the active document as a PDF:

Sub CommandButton1_Click()

    ActiveDocument.ExportAsFixedFormat OutputFileName:= _
         "C:\Users\example\DocName", _
         ExportFormat:=wdExportFormatPDF, OpenAfterExport:=False, OptimizeFor:= _
         wdExportOptimizeForPrint, Range:=wdExportAllDocument, From:=1, To:=1, _
         Item:=wdExportDocumentWithMarkup, IncludeDocProps:=False, KeepIRM:=True, _
         CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _
         BitmapMissingFonts:=True, UseISO19005_1:=False

End Sub

I'm able to successfully create the PDF document using that code, saving it to the location listed "C:\Users\example\DocName" - I don't really need to keep the document saved as a PDF if I can get it to attach to an email in IBM Notes.

Any help is greatly appreciated!
Thanks!!
0
Everytime a convocation is made the use receives a transfer notification.

Please check the Microsoft Word file with screen captures and detailed information.
screen-captures.docx
0
How to Use the Help Bell
LVL 10
How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

W2008 R2 SP1 server with Word 2010 when trying to add fields to a word template I get an error message on the temp docx file in the users temp folder and 'run application error 29' message. Does anyone have any idea what is causing this and how to fix this?
0
I am weary of dealing with web host companies that have creative pricing plans that drive me up a wall. I  would like to know the name of a company that charges ONE rate from the word GO all the way through at least 5 more years of renewals. I am a VERY low user of data. I simply want a reliable host with 24/7 technical help available for photos and emails. Can anyone recommend one or two? I am with one now that is demanding more than DOUBLE what I paid for the first few years! It isn't going to happen.
0
It is possible to select range of node using start node and end node.
Below is sample code.

            <w:body>
               <w:p w:rsidR="009F72A0" w:rsidRDefault="00C14A8B" w:rsidP="00D80B27">
                  <w:pPr>
                     <w:pStyle w:val="Heading1" />
                  </w:pPr>
                  <w:bookmarkStart w:id="0" w:name="Page_1" />
                  <w:bookmarkEnd w:id="0" />
                  <w:proofErr w:type="spellStart" />
                  <w:r>
                     <w:t>Microsof</w:t>
                  </w:r>
                  <w:proofErr w:type="spellEnd" />
               </w:p>
               <w:p w:rsidR="00472CBA" w:rsidRDefault="00472CBA" w:rsidP="00472CBA">
                  <w:pPr>
                     <w:spacing w:after="0" />
                  </w:pPr>
               </w:p>
               <w:tbl>
                  <w:tblPr>
                     <w:tblStyle w:val="GridTable5Dark-Accent6" />
                     <w:tblW w:w="0" w:type="auto" />
                     <w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="0" w:noVBand="1" />
                  </w:tblPr>
                  <w:tblGrid>
                     <w:gridCol w:w="3116" />
                     <w:gridCol w:w="3117" />
                     <w:gridCol w:w="3117" />
                  </w:tblGrid>
                  <w:tr w:rsidR="00E317D5" w:rsidRPr="00531C77" w:rsidTr="00531C77">
        …
0
Dear experts

I have the source document with vocabulary, meaning and its usage, each identified separately.
I need the help of the experts with a macro which can do the following onto a excel sheet:
Step1: Strip the word starting with bold and ending before the colon=>Put this in cell A1=> Example- abstruse (adjective):
Step2: Strip the words after the colon in step1 above but ending in the same line in cell B1=> difficult to understand; incomprehensible
Step3:Move to next line and copy entire stuff after step2 but before the next word beings in cell C1 example=> Physics textbooks can seem so abstruse to the uninitiated that readers feel as though they are looking at hieroglyphics.

Repeat the above steps by moving to the next word accolade (noun): and copying them in row 2 onwards.
The word document has 95 pages in it.
Each page starts with the logo (gif and the name below given in url). This detail need not be extracted.
I sincerely believe there is no copy right violation.
Kindly help.
Thank you


Extract from the page

abstruse (adjective): difficult to understand; incomprehensible
Physics textbooks can seem so abstruse to the uninitiated that readers feel as though they are looking at hieroglyphics.
accolade (noun): an award or praise granted as a special honor
Jean Paul-Sartre was not a fan of accolades, and as such, he refused to accept the Nobel Prize for
Literature in 1964.
0
Hi-

I want to Delete Word Bookmarked Text and paragraph Data using OpenXML in .Net.

I have below code using OpenXML and "Content controls". But my plan is to do the same using "Bookmarks".
I haven't found OpenXML solution to edit and delete text and paragraphs using bookmarks.

using (WordprocessingDocument myDoc = WordprocessingDocument.Open(destFilename, true))
            {
                MainDocumentPart mainPart = myDoc.MainDocumentPart;
                DocumentFormat.OpenXml.Wordprocessing.Document bodyDoc = mainPart.Document;
                IEnumerable<SdtBlock> ccBlocks = bodyDoc.Descendants<SdtBlock>();
                IEnumerable<SdtRun> ccRuns = bodyDoc.Descendants<SdtRun>();

                foreach (var item in cBO.map)
                {
                    
                    SdtBlock myBlock = ccBlocks.FirstOrDefault(ccb => ccb.Descendants<SdtAlias>().FirstOrDefault().Val == item.Key);
                    SdtRun myRun = ccRuns.FirstOrDefault(ccb => ccb.Descendants<SdtAlias>().FirstOrDefault().Val == item.Key);
                  
                    Text textContent=new Text();
                    if (myBlock != null)
                    {
                        textContent = myBlock.Descendants<Text>().FirstOrDefault();
                    }
                    if(myRun != null)
                    {
                        textContent = myRun.Descendants<Text>().FirstOrDefault();
                    }
                
                    if

Open in new window

0
I have a memo template in word that is frequently used with nothing but the date and dollar amounts changing.  I'd like for the document to prompt (or put in just one time somehow) a dollar amount and have it automatically populate various tables in the document with that dollar amount (and in some instances it's the inverse of that input amount).  

Can someone help me do this?

Thanks.
0
I have a XML file already as below.
<?xml version="1.0" encoding="UTF-8"?>
-<Form>
+<Checkbox state="False">
+<Checkbox state="True">
+<Checkbox state="False">
+<Checkbox state="False">
-<Checkbox state="True">
<Caption>Dynamic Rod</Caption>
<Tag>C:\Users\DAIP\Desktop\leila\X-Pact Level Control\sources\DynamicRod.docx</Tag>
</Checkbox>
+<Checkbox state="False">
</Form>
How can I copy and paste the files which the sate is True into the word file?
I have already created a Pop up window with Checkboxs where store the documents path. And want to add one more buttom to insert the data from XML file into the word file. The buttom suppose to read the state and then copy the file and paste into the word file.
Appreciate your help!
0
How to Split the table when cells are Vertically merged. I am using word Add in.

can anyone help me out?
0
Can someone give me a macro or even the command for saving the pictures (First one and the last 4 ones) in the attached file to a directory?

The file name should be the caption below the pictures
Sample-for-picture-extraction.docx
0
Hire Technology Freelancers with Gigs
LVL 10
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

I have an Microsoft Access Application that generates a contract using Microsoft Access reports.  I would like to setup contract templates in Microsoft Word and then use Microsoft Access VBA to export data to the contract and the Word document needs to be locked.  

I know how to code in VBA to export data to Excel, but I have never done it to Microsoft Word.  Also, I have never setup Word Document templates with fields.  

Can someone help point me in the right direction?  

Thanks!
0
I do OCRecognition with FineReader. It only highlights the uncertain ain characters with what MS Word recognizes as character:shading (in light cyan color), or at least the character:shading can override/clean this color (and also does the gray shadow custom option that is not in the basic ribbon, while heighlight does not). I want it to paste in Excel, or other places and still keep the uncertaint characters in color. What is a way to batch convert every shading [specific color?] into let's say font color:red or magenta? I believe all formatting in Word is a messy html that could possibly be converted.
0
Hi all,
Extract all word files properties script.
I have few 1000's of files and want to extract all details possible to an excel, so i can compare and take some actions.
Like Owner name/system name etc etc
Can anyone help me please
0
Dear Experts, Can you please help to get script/method to copy specific sections from MS word and the script should create a new note pad and only the specific sections from the word to be copied and pasted without any manual intervention by running the script
0
I had this question after viewing Auto Close a Microsoft Word document with a VB MACRO.

It was very informative and was a macro for exactly what I wanted.

Unfortunately, when using that code and creating that macro then when I double click on the file then it would only open word and not the file.  
Once word was open then if I were to double ckick on the file, or opened the file from within word, then it would open and work fine.

I do not know if there is any way around this or what is specifically causing this in the macro itself that it does not open the document unless word is already running.

If you have any advice I would be most grateful!

Thank you,


Here is the original Macro instructions:

-Open the document you want to do this to
-From Word, press Alt-F11 to open the VBA/Macros editor (VBE) window
-Press control-r in the VBE to open/focus the Project window
-Look for the Project for the file you want this to happen on (should look like "Project (YourDocumentName)"
-Expand that project if not already expanded
-Expand the "Microsoft Word Objects" folder if not already expanded
-Double click on the "ThisDocument" object in that folder.
-In the code pane that opens up from there, paste in the following:

Private Sub Document_Open()
 StartCheckingIdle
End Sub

-Now, right-click on the ThisDocument object in the …
0
I have Word 2016, Windows 10, and want a user form to show when I start Word.
But only if it is a new document.
It works if I choose New from an open document. Then the Document_New event fires.
But when I open Word I think I get a new document, but the Document_New event does not fire. Same thing with Document_Open event.
If put frmInfo.Show in an AutoExec procedure it open always.

Microsoft recommends following (in Normal.dotm):

1) Create a new class module containing following code:
   Public WithEvents App As Word.Application
2) Choose an event for App from the event list in the class module:
   Private Sub App_DocumentChange()

   End Sub
       (I choose Private Sub App_NewDocument(ByVal Doc As Document))
3) Connect the declared object in the class module (App in this example) with the Application object. It can be done from any module:
   Dim X As New EventClassModule
   Sub Register_Event_Handler()
       Set X.App = Word.Application
   End Sub
4) Run the Register_Event_Handler procedure. After the procedure is run, the App object in the class module points to the Microsoft Word Application object, and the event procedures in the class module will run when the events occur.

I have done all this, but I cannot get it to work.
Here is my code:

Class module
===========
Option Explicit
'Declare the Object Variable
Public WithEvents App As Word.Application

'Write the Event Procedures
Private Sub App_DocumentOpen(ByVal Doc As 

Open in new window

0

Microsoft Word

27K

Solutions

20K

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.