Scripting-disable

M

ma

Hello all,

When I open this Word file I received, a small
"input box" opens requesting some data.

When I input the data and click OK, it opens
another one, and so on, until all the fields are
completed. The fields are in table form.

What I like to do is to disable this function, w/o
destroying its macro or script or whatever causing
these input boxes to pop up.

How do I do that, so the next time I open this
template, these input boxes do not appear?

Thanks in advance.

Mike
 
C

CoRrRan

Open Word, Open your document, go through the routine once, or just press
"Cancel" (if this option exists...)

Then goto the VB-editor by pressing ALT-F11 or using "Tools" --> "Macros"
--> "Visual Basic Editor"

Then press "CTRL-R" to show the "Project Explorer" (if it isn't already
showing), and find in the list your 'word-document'. (For a new document,
it would show as "Project (Document 1)" in bold font.) Click on the +-sign
next to this item and you'll see a folder "Microsoft Word Objects" under
the project and in this folder you'll find an object called "ThisDocument".
(If you don't see any folders, you'll see this object directly under the
'root'-item of your word document.

Double click on "ThisDocument" to show the code contained in this object.

In your main window, you'll now see VBA-code. Look up a 'procedure' called
"Private Sub Document_Open()". In this procedure, you'll probably find all
the code necessary to create the input- or messageboxes.

To stop this code from working: either delete it, or 'comment the code
out', by placing the character ['] before the line (without the square
brackets). (Is it called a singel apostrophe?)

This should result in your document no longer running ANY code when opening
the it.

HTH,
CoRrRan
 
M

ma

Thanks for helping CoRrRan

Actually I figured there was no vb or macro, and
I may have caused it by posting in Word VB NG.

Anyway, these were "fillin" "fields" causing input
boxes to appear for data input.

By removing these fields, I was able to get rid
of annoying pop-ups. But for a price.

The input boxes where asking specific questions about
the field. I would like to leave these "fillin" fields alone
and fill them once and save.

The problem is even after that when you open the same
file, the inquiries repeat.

Is there a way to open the file, fill in the blanks with
"fillin" "field" codes, and once you save it, it does
not repeat again?

Thanks again in advance.

Mike



CoRrRan said:
Open Word, Open your document, go through the routine once, or just press
"Cancel" (if this option exists...)

Then goto the VB-editor by pressing ALT-F11 or using "Tools" --> "Macros"
--> "Visual Basic Editor"

Then press "CTRL-R" to show the "Project Explorer" (if it isn't already
showing), and find in the list your 'word-document'. (For a new document,
it would show as "Project (Document 1)" in bold font.) Click on the +-sign
next to this item and you'll see a folder "Microsoft Word Objects" under
the project and in this folder you'll find an object called "ThisDocument".
(If you don't see any folders, you'll see this object directly under the
'root'-item of your word document.

Double click on "ThisDocument" to show the code contained in this object.

In your main window, you'll now see VBA-code. Look up a 'procedure' called
"Private Sub Document_Open()". In this procedure, you'll probably find all
the code necessary to create the input- or messageboxes.

To stop this code from working: either delete it, or 'comment the code
out', by placing the character ['] before the line (without the square
brackets). (Is it called a singel apostrophe?)

This should result in your document no longer running ANY code when opening
the it.

HTH,
CoRrRan

Hello all,

When I open this Word file I received, a small
"input box" opens requesting some data.

When I input the data and click OK, it opens
another one, and so on, until all the fields are
completed. The fields are in table form.

What I like to do is to disable this function, w/o
destroying its macro or script or whatever causing
these input boxes to pop up.

How do I do that, so the next time I open this
template, these input boxes do not appear?

Thanks in advance.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top