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 strongm 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: *

  1. IanPatUE

    Retrieving Table Auto Numbering as Text String

    Hi, I have a table where the first column, other than the heading, contains an automatically generated number. This was created via Format | Bullets and Numbering. When I: TMReqNo = TMTable.Cell(LastRow, 1).Range.Text MsgBox (TMReqNo) The message displayed does not contain the automatic...
  2. IanPatUE

    Word Search for Style via VBA

    Hi, Many thanks! This snippet of code was very handy. Ian P.
  3. IanPatUE

    Word Search for Style via VBA

    Hi, I am trying to determine which heading the selected text is under when the macro is executed. Selection.Find.ClearFormatting Selection.Find.Style = ActiveDocument.Styles("Heading 1") With Selection.Find .Text = "^p" .Replacement.Text = "&quot...
  4. IanPatUE

    Displaying Word Constant Values

    Hi, Just to follow up a little on my previous post: TheTitle = ActiveDocument.BuiltInDocumentProperties(1) MsgBox (TheTitle) displays the document title property for the document. However, I would still like to know how to get the text information out of a WdFieldType constant. Many thanks...
  5. IanPatUE

    Displaying Word Constant Values

    Hi, I'm having trouble displaying information from a variety of Word constants: For instance: PageNumber = Selection.Information(wdActiveEndPageNumber) MsgBox (PageNumber) works OK but: DocTitle = ActiveDocument.Fields(wdFieldTitle).Result MsgBox (DocTitle) returns a message saying that...

Part and Inventory Search

Back
Top