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!

Odd error message appears when going to a second page

Status
Not open for further replies.

Pete271

Instructor
Feb 16, 2005
61
GB
Hello

I am using a Microsoft Word template that somebody else has set up.

Whenever a user types on to a second page the follow message appears

"Reference Error! Use the Home tab to apply Reference text to the text that you want to appear here"

The text becomes active if you edit the Header/Footer but how do I amend the template to stop it appearing altogether?

Thanks in advance for your help.

Peter
 
Sounds like it's in some VBA Code.

If you're sure it's okay to edit, then I would do this in Word:
[OL]
[LI]Right-Click on the Word Template file, choose "Open" - not "New", which I think is default.[/LI]
[LI]Go to Tools -> Macro -> Visual Basic Editor[/LI]
[LI]Once in the editor, hit <Ctrl> and <F> on your keyboard.[/LI]
[LI]Select the option on the left, "Current Project"[/LI]
[LI]Enter the error message (at least part of it) in the "Find What" box.[/LI]
[LI]Hit "Find Next"[/LI]
[LI]When you find the line with that message, it should be something like: MsgBox "Reference Error...",vbCritical,etc...[/LI]
[LI]Place an Appostrophe at the first of that line, and if it looks like the statement takes up more than one line, be sure to comment them all out with the apostrophe.[/LI]
[LI]Select "Debug" menu, and "Compile Project", then click the "Save" button, and close the editor... Then see if still getting the same error.[/LI]
[/OL]

The reason I said to use the "comment" apostrophe is just in case you tried to delete the wrong line. [wink] You can undo comments quite easily.

--

"If to err is human, then I must be some kind of human!" -Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top