R
RKF
Hi Folks,
I have a template in WORD 2K7 for which I would like to implement a public
variable. I will use that variable to cause certain actions depending on the
variable's value.
Id est, I want to relocate to a specific bookmark within the document but
only the first time a subroutine is called. For example, in the template I
make use of a routine to throw a calendar on the form from which the user
will select a date then push that date to the document. Once the date gets
posted, I use the .Range method to reposition the pointer to another
bookmark.
I call that same calendar a second time at the end of the template/document
so I need some way of skipping the line that repositions the pointer to that
bookmark...
Every attempt I have made to use a public variable has failed with the error
that the variable is not declared.... I am unable to discern the cause for
the error as I have declared the variable. I have also tried, unsuccessfuly
to create the variable and pass it to another sub as a parameter.
I would be happy to send the tempate if anyone thinks they can determine or
help me determine what I am doing wrong.
Most appreciated.
Ferg
I have a template in WORD 2K7 for which I would like to implement a public
variable. I will use that variable to cause certain actions depending on the
variable's value.
Id est, I want to relocate to a specific bookmark within the document but
only the first time a subroutine is called. For example, in the template I
make use of a routine to throw a calendar on the form from which the user
will select a date then push that date to the document. Once the date gets
posted, I use the .Range method to reposition the pointer to another
bookmark.
I call that same calendar a second time at the end of the template/document
so I need some way of skipping the line that repositions the pointer to that
bookmark...
Every attempt I have made to use a public variable has failed with the error
that the variable is not declared.... I am unable to discern the cause for
the error as I have declared the variable. I have also tried, unsuccessfuly
to create the variable and pass it to another sub as a parameter.
I would be happy to send the tempate if anyone thinks they can determine or
help me determine what I am doing wrong.
Most appreciated.
Ferg