Pages

Search

Microsoft Word - VBA/Macro for Find Highlighted Words in Current Selection - Please help

Microsoft Word - VBA/Macro for Find Highlighted Words in Current Selection - Please help


VBA/Macro for Find Highlighted Words in Current Selection - Please help

Posted: 16 Apr 2015 01:45 PM PDT

Hi,

I am trying to create a macro in Word 2007 which enables me to, select a paragraph and using ctrl+f select all the highlighted words in the paragraph.

Usually I would highlight a paragraph,  then press ctrl+f, click on the more options button, select 'highlight' via the format button, and then the click 'find in current selection' button.

I have spend ages trying to create a macro for this, but have had a no luck – although I am a complete novice.

The best I've managed to do is the following VBA code; however this doesn't highlight  al highlighted parts in my current selection, it just uses goes through the whole document, and when I run the macro it just goes onto the next highlighted word.

Sub CurrentSelectionSelectHighlighted()

'

' CurrentSelectionSelectHighlighted Macro

'

'

    Selection.Find.ClearFormatting

    Selection.Find.Highlight = True

    With Selection.Find

        .Text = ""

        .Replacement.Text = ""

        .Forward = True

        .Wrap = wdFindAsk

        .Format = True

        .MatchCase = False

        .MatchWholeWord = False

        .MatchDiacritics = False

        .MatchControl = False

        .MatchWildcards = False

        .MatchSoundsLike = False

        .MatchAllWordForms = False

    End With

    Selection.Find.Execute

End Sub

Could someone please help me. I would really appreciate it. I am a university student and I've got exams around the corner and this macro (if possible) would save me a lot of time.

Thank you

selecting for copy paste gone haywire

Posted: 16 Apr 2015 12:37 PM PDT

For some reason when I double click to select a word or click and select a larger number of words it's not working any more as it used to. Sometimes a double click selects a word, sometimes a sentence, sometimes the whole paragraph and there seems to be no rhyme or reason to how to get back to unselection. Nothing useful on Google, I have speeded my click speed up to no avail. It's driving me nuts! Can anyone help?

Tool to Mass Migrate Documents onto a new Company Template

Posted: 16 Apr 2015 12:22 PM PDT

I have around 1500 documents that I would like to extract the text bodies and place on a entirely new document that has new headers and footers. Is there a way to mass migrate this? Is there a software tool to do that?

Macro to convert 1.0, 1.1, 1.1.1, 1.1.2 in text in Microsoft Word

Posted: 16 Apr 2015 11:24 AM PDT

I just saw a question that Doug responded in 2012 and try to implement it. but it does not work for me, I had hopes for it.

Link Archivo Link Documento

Here's the question I'm refering to:

I'm doing a mass conversion of text documents in RTF format available from one company to another company design. During this process I want to keep intigrate the manually written and enumerations files that are in the document are not likely to affect that is the same format, which is in the example and / or attached file is maintained.

currently being used this macro but does not fully comply with the need that is required.

As Paragraph Dim lp
For Each lp In ActiveDocument.ListParagraphs
        lp.Range.ListFormat.ConvertNumbersToText
Next lp

Enumerations can come as follows:

Example 1:
1.0
1.1
1.1.1
1.1.2
1.1.2.1
Example 2.
1.0
     1.1
          1.1.1
          1.1.2
               1.1.2.1

Example 3.
1 TAB Requirement
TAB 1.1 Requirement
TAB 1.2 Requirement
1.2.1 TAB Subrequirement
TAB (a) TAB Subsubrequirement
TAB (b) TAB Subsubrequirement
TAB (i) TAB Subrequirement
TAB (ii) TAB Subrequirement
TAB (A) TAB Subrequirement
TAB (B) TAB Subrequirement
TAB (1) TAB Subrequirement
TAB (2) TAB Subrequirement

Pressing "enter" causes chaos and confusion

Posted: 16 Apr 2015 10:55 AM PDT

I have a completed document I am trying to edit. On page one I have a large paragraph that I would like to split into two, smaller paragraphs. So I put the cursor where I'd like to begin a new paragraph, I press "enter," and instead of starting a new paragraph, all the subsequent text moves to the second page, creating a large empty space on the bottom half of page 1.

Ah!

How can I fix this?

I experienced speed/performance issues with a Word document in Office 365 - is there a solution?

Posted: 16 Apr 2015 09:49 AM PDT

I have started working with longer, more complex Word documents using Office 365 and am starting to experience significant speed/performance issues. I have these documents stored in OneDrive then open them in Word online. When I go to edit the document, I am asked whether I want to open the document there in Word Online or use the full functionality of Word. I choose the latter option since I prefer having all the features of Word available when I edit. But for whatever reason, when I do that the screen keeps freezing up on me.

This is a 50+ page Word document and I have recently installed some images. But should working with a Word document like that be a problem? I ended up downloading the Word document to the hard drive on my Surface Pro 2 where the speed and functionality were restored immediately, so I know it has something to do with editing the document online.

One solution is to download the document, work offline and then upload it again to OneDrive. But what is the point of Office 365 if it can't handle the editing function in Word without slowing down?

Any thoughts or feedback would be appreciated.

Joe

Glitch in Word

Posted: 16 Apr 2015 09:44 AM PDT

Sometimes when adding to, or editing, a Word document, I get a message that "Word cannot complete the save due to a file permission error".  What causes that, and what can I do about it?

Thank you.

how to find previous version of saved file in word 2013

Posted: 16 Apr 2015 09:39 AM PDT

I saved a file by mistake and I want to get the previous saved version, but when I went to Manage Versions it said that there is no previous version of the file.  I know I saved the file a few times before this time but there is no record of this in word 2013.  Please help.

Regards.

Labels

Posted: 16 Apr 2015 08:16 AM PDT

I would like to print labels in Word 2010.  Can someone please explain:  1.  How do I set it up for a particular sized label?

                                                                                                                   2.   Then how do I actually print the labels?

Please don't laugh!  I'm 75 years old and never did this before. 

Print : MS Word to MS OneNote-one page to one page

Posted: 16 Apr 2015 08:14 AM PDT

Hi all,

i have 100 pages word file.

i want to print it by OneNote.

but.

all hundred pages print in onenote under one page.

I want there should be 100 pages print separate in OneNote too,

how can achieve this.

Ravi Vare

Removing gap in Word 2010 document

Posted: 16 Apr 2015 08:08 AM PDT

I am having problems with a large gap between paragraphs in a Word document, that I cannot remove.

I have posted similar questions before, but the remedies I have tried have not worked - I have tried shrinking paragraph markers down to 1pt and the as far as i can tell the issue does not lie in having "Before" and "After" values set too high under the Page Layout>Paragraph tab.

Yet the problem persists, and there has to be a reason.

Can anyone shed any light on this, please?

Start Inking Office 2013(professional version)

Posted: 16 Apr 2015 06:19 AM PDT

I have installed MS Office 2013. Start Inking is disable and it is not working. I can not use pen set. Can you please tell me why it is not working and what I have to do?

(Ctrl-A followed by F9) is not working for me in Word 2013 when protecting the document

Posted: 16 Apr 2015 04:48 AM PDT

Hi there, I can use many documents in that are already created and protected using the Ctrl-A followed by F9 updates. Everything populates correctly, When I am creating a new document in Word 2013, the Ctrl+A works when the document is not protected, but as soon as I activate the protection it does not do anything. When I right click in each field though, I can update the field with no problems.

In the document where this function works when protected, it does not allow me to Ctrl+A when it is unprotected. I receive a Microsoft Visual Basic for Applications alert: "The Unprotected method or property is not available because the document is already unprotected"

Any suggestions?

Problem to have a consistent headline structure

Posted: 16 Apr 2015 03:50 AM PDT

Hi,

I have a problem with the headline structure.

It works OK up to three levels but then it loses the consistent structure, pls. see below:

 

And with level four it turs up with

 

 

I want a consistent structure and it should have been 6.2.1.10 etc. 

And also the table of content reflect this inconsistency

 

 

How to fix?

 

BR Roffe

Normal.dotm......... yet another newbie with a normal problem!

Posted: 16 Apr 2015 02:47 AM PDT

I am going nuts on this and I have researched but can's resolve.

So.... one day last week, for no apparent reason, any new word document I started had no margins and a tiny text box in which the cursor stayed. I have always used the ms pre-supplied normal template for 99% of all docs throughout my relationship from Word 98 and now to 2013 acquired through Office 365.

I can see the Normal.dotm template under C:\Users\xyz\AppData\Roaming\Microsoft\Templates which when clicked generates a document with the following

settings:

Font: (Default) +Body, Left, Line spacing:  Multiple 1.08 li, Space After:  6 pt, Widow/Orphan control, Position: Horizontal: Left, Relative to: Column, Vertical:  0 cm, Relative to: Paragraph, No wrapping, Style: Quick Style

but the cursor is in a text box as shown

However, if I open Word and start a new document, I get one based on a normal style as follows:

Font: (Default) +Body (Calibri), Left
    Line spacing:  Multiple 1.08 li, Space
    After:  6 pt, Widow/Orphan control, Position:
    Horizontal: Left
    Relative to: Column
    Vertical:  0 cm
    Relative to: Paragraph, No wrapping, Style: Show in the Styles gallery

but (and I have no idea whether this is significant) all the descriptions above are paginated as shown above AND the cursor is now in a text box right at the very top of the page.

If I try to change, my changes are rejected as the normal.dotm is read-only. Why can't I have my old life please?

Simple instructions please as I am not a techie.

Many thanks

Nick

Office 2013 showing distorted text boxes when opened in protected view

Posted: 16 Apr 2015 01:39 AM PDT

Hi,

I've created a document in Microsoft Office Professional Plus 2013. On the first page of the document I have an image and there are few editable text boxes on that image. 

The problem is that the document is working fine but when I email it to somebody via Outlook and they open it in the same version of Word, the document opens in the Protected view and all the text boxes positions change, they become distorted and text written in those text boxes isn't shown properly. As soon, as "Enable editing" is clicked, the document looks fine. But in protected view all the text boxes are distorted.

Please let me know if there is any solution for this.

Thanks.

Word 2013 set the hourglass to display during the running of code

Posted: 16 Apr 2015 12:13 AM PDT

I did find I could 

Dim MyHourglass as wdCursorType

and then I found the variables for wdCursorType: wdCursorWait (hourglass) and wdCursorNormal to resume at the end of the code,

but I just can't figure out how and where to place the commands in my code. 

I can turn off the screenupdating and hide the userform but I would like to display an hourglass as well.

Can anyone assist please?

Dim MyHourglass As WdCursorType
    MyHourglass = wdCursorWait
    Application.ScreenUpdating = False
    FormDialog.Hide

Many thanks in advance.

Copy Grammar Check Comments, Word 2013

Posted: 15 Apr 2015 09:02 PM PDT

Is there a way to copy the Grammar Check comments?  I been unsuccessful.  I want to use the past the comments as I correct student papers online.

Save and Send

Posted: 15 Apr 2015 06:23 PM PDT

Ok, yet another Noobish question... Is there anyway that I can change the default save and send settings so that I do not have to click "current page" every time?

While not very economical, the office I have just started working for keeps their contracts in multi-page word documents. For instance... There is an "A Contracts" file and it contains every contract for companies starting with (you guessed it!) the letter A. That is nearly 500 pages and each page is a different contract!

I do not yet feel secure enough in my job to correct this method of storing their contracts, so I must not only print "current page" all the time... but when I want to send a pdf of a contract, I have to remember to convert "current page" as well...

If I could convince them to purchase a Remote print manager so I could send everything I print to a pdf converter and the printer at the same time... I would.

So, I am hoping that there might be a way to set "Current Page" as the default print method and/or the default Save and Send method.

Thanks in advance for putting up with this fiasco.

How do I Customize Office 365 Word

Posted: 15 Apr 2015 03:55 PM PDT

I just bought a Lenovo 3, which came with Office 365, but I can't get Word to function as easily as my work's 2013 version of Word. For example, when I want to add a row into a table, there use to be a + sign insert row tool…can't find it in Office 365. Does anyone know where I can go to customize Word to include this feature?  JPD