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

Word 2016/Win10:

In the attached (scrubbed) snipped from my novel, I changed the first line to black via the color palette in Word. (First color on the left in in the screenshot below.)
palette
 (I had temporarily changed it to another color.)  However, the second line (untouched) looks a bit different, color-wise. Can anyone tell me what color that is? Is it Word's default color?

Thanks.
Steve
what-color-is-this.docx
0
Introduction to Web Design
LVL 13
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

I need a bit of code for a Word macro that will capitalize the first letter of a word if it's not already capitalized.  But if it is already capitalized, then I don't want it changed.

My current macro uses Shift-F3, which is Word's toggle between cap/not cap.  It works great when the target word is lower case, but if the word is already capped, it lower cases it, which is not what I want.

So, here's the situation in which I would use it.  Say there's a run-on sentence like this:

Mary likes apples Tom likes oranges.

I want to put my cursor after the s in apples and run the macro.  The macro should type a period, move over one space, add a second space, select the T in Tom, and capitalize it if it's not capitalized and leave it alone if it is capitalized.  Then I want the cursor to end up just to the left of the T in Tom.  

And here's my current code:

Sub insertaperiod()
'
' insertaperiod Macro
'
'
    Selection.MoveLeft Unit:=wdCharacter, Count:=1
    Selection.MoveRight Unit:=wdWord, Count:=1
    Selection.MoveRight Unit:=wdCharacter, Count:=1, Extend:=wdExtend
    Selection.Range.Case = wdNextCase
    Selection.MoveLeft Unit:=wdCharacter, Count:=2
    Selection.TypeText Text:="."
    Selection.MoveRight Unit:=wdCharacter, Count:=1
    Selection.TypeText Text:=" "
End Sub

Thank you to this very helpful group!
0
Would anyone care to  help me with a Word macro that jumps to the end of the next word?

Ctrl-Right arrow will do this out of the box, BUT it goes to the BEGINNING of the next word.  I want to stop at the END of the next word.

So I wrote a fairly simple macro that uses Ctrl-Right to go to the beginning of the next word, and then a left arrow to go back one space.  And that works great unless there is punctuation involved or two spaces at the end of a sentence (which I use).  In that case, my macro leaves me in the middle of a word or in between the two spaces.

I know there is programming code for find the end of a word and find the beginning of a word or find the next character that's not a space.  But a problem that I'm having is that Ctrl-Right stops before a punctuation mark.  I need my macro to stop after the punctuation mark.  Ctrl-Right won't do that.  

Can anyone help?
0
In Word, is it possible to disable the Alt key accessing the menus?  I have a lot of alt-macros, and often, when I press Alt (the first key of the macro), the menu opens up before I can type the second key to invoke the macro.  Then I have to stop what I'm doing, press Escape multiple times, and begin again.

Can this be disabled?
0
I need to slow down a Word macro.  It's a very simple macro that skips forward word by word, stopping at the end of a word.  I'll include the code below.

I do transcription for a living.  I need to be able to cursor through the text at approximately the same pace as the speaker.  My normal cursor key moves far slower than my speaker.  My Next Word macro moves far faster than my speaker.  

I am not a programmer, but I do understand Word macros.  So please give me specific instructions.  :)

Thank you in advance.

Sub nextword()

'
' nextword Macro
'
'
    Selection.MoveRight Unit:=wdCharacter, Count:=1
    Selection.MoveRight Unit:=wdWord, Count:=1
    Selection.MoveLeft Unit:=wdCharacter, Count:=1
End Sub

Open in new window

0
I would like to move the cursor to the end of all the text in a TextBox ( named  
txtNote

Open in new window

) clicking a button on the form.
Both the TextBox and the CommandButton are on a user Form.
I am using the following code but when I click the button I find the cursor at the start of all the text and not at the end of the text.

Private Sub cmdMoveCursor_Click()
txtNote.SetFocus
txtNote.SelStart = txtNote.SelLength
End Sub

Open in new window


Thank you for your help
0
I would like to delete the last character typed in a text box using VBA. So if my text box contains some text like  -  this is an apple  - and the cursor is to the right of the last letter (e) of the apple, when I run my VBA code it should delete the letter e and the sentence would then become - this is an appl -
Thank you for your help.
0
Friend has an HP 1310 PSC. At one time he was having printer issues so we installed it again and in his printer and devices there is a 1310 and a 1310 (copy 1). He kept saying he could only print from Word and not from an email, etc. After a closer look some of the print jobs are being sent to the default and some are not. Why not?
I assume this can be resolved by deleting copy 1 but he is reluctant to do that.
0
This question is in a way related to a previous question I asked on this forum which is here.
https://www.experts-exchange.com/questions/29148228/VBA-code-to-detect-which-key-the-user-has-pressed-in-a-text-box.html#a42878897

What I would like to be able to do is run some code, such as deleting all the Text in TextBox1 one when I press space key after typing some text in the TextBox1 and then displaying a message box saying "Hello" when the user presses the space key. The following does achieve this but after code has run it leaves the cursor in the TextBox1 some spaces
further away from the start point (depending on how many characters I had typed before pressing the space key). So if I press space key after typing abc in the TextBox and then press space key all text from TextBox1 gets cleared but the cursor is left four space away from the start point of the TextBox1. I would
like the cursor to be at the start of the TextBox1 when I press space key. So basically I am looking for a way of
moving the cursor to the starting point in the TextBox1 after my code has run.
Thank you for your help.

Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)

Select Case KeyAscii
 Case 32 'space
 TextBox1.Text = ""
MsgBox "Hello"
 ' the above line does clear the TextBox1 of all its text but it leaves the cursor in the TextBox1 some spaces
' further away from the start point. So if I press space key after typing abc in TextBox1 and then press space all 

Open in new window

0
I would like code against the KeyPress event of a TextBox in VBA application. I would like to detect which key has been pressed by the user when the user presses a key. I am wondering if there is way of doing that.
I would like in particular to know if the user has pressed the space key or a number key.
Thank you for your help.

Private Sub TextBoxI_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)

'need to know which key the user has pressed and take a an action based on the key pressed for example display a message box when the user presses space key.

End Sub

Open in new window

0
C++ 11 Fundamentals
LVL 13
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Having a Word template in which a Excel file is incorporated.
I need to be able to open the excel file and read the content of the cells in column A for not empty
and copy it into an other excel file, in which I will have a VLookup to retrieve the description of code in Column A.

I can't figure it out.  I don't know how to open the excel file into Word and be able to read in it.

Can you help please.
Thanks
Nancy
0
I would like to get all entries stored in my Word Autocorrect file (a file with the extension .acl") into an Excel sheet or in some other format such as .csv file so I can read data from it.
I am wondering if there is way for achieving this. I know you can use VBA to add auto correct entries to this file but I would like to do the opposite that is read data from the auto correct file. If it is not possible to do that using VBA, is there any other application or means through which I can open this .acl file and read data from it.
Thank you for your help.
0
Hi,

I have a problem on Word and macros.

I use this macro :
Sub refresh()

    Selection.WholeStory
    Selection.Fields.Update
    ActiveWindow.View.ShowFieldCodes = True
    ActiveWindow.View.ShowFieldCodes = False
    
End Sub

Open in new window


I want to run this macro with this .vbs:

Dim Word

Dim WordDoc

Set oArgs = WScript.Arguments

Set Word = CreateObject("Word.Application")

Word.Visible = False
Set WordDoc = Word.Documents.Open(oArgs(0))

Word.Run "refresh"

WordDoc.SaveAs2(oArgs(2))

WordDoc.Close(wdDoNotSaveChanges)

Word.Quit

WScript.Quit

Open in new window


here the command I launch to execute this vbs :

cscript C:\refresh.vbs C:\Users\admin\Desktop\a.docx refresh C:\Users\admin\Desktop\b.docx

And nothing happen... here

C:\refresh.vbs(14, 1) Microsoft Word: command failed

Do you have a solution?

Thanks
0
How do you remove a template from Word 2016?    I want to edit this document as a normal Word doc.
spcaLA-SOP---Production-Backup.docx
0
Say, please see the attached screen shot of a Microsoft Word document. The gray border surrounding the text is mine concern. How do I get rid of this? I cannot find what is causing this gray border around the text. Whichever Edit mode I chose, the gray border remains. It is something in the formatting, I would assume. Thanks, Shaun
Thing.jpg
0
I'm running Windows 10 on my Lenovo laptop, and while working in MS Word - suddenly - the up and down arrows start toggling my bold button.  How do I get rid of this?

Thanks,

Phil
0
New ticket for a closed issue (https://www.experts-exchange.com/questions/29141120/Word-macro-to-extract-text-by-style-and-capture-numbering-if-style-contains-list-numbering.html?anchor=a42871864¬ificationFollowed=230273679#a42871864):
I have a macro to extract all text that has a user-defined style to a new document but also to include the numbering if the style is a numbering style. The latest version works very well for all but one style: Intense Reference. When I enter this style, the macro goes into an endless loop.  This was a problem on several styles in previous versions. This was fixed by an EE expert but for some reason, only the 'Intense Reference' style causes the endless loop. If this can be repaired, the macro will be good to go. I successfully tested the other styles in the table on p. 1 of the attached file.
Extract-Text-by-Style-Test-May-28-2.docm
0
Team,

i would like your professional advise .

to prepare a professional technical proposal to client or SLA document , what type of fonts do you recommend


1. Font Type on Header/ subheader / contents
2. Paragraph spacing
3. Any margin sizing etc

Regards,
Sid
0
The image shows a word that we need for a church business card as well as a logo on the weekly bulletins. It's the word Celebration for English and Celebracion for the Hispanics.

Someone had the idea to put the T on top of the C and also change the T to a cross. So far the efforts have been in black fonts.

I suggested that most crosses from the days of Jesus were made of wood and thus the cross could be a brown color. They have played around with moving the cross (which is actually the T in celebration) to the left or right to somehow not distort the C.

In my opinion there will be enough other text on the card in Spanish and if the Spanish version of celebration is celebracion then any one viewing the card will know what celebration means. But I do not make the decisions.

So looking for more brain power on how to combine celebration and celebracion? Using colors, fonts, etc.

I'm designing the card and if we can get that word to the liking of the higher ups in the church then I will have to make the word be a photo so I can upload the photo (which will be nothing but the word) and drag that to the proper place on the card. The templates and editing do not offer a T on top of a C. Thanks.

g
0
Why Diversity in Tech Matters
LVL 13
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

We have a user with some issues opening Word documents. Word is showing a message every time it is opened that it is not the default app for documents, but it is set to default on all relevant file types. Icons are not showing as Word icons, instead showing as the default "white sheet" for documents, and in order to open a document from another program, the file has to be saved and opened independently. I have verified that his Office365 account is signed in correctly, run Office repair (Online), fully uninstalled Office then downloaded and installed a fresh version, and have had no change. This is also only happening on one profile, the Administrator profile seems to be working fine. Any thoughts?
0
The attached word has embedded an Excel object. If I add a column and  row in the Excel, the format and size of the content are changed. Any idea where I can keep the original size and format of the WORD ?

Thx
test.docx
0
I need to set the datasource for a set of mail merge documents to deploy to users on and off the LAN and may have updates each month.

To save remoting and resetting up datasources etc... (and also guessing the location) I want to set the datasource location on load or via button.. probably both.

Will use a specifically named file in the downloads directory of the current user.

Please supply a routine that will change the datasource. Please put XYZ as the path and I will generate etc...

The experience is:

User opens the document... it does it then and then merges... AND .. can be done via button to do an update.

OK.. seems as though this is a starting point:

    With ActiveDocument.MailMerge

        .OpenDataSource Name:="c:\mydocs\contracts\MyCont_R.CSV"
        .Execute
    End With

Open in new window

And . Execute if you want to mail merge as part of the routine

Any additional suggestions?

R
0
I have a user trying to create a form using Developer in Word, but when they try to set up the form to be “Filled in” it’s not allowing them to protect the document.  They receive the following message:

“Your machine isn’t set up for Information Right Management (IRM). To set up IRM, sign in to Office, open an existing IRM protected message or document or contact your help desk.”

What is IRM and why are they running into this issue?  How do I resolve it easily?
0
I want to convert any number that I highlight to a roman numeral in my Microsoft Word document.

I already know how to use Ctrl+F9 to insert a field, and type a formula in the brackets:  {=4\*ROMAN} and do an Alt+F9 to toggle between the results and the formula.

However,

Question 1:  Instead of me manually typing out the formula every time, is there a way I can hightlight an existing number in the document, say 2019, and replace with with  {=2019\*ROMAN} ?

Question 2:  I noticed if I copy {=4\*ROMAN} and paste it to another area of my document, then change the 4 to a 10, the end result still is IV, instead of X.  How come Word does not use 10 instead of 4?
0
I have used a neat DLL by Alex Robbio called "MS Word Compare" succesfully on a 32bit WIn 7 machine, but I am unable to get it to work on a 64bit Win 10 machine. The DLL enables a user to compare two different MS Word documents - you highlight them in Windows Explorer, right click, and select the "Compare" line on the WE context menu and the DLL launches MS Word showing the differences between the two documents. See here

The problem is that on the 64bit machine that "Compare" line does not appear in the context menu.

I have registered the DLL, and when running Nir Soft's "ShellExView" it shows up as an enabled 32 bit shell extension.
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.