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

In a Word document I have two tables. Each with three rows and two columns. I need a Macro that would copy of the content of Cell 2 in Row 2 of Table 1 to Cell 2 in Row 2 of Table 2 such that the content from Table 1 is copied to whatever is already in Cell 2 of the Row 2 of Table 2.
I have tried some code (as provided in the code window) but this code replaces whatever is already in Cell 2 or Row 2 of Table 2. I would like my macro to copy from Table 1 to table 2 without replacing the previous content of the Cell 2 of Row 2 of Table 2. The image provided with this question should illustrate what I would like my Macro to do.
Thank you for your help.

Sub CopyTableCell()
'
' CopyTableCell Macro
'
' This code replaces the content of the target cell in Table 2. 


Dim paraOne As Range
Dim paraTwo As Range


Set paraOne = ActiveDocument.Tables(1).Rows(2).Cells(2).Range
Set paraTwo = ActiveDocument.Tables(2).Rows(2).Cells(2).Range

paraOne.Copy

paraTwo.Collapse wdCollapseEnd 'get to end of cell
paraTwo.Move wdCharacter, -1 'back up over cell separator
paraTwo.Paste
   
    
End Sub

Open in new window


Copy table rows
0
In Word 2016, when I select a multi level numbering scheme and apply to my document, when I type something for level 1 and then press enter so I can get a level 2 heading, when I press the tab key, the text indents, but I do not get the level 2 numbering, it remains at level 1 numbering. How can I get my multi level heading to give me the correct heading level numbers?

Thanks in advance
0
Using Word 365 - created a custom table of contents - want to save it to my template and use the same customized TOC in other documents

Can't seem to figure out how to do this

Any help would be appreciated

The attached file has two customized TOCs - one for the finished doc and one to help reviewers locate questions that need to be addressed
Sample-TOC-Process.docx
0
MS Word 2106 export to PDF  when read in Acrobat shows a thin black line at the left edge on most even pages of a book file.  No such line appears while in Word. Any clues to eliminating this line appreciated.
obam5X8.pdf
obam5X8.docx
0
i copied a diagram from word to microsoft paint

size of the diagram almost reduced to half the size. how to maintain same size while copy pasting from Microsoft word to Microsoft paint

please advise
0
in a microsoft word diagram how to crop similar to how i do in the microsoft paint to erase some text on the present diagram i have

please advise
is there is a way i write new text after erasing old text?
how to do this using visio?
0
open office arrows not coming horizontally

also those arrow lines now allowing me to type something on the top or on the middle of arrow lines
please advise
openOffice.jpg
0
I want to use a Word document as a page in an Access Report. The Word page size is 8.5 X 11 with .25 margins on all 4 sides. The Access report page is set up exactly the same. The font on both document controls is Ariel 10.

The problem? When I copy the Word document over to the Access report page, the document expands to 10.5 inches wide and nothi8ng I do seems to work to get it to the 8" report width I need. I have attached two screen-shots to illustrate the issue.

Your assistance will be appreciated. I am reasonably proficient in both programs but I have exhausted my knowledge on this issue.
MSWord.PNG
MSAccess.PNG
0
This code had been written for me some time ago, it worked great while needed but abandoned after there was no longer need for it.

I now have Excel 2016 and Word 2016 installed, and the Microsoft Office 16.0 Object library is referenced. (I think when originally installed, it was on Excel 2013).

 I tried reinstalling the code on a new pc,  Excel opens the appropriate Word doc ie: “Model 2.docx” and then displays Error #5941, the  “the requested member of the collection does not exist” when attempting to run it. Sometimes, its simply a VB message box with a Red X with no message.

I would appreciate any suggestions,

Thanks,
Biker 9
Q-28250966.xlsm
Model-2.docx
0
Does anyone know what the best pdf editor is?  I would like to be able to open a pdf file, add texts (mainly) for form filling and to be able to save what I have edited\added\removed.  And I would like the feature to export the pdf file to word too.

I am currently using Adobe Acrobat Standard DC but am trying to avoid having to pay a monthly subscription.  

I have other tools but they do not work as well.

Any recommendations?

Thank you in advance!
0
Is there a way to make this document open up in edit mode when I have the restricted editing to only forms? Right now when it is protected (with no password) it opens in a view only format. Can it be changed so that the document opens up in edit mode when restrict editing is on?
Client-Journal-Template.docm
0
We have a set of template documents/standard folder structure for when we create a new customer file on a file server (windows server 2012). Due to the location of the standard templates (they are a mix of standard word.docx, standard excel xlsx and a few of the files are the macro-enabled equivalents, e.g. xlsm/docm), at present we cannot amend the NTFS permissions to lock them down e.g. only read only access to the standard users. For the time being I cannot re-locate the files to somewhere where the staff only have read-only access to the files/folders to stop inadvertent updates - which is a pain, but I need something in place until that gets resolved. Is there any obvious/automated ways where I can quickly identify, maybe once or twice per day rather than going down the path of email alerts, if any of the files have been deleted/updated/renamed etc? If I could get some sort of script to say "yes there have been changes", "no there have not been any changes", by comparing those on the standard templates folder, to a hidden golden copy only I can access - that would be great. And/or any other solution you can think to achieve the same? I was think MD5 hashes of the entire folders/or each file may be one possible path.

Powershell seems to have a solution for almost everything, or there may be methods within office/word/excel themselves to assist.
0
Hey, I need help with the VBA coding of this word document. What I want it to do is remove the content control wherever there is text. And because the document with be restricted to only content control editing, it will essentially lock the content in. I cant seem to get my code to actually delete the content controls where there is text thought. If anyone can help I would greatly appreciate it!!

Thanks,

Max
Client-Journal-Template.docm
0
Doing some calculations in Word using VBA.

Does anyone have any idea why on earth my code is not formatting my number with as $8,000.00. Instead I get $8000? I feel like I have my variables declared correctly. I'm using Single. I get the string and then store the string variable as a single variable.

Public Sub RefreshSubtotal()

    Dim oTable As Table
    Dim rwCount As Long, colCount As Long, i As Long
    Dim cl As Cell
    Dim rw As Row
    Dim col As Column
    Dim r
    Dim sQty As Single, sUnitPrice As Single, sSubtotal As Single
    Dim str As String
    Dim strTableHeading As String
    Dim strEstimatedTotal As String
    
    Set oTable = Selection.Tables(1)
    oTable.Select
    
    rwCount = oTable.Rows.Count
    colCount = oTable.Rows(2).Cells.Count
    
    Set cl = oTable.Cell(1, 1)
    cl.Select
    strTableHeading = Replace(pureText(cl), Chr(21), "")
    
    
    For i = 2 To rwCount - 1 'start at 2 as 1 is the header row. end row above subtotal
        If strTableHeading = "0" Then strTableHeading = "Heading Missing"
        Set cl = oTable.Cell(i, 2)
        str = pureText(cl)
        sQty = str
        Set cl = oTable.Cell(i, 3)
        str = pureText(cl)
        sUnitPrice = str
        Set cl = oTable.Cell(i, 4)
        sSubtotal = Format(Round((sQty * sUnitPrice), 2), "$#,##0.00")
        cl.Range.Text = sSubtotal
    Next i
    
    ActiveDocument.Fields.Update
    Options.PrintHiddenText = False
    
    Set cl = oTable.Cell(rwCount, 

Open in new window

0
If I create a mail merge in Word and generate 10 letters, is it possible to save those letters as 10 separate PDF documents? Thanks
0
Is there a way to conditionally print a bookmarked section in an RTF?  I'm trying to create output reports from a program (not mine) that requires RTF's and uses bookmarks to display multiple rows/fields from a sub table related to the main table.  Unfortunately I can't find an easy way to NOT print labels or section dividers in the RTF if there is no data to print.  It results in a lengthy report with blank fields stuck in between other data.

THanks for any thoughts!
0
Hey,

I am trying to make a Microsoft word document that allows users not to edit content once the content controls are removed. My plan to do this was by restricting the editing to only filling in forms and then creating a code that removes the content control anywhere that there is text value. I am new to VBA and cant get the code to work properly. I can get it to remove the content controls when they are empty but when I try to remove them with content they do not disappear. I have attached the document that I cant get to work.

If anyone can help me that would be fantastic!

Thanks,

Max
Client-Journal-Template.docm
0
I am formatting a book in MS Word 2016. I need to suppress the heading in pages that start a new chapter.  But choosing DIFFERENT FIRST PAGE in the Header & Footer Tools removes the page number, which I want to keep. Is there any way to remove just the header?
obamprnt.docx
0
I often receive the below error message when attempting to open Word files.  At the time of the latest occurrence, 67% of 8GB of RAM was in use.  Rebooting the Laptop usually corrects the issue.  I can open a new blank Word file even after the error is received when trying to open an existing Word file.  

Does anyone have any thoughts as to why this is happening?  

I am working on a Lenovo Laptop that has the attached system profile.  The laptop has not been performing as I expected for a quite a while, but I don't know enough to  isolate any issues that are occurring with the software or hardware.

_____________________
Word experienced an error trying to open the file.
Try these suggestions.
* Check the file permissions for the document or drive.
* Make sure there is sufficient free memory and disk space.
* Open the file with the Text Recovery converter
(C:\...\{FILE NAME}[/b]

Thank you
System-Profile.docx
0
What is that triangle that collapses text called?
How do I get rid of it?
I don't even know how I turned it on.
error
0
Received this after reopening Excel file for another label printing attempt after minor address change to1 record in Excel file

Error! MergeField was not found in header record of data source.

What does in mean? How do I fix this? Data in 2016 Excel for Mac; Label Merge form in 2016 Word for Mac
0
2 questions.

i just rolled out new office 2016 , ia m getting below errors

1) I made a customization to the ribbon in my new outlook 2016 . It was lost when I logged out of my session and logged back in it had reverted to the defaults.

Wanted to report that the “recent documents” tab is not populated in any office applications.
business users may expect to see the docs they last worked on in Excel 2010 in the recent tab in Excel 2016.
is there anything i can fix
0
1.  Information
     a. Value
     b. Required
         Note:
2. Number
    a. The t
    b. Required


when copied paste above kind of information to a xyz word document from abc word document it past properly without having consistent spaces at the beginning and end. How to fix the format to align with rest of the document.
where can i get more tips on word skills. any good resources, videos appreciated

Also it shows at bottom footer Last saved as wrong date and time. how to fix that.
Please advise
0
Dear Experts:

I performed 'manual hyphenation' on a document.

I changed my mind and now I would like to reset the document to 'no hyphenation' . I got no idea how I can achieve this.

Help is much appreciated. Thank you very much in advance.

Regards, Andreas
1
Word 2016

Using Read mode

Used to be Read Mode would show just one page at a time.

Now, selecting Read Mode shows me scrolling pages.

It does suppress all toolbars and strips away a lot.

Need to get the Read Mode to show just one page at a time.

What am I doing wrong?
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.