Hi,
I'm looking for a macro that will delete (or cut/copy) text from the cursor location to the nearest match of a pattern that the macro requests. For example, if the cursor is just after the "r" in "for" in the previous sentence, and I entered "cu" as the pattern, the macro should change...
Hi,
I recorded this macro in Word 2010 (intending to later modify it). Note, when I recorded the macro, Word inserted a figure reference, which is what I wanted it to do.
Sub Macro3()
Selection.InsertCrossReference ReferenceType:="Figure", ReferenceKind:= _
wdOnlyLabelAndNumber...
Hi,
Does anyone have code for counting the number of occurrences of each word in an MS Word document?
Example: the code run on a very short document containing only "the boy ran to the home"
would produce
the 2
boy 1
ran 1
etc.
thanks, Bruce
Hi,
I'm not crazy about Word 2007's cross referencing capabilities. I modified the code: it prints the headings, lets me select a number, and creates a cross reference. I'd like to do something similar for tables and figures. But it seems the GetCrossReferenceItems method does not allow a figure...
I'd like to develop a Word VBA function to highlight selected parts of a table (e.g., a row, column, etc.). I'd like to place the cursor anywhere in a table and then run the function (macro). One of the first steps in coding is to define a table object for the table that I am in. I see lots of...
Hi,
I'm trying to select the previous word in Word, so that I can later replace it with a close match. This is the code I'm using. right at the start *** Help needed here *** I get tripped up with trying to select the word but not the space after the word. any/all help appreciated!
Public Sub...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.