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