Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Bruce18W
  • Content: Threads
  • Order by date
  1. Bruce18W

    Advanced delete macro for Word

    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...
  2. Bruce18W

    Recorded macro won't run in Word 2010

    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...
  3. Bruce18W

    Histogram for words in a MS Word

    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
  4. Bruce18W

    List of figures using ActiveDocument.GetCrossReferenceItems?

    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...
  5. Bruce18W

    Which Word table am I in?

    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...
  6. Bruce18W

    Selecting previous word in MS Word 2007

    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...

Part and Inventory Search

Back
Top