Default behavior of hyperlink checkbox in Insert cross reference check box
Hi Richard,
Quote:
> I could
> only get a couple of the macros to work by themselves (next and prev
> paragraph). Anything else I should have done or didn't do correctly.
Anything that starts with SUB, or requires parameters, must be called
from another procedure. Many of the things you find in such articles
are FUNCTIONS that you call from another procedure; or they have
parameters (information you have to give it so that the procedure
functions correctly). Let's take as an example the code to bookmark
chapters. This is a function, and has two parameters. So you need to
create a procedure that calls this:
Sub BookmarkReportChapters()
Dim NrChapters as Long
NrChapters = BookmarkChapters("Report Heading 1", "RptChap")
MsgBox "This report has " & CStr(NrChapters) & " chapters"
End Sub
In this way, you aren't limited to any style or bookmark name, as you
would be if they were hard-coded; this makes the procedure much more
flexible.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister
http://go.compuserve.com/MSOfficeForum
This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)