How to disable a WordBasic macro in VB?

C

Chris H

Hello All,

My company still have wordbasic macros associated to a few documents but if I disassociate them from the document, the document STILL uses the macro. Is it possible for wordbasic macros(or any macro) to be embedded into the document( not in the normal.dot template and not in the template portion of the document)?

I would like to be able to disable the macro from running if possible or somehow disassociate the macro do some work and re-associate the macro. Is this possible?

I thought all macros had to be initiated with code if you run in Visual basic. The normal.dot does not have this macro because I removed it from it's spot and let word re-create it. I even disassociated my computer from the network where the macro lives and the document found a way to call the macro.

Thanks in advance for any help,
Regards,
Chris H
 
C

Chris H

Nope, we don't use custom addins and that folder is empty.

Normally when I hit a macro dialog, I am able to step through the code if it is VBA and unprotected but I couldn't.... I have never seen a macro like this before... quite stealthy.

I can't seem to find out much about these macros on the net... I don't think Word XP has a problem with these macros just Word 2000 and below.

Here is an example of the old macro..

Thanks,
Chris

Private Sub VISA()

WordBasic.BeginDialog 331, 165, "Authorization for Individual Grant"

WordBasic.Text 68, 8, 167, 13, "Select U.S. visa type:"

WordBasic.OptionGroup "Opt"

WordBasic.OptionButton 119, 25, 40, 16, "&B"

WordBasic.OptionButton 119, 46, 39, 16, "&F"

WordBasic.OptionButton 119, 67, 37, 16, "&J"

WordBasic.OptionButton 119, 88, 60, 16, "&N/A"

WordBasic.OKButton 66, 117, 203, 31

WordBasic.EndDialog

Dim VIS As Object: Set VIS = WordBasic.CurValues.UserDialog

WordBasic.Dialog.UserDialog VIS

Select Case VIS.Opt

Case 0

WordBasic.WW2_Insert "B"

Case 1

WordBasic.WW2_Insert "F"

WordBasic.WW7_EditGoTo Destination:="IssuedByBK"

WordBasic.WW2_Insert "ISSUED BY:"

WordBasic.NextCell

WordBasic.WW2_Insert WordBasic.[InputBox$]("Institution or organization sponsoring U.S. visa?", "Authorization For Individual Grant")

Case 2

WordBasic.WW2_Insert "J"

WordBasic.WW7_EditGoTo Destination:="IssuedByBK"

WordBasic.WW2_Insert "ISSUED BY:"

WordBasic.NextCell

WordBasic.WW2_Insert WordBasic.[InputBox$]("Institution or organization sponsoring U.S. visa?", "Authorization For Individual Grant")

Case 3

WordBasic.WW2_Insert "N/A"

Case Else

End Select

End Sub

Private Sub AUTOPAY()

WordBasic.WW2_Insert WordBasic.[InputBox$]("Date of automatic payment to be scheduled in New York?", "Authorization For Individual Grant")

WordBasic.NextCell

WordBasic.WW2_Insert "$"

WordBasic.WW2_Insert WordBasic.[InputBox$]("Amount of automatic payment to be scheduled in New York?", "Authorization For Individual Grant")

ANOTHER

End Sub

Private Sub ANOTHER()

Dim M

M = WordBasic.MsgBox("Do you need another row of payment date and amount?", "Authorization for Individual Grant", 4)

If M = -1 Then

WordBasic.NextCell

AUTOPAY

End If

End Sub
 
S

Suzanne S. Barnhill

Macros can be saved in documents, but only in Word 97 and above, so it's
hard to see how a WordBasic macro could be saved with the document. Do you
see the macro in Tools | Macro | Macros? If so, change the "Macros in"
setting till you find out where it is.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Nope, we don't use custom addins and that folder is empty.

Normally when I hit a macro dialog, I am able to step through the code if it
is VBA and unprotected but I couldn't.... I have never seen a macro like
this before... quite stealthy.

I can't seem to find out much about these macros on the net... I don't think
Word XP has a problem with these macros just Word 2000 and below.

Here is an example of the old macro..

Thanks,
Chris

Private Sub VISA()

WordBasic.BeginDialog 331, 165, "Authorization for Individual Grant"

WordBasic.Text 68, 8, 167, 13, "Select U.S. visa type:"

WordBasic.OptionGroup "Opt"

WordBasic.OptionButton 119, 25, 40, 16, "&B"

WordBasic.OptionButton 119, 46, 39, 16, "&F"

WordBasic.OptionButton 119, 67, 37, 16, "&J"

WordBasic.OptionButton 119, 88, 60, 16, "&N/A"

WordBasic.OKButton 66, 117, 203, 31

WordBasic.EndDialog

Dim VIS As Object: Set VIS = WordBasic.CurValues.UserDialog

WordBasic.Dialog.UserDialog VIS

Select Case VIS.Opt

Case 0

WordBasic.WW2_Insert "B"

Case 1

WordBasic.WW2_Insert "F"

WordBasic.WW7_EditGoTo Destination:="IssuedByBK"

WordBasic.WW2_Insert "ISSUED BY:"

WordBasic.NextCell

WordBasic.WW2_Insert WordBasic.[InputBox$]("Institution or organization
sponsoring U.S. visa?", "Authorization For Individual Grant")

Case 2

WordBasic.WW2_Insert "J"

WordBasic.WW7_EditGoTo Destination:="IssuedByBK"

WordBasic.WW2_Insert "ISSUED BY:"

WordBasic.NextCell

WordBasic.WW2_Insert WordBasic.[InputBox$]("Institution or organization
sponsoring U.S. visa?", "Authorization For Individual Grant")

Case 3

WordBasic.WW2_Insert "N/A"

Case Else

End Select

End Sub

Private Sub AUTOPAY()

WordBasic.WW2_Insert WordBasic.[InputBox$]("Date of automatic payment to be
scheduled in New York?", "Authorization For Individual Grant")

WordBasic.NextCell

WordBasic.WW2_Insert "$"

WordBasic.WW2_Insert WordBasic.[InputBox$]("Amount of automatic payment to
be scheduled in New York?", "Authorization For Individual Grant")

ANOTHER

End Sub

Private Sub ANOTHER()

Dim M

M = WordBasic.MsgBox("Do you need another row of payment date and amount?",
"Authorization for Individual Grant", 4)

If M = -1 Then

WordBasic.NextCell

AUTOPAY

End If

End Sub
 
B

Beth Melton

Hi Chris,

If you are unable to view the macro then how do you know the phrases
you cited are found in the macro?

I suspect the document contains fill-in fields and they are prompting
when the document opens.

If the macro you are referring to is a series of input boxes then a
macro is not in use. In the past one had to create an AutoNew or
AutoOpen macro that updated the fill-in fields which caused them to
display. As of Word 97 (I think) this is no longer required and they
will prompt automatically.

Press Alt + F9 to toggle the field of field codes and remove any
FILLIN fields you find.

Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.

~~~~~~~~~~~~~
Beth Melton

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/


This is my whole problem.. No templates are associated to this
document anymore, my normal.dot template is blank and this wordbasic
macro is still associated to the doc.

Like I mentioned previously, I disconnected my computer from the
network and somehow the macro tried to execute.

"so it's hard to see how a WordBasic macro could be saved with the
document"

I don't mean saved with the document like a simple association, I mean
it is somehow hidden... I believe I can remove the macro if I save the
document as a text file since copying and pasting to a new document
didn't seem to help.

For example, If I open the .doc document using a text editor, I can
still find remains of the macro... ex
W o r k s h e e t
W o r k s h e e t 1  V i s a T y p e
I s s u e d B y B K
W o r k s h e e t 2  W o r k s h e e t S e l e c t  B u d g e t

These phrases are *only* found in the macro code not as text on the
document... This tells me the macros code is embedded inside the
document...

Tools | Macro | Macros don't have anything...

This phantom macro problem is driving me nuts... There must be a way
to turn it off even if I can't remove it. Since it is not a better
macro, I don't think Word 2000+ can detect it with the regular
security settings... Although I have my macro security settings set to
high, I never get a prompt when I open this doc.

Thanks..
Chris H

Suzanne S. Barnhill said:
Macros can be saved in documents, but only in Word 97 and above, so it's
hard to see how a WordBasic macro could be saved with the document. Do you
see the macro in Tools | Macro | Macros? If so, change the "Macros in"
setting till you find out where it is.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Nope, we don't use custom addins and that folder is empty.

Normally when I hit a macro dialog, I am able to step through the code if it
is VBA and unprotected but I couldn't.... I have never seen a macro like
this before... quite stealthy.

I can't seem to find out much about these macros on the net... I don't think
Word XP has a problem with these macros just Word 2000 and below.

Here is an example of the old macro..

Thanks,
Chris

Private Sub VISA()

WordBasic.BeginDialog 331, 165, "Authorization for Individual Grant"

WordBasic.Text 68, 8, 167, 13, "Select U.S. visa type:"

WordBasic.OptionGroup "Opt"

WordBasic.OptionButton 119, 25, 40, 16, "&B"

WordBasic.OptionButton 119, 46, 39, 16, "&F"

WordBasic.OptionButton 119, 67, 37, 16, "&J"

WordBasic.OptionButton 119, 88, 60, 16, "&N/A"

WordBasic.OKButton 66, 117, 203, 31

WordBasic.EndDialog

Dim VIS As Object: Set VIS = WordBasic.CurValues.UserDialog

WordBasic.Dialog.UserDialog VIS

Select Case VIS.Opt

Case 0

WordBasic.WW2_Insert "B"

Case 1

WordBasic.WW2_Insert "F"

WordBasic.WW7_EditGoTo Destination:="IssuedByBK"

WordBasic.WW2_Insert "ISSUED BY:"

WordBasic.NextCell

WordBasic.WW2_Insert WordBasic.[InputBox$]("Institution or organization
sponsoring U.S. visa?", "Authorization For Individual Grant")

Case 2

WordBasic.WW2_Insert "J"

WordBasic.WW7_EditGoTo Destination:="IssuedByBK"

WordBasic.WW2_Insert "ISSUED BY:"

WordBasic.NextCell

WordBasic.WW2_Insert WordBasic.[InputBox$]("Institution or organization
sponsoring U.S. visa?", "Authorization For Individual Grant")

Case 3

WordBasic.WW2_Insert "N/A"

Case Else

End Select

End Sub

Private Sub AUTOPAY()

WordBasic.WW2_Insert WordBasic.[InputBox$]("Date of automatic payment to be
scheduled in New York?", "Authorization For Individual Grant")

WordBasic.NextCell

WordBasic.WW2_Insert "$"

WordBasic.WW2_Insert WordBasic.[InputBox$]("Amount of automatic payment to
be scheduled in New York?", "Authorization For Individual Grant")

ANOTHER

End Sub

Private Sub ANOTHER()

Dim M

M = WordBasic.MsgBox("Do you need another row of payment date and amount?",
"Authorization for Individual Grant", 4)

If M = -1 Then

WordBasic.NextCell

AUTOPAY

End If

End Sub




Suzanne S. Barnhill said:
Could it be in an add-in in Word's Startup folder?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the
newsgroup
so
all may benefit.

Hello All,

My company still have wordbasic macros associated to a few
documents but
if
I disassociate them from the document, the document STILL uses the
macro.
Is
it possible for wordbasic macros(or any macro) to be embedded into the
document( not in the normal.dot template and not in the template
portion
of
the document)?

I would like to be able to disable the macro from running if possible or
somehow disassociate the macro do some work and re-associate the macro. Is
this possible?

I thought all macros had to be initiated with code if you run in Visual
basic. The normal.dot does not have this macro because I removed it from
it's spot and let word re-create it. I even disassociated my computer from
the network where the macro lives and the document found a way to call the
macro.

Thanks in advance for any help,
Regards,
Chris H
 
S

Suzanne S. Barnhill

The code he quoted doesn't sound like FILLIN fields to me. It sounds like
the WordBasic precursor of a UserForm. Chris, have you tried opening the
NewMacros module (or any other that might be affecting the document) in the
VBA Editor to see what you can find there? You might also want to move this
discussion to one of the Word VBA NGs where the developers hang out. Someone
there might be willing to take a look at your problem document.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Beth Melton said:
Hi Chris,

If you are unable to view the macro then how do you know the phrases
you cited are found in the macro?

I suspect the document contains fill-in fields and they are prompting
when the document opens.

If the macro you are referring to is a series of input boxes then a
macro is not in use. In the past one had to create an AutoNew or
AutoOpen macro that updated the fill-in fields which caused them to
display. As of Word 97 (I think) this is no longer required and they
will prompt automatically.

Press Alt + F9 to toggle the field of field codes and remove any
FILLIN fields you find.

Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.

~~~~~~~~~~~~~
Beth Melton

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/


This is my whole problem.. No templates are associated to this
document anymore, my normal.dot template is blank and this wordbasic
macro is still associated to the doc.

Like I mentioned previously, I disconnected my computer from the
network and somehow the macro tried to execute.

"so it's hard to see how a WordBasic macro could be saved with the
document"

I don't mean saved with the document like a simple association, I mean
it is somehow hidden... I believe I can remove the macro if I save the
document as a text file since copying and pasting to a new document
didn't seem to help.

For example, If I open the .doc document using a text editor, I can
still find remains of the macro... ex
W o r k s h e e t
W o r k s h e e t 1  V i s a T y p e
I s s u e d B y B K
W o r k s h e e t 2  W o r k s h e e t S e l e c t  B u d g e t

These phrases are *only* found in the macro code not as text on the
document... This tells me the macros code is embedded inside the
document...

Tools | Macro | Macros don't have anything...

This phantom macro problem is driving me nuts... There must be a way
to turn it off even if I can't remove it. Since it is not a better
macro, I don't think Word 2000+ can detect it with the regular
security settings... Although I have my macro security settings set to
high, I never get a prompt when I open this doc.

Thanks..
Chris H

Suzanne S. Barnhill said:
Macros can be saved in documents, but only in Word 97 and above, so it's
hard to see how a WordBasic macro could be saved with the document. Do you
see the macro in Tools | Macro | Macros? If so, change the "Macros in"
setting till you find out where it is.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Nope, we don't use custom addins and that folder is empty.

Normally when I hit a macro dialog, I am able to step through the code if it
is VBA and unprotected but I couldn't.... I have never seen a macro like
this before... quite stealthy.

I can't seem to find out much about these macros on the net... I don't think
Word XP has a problem with these macros just Word 2000 and below.

Here is an example of the old macro..

Thanks,
Chris

Private Sub VISA()

WordBasic.BeginDialog 331, 165, "Authorization for Individual Grant"

WordBasic.Text 68, 8, 167, 13, "Select U.S. visa type:"

WordBasic.OptionGroup "Opt"

WordBasic.OptionButton 119, 25, 40, 16, "&B"

WordBasic.OptionButton 119, 46, 39, 16, "&F"

WordBasic.OptionButton 119, 67, 37, 16, "&J"

WordBasic.OptionButton 119, 88, 60, 16, "&N/A"

WordBasic.OKButton 66, 117, 203, 31

WordBasic.EndDialog

Dim VIS As Object: Set VIS = WordBasic.CurValues.UserDialog

WordBasic.Dialog.UserDialog VIS

Select Case VIS.Opt

Case 0

WordBasic.WW2_Insert "B"

Case 1

WordBasic.WW2_Insert "F"

WordBasic.WW7_EditGoTo Destination:="IssuedByBK"

WordBasic.WW2_Insert "ISSUED BY:"

WordBasic.NextCell

WordBasic.WW2_Insert WordBasic.[InputBox$]("Institution or organization
sponsoring U.S. visa?", "Authorization For Individual Grant")

Case 2

WordBasic.WW2_Insert "J"

WordBasic.WW7_EditGoTo Destination:="IssuedByBK"

WordBasic.WW2_Insert "ISSUED BY:"

WordBasic.NextCell

WordBasic.WW2_Insert WordBasic.[InputBox$]("Institution or organization
sponsoring U.S. visa?", "Authorization For Individual Grant")

Case 3

WordBasic.WW2_Insert "N/A"

Case Else

End Select

End Sub

Private Sub AUTOPAY()

WordBasic.WW2_Insert WordBasic.[InputBox$]("Date of automatic payment to be
scheduled in New York?", "Authorization For Individual Grant")

WordBasic.NextCell

WordBasic.WW2_Insert "$"

WordBasic.WW2_Insert WordBasic.[InputBox$]("Amount of automatic payment to
be scheduled in New York?", "Authorization For Individual Grant")

ANOTHER

End Sub

Private Sub ANOTHER()

Dim M

M = WordBasic.MsgBox("Do you need another row of payment date and amount?",
"Authorization for Individual Grant", 4)

If M = -1 Then

WordBasic.NextCell

AUTOPAY

End If

End Sub




Suzanne S. Barnhill said:
Could it be in an add-in in Word's Startup folder?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the
newsgroup
so
all may benefit.

Hello All,

My company still have wordbasic macros associated to a few
documents but
if
I disassociate them from the document, the document STILL uses the
macro.
Is
it possible for wordbasic macros(or any macro) to be embedded into the
document( not in the normal.dot template and not in the template
portion
of
the document)?

I would like to be able to disable the macro from running if possible or
somehow disassociate the macro do some work and re-associate the macro. Is
this possible?

I thought all macros had to be initiated with code if you run in Visual
basic. The normal.dot does not have this macro because I removed it from
it's spot and let word re-create it. I even disassociated my computer from
the network where the macro lives and the document found a way to call the
macro.

Thanks in advance for any help,
Regards,
Chris H
 
C

Chris H

Alt+F9 worked to show me the problem.... I confused it with the macro it used to be associated too. Some of the macro code also have the same phrases.

Now I an simply record all the enabled form fields in a collection, disable them do some work then re-enable them...

Thank you soo much for your help.
Chris H

Suzanne S. Barnhill said:
The code he quoted doesn't sound like FILLIN fields to me. It sounds like
the WordBasic precursor of a UserForm. Chris, have you tried opening the
NewMacros module (or any other that might be affecting the document) in the
VBA Editor to see what you can find there? You might also want to move this
discussion to one of the Word VBA NGs where the developers hang out. Someone
there might be willing to take a look at your problem document.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Beth Melton said:
Hi Chris,

If you are unable to view the macro then how do you know the phrases
you cited are found in the macro?

I suspect the document contains fill-in fields and they are prompting
when the document opens.

If the macro you are referring to is a series of input boxes then a
macro is not in use. In the past one had to create an AutoNew or
AutoOpen macro that updated the fill-in fields which caused them to
display. As of Word 97 (I think) this is no longer required and they
will prompt automatically.

Press Alt + F9 to toggle the field of field codes and remove any
FILLIN fields you find.

Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.

~~~~~~~~~~~~~
Beth Melton

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/


This is my whole problem.. No templates are associated to this
document anymore, my normal.dot template is blank and this wordbasic
macro is still associated to the doc.

Like I mentioned previously, I disconnected my computer from the
network and somehow the macro tried to execute.

"so it's hard to see how a WordBasic macro could be saved with the
document"

I don't mean saved with the document like a simple association, I mean
it is somehow hidden... I believe I can remove the macro if I save the
document as a text file since copying and pasting to a new document
didn't seem to help.

For example, If I open the .doc document using a text editor, I can
still find remains of the macro... ex
W o r k s h e e t
W o r k s h e e t 1  V i s a T y p e
I s s u e d B y B K
W o r k s h e e t 2  W o r k s h e e t S e l e c t  B u d g e t

These phrases are *only* found in the macro code not as text on the
document... This tells me the macros code is embedded inside the
document...

Tools | Macro | Macros don't have anything...

This phantom macro problem is driving me nuts... There must be a way
to turn it off even if I can't remove it. Since it is not a better
macro, I don't think Word 2000+ can detect it with the regular
security settings... Although I have my macro security settings set to
high, I never get a prompt when I open this doc.

Thanks..
Chris H

Suzanne S. Barnhill said:
Macros can be saved in documents, but only in Word 97 and above, so it's
hard to see how a WordBasic macro could be saved with the document. Do you
see the macro in Tools | Macro | Macros? If so, change the "Macros in"
setting till you find out where it is.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Nope, we don't use custom addins and that folder is empty.

Normally when I hit a macro dialog, I am able to step through the code if it
is VBA and unprotected but I couldn't.... I have never seen a macro like
this before... quite stealthy.

I can't seem to find out much about these macros on the net... I don't think
Word XP has a problem with these macros just Word 2000 and below.

Here is an example of the old macro..

Thanks,
Chris

Private Sub VISA()

WordBasic.BeginDialog 331, 165, "Authorization for Individual Grant"

WordBasic.Text 68, 8, 167, 13, "Select U.S. visa type:"

WordBasic.OptionGroup "Opt"

WordBasic.OptionButton 119, 25, 40, 16, "&B"

WordBasic.OptionButton 119, 46, 39, 16, "&F"

WordBasic.OptionButton 119, 67, 37, 16, "&J"

WordBasic.OptionButton 119, 88, 60, 16, "&N/A"

WordBasic.OKButton 66, 117, 203, 31

WordBasic.EndDialog

Dim VIS As Object: Set VIS = WordBasic.CurValues.UserDialog

WordBasic.Dialog.UserDialog VIS

Select Case VIS.Opt

Case 0

WordBasic.WW2_Insert "B"

Case 1

WordBasic.WW2_Insert "F"

WordBasic.WW7_EditGoTo Destination:="IssuedByBK"

WordBasic.WW2_Insert "ISSUED BY:"

WordBasic.NextCell

WordBasic.WW2_Insert WordBasic.[InputBox$]("Institution or organization
sponsoring U.S. visa?", "Authorization For Individual Grant")

Case 2

WordBasic.WW2_Insert "J"

WordBasic.WW7_EditGoTo Destination:="IssuedByBK"

WordBasic.WW2_Insert "ISSUED BY:"

WordBasic.NextCell

WordBasic.WW2_Insert WordBasic.[InputBox$]("Institution or organization
sponsoring U.S. visa?", "Authorization For Individual Grant")

Case 3

WordBasic.WW2_Insert "N/A"

Case Else

End Select

End Sub

Private Sub AUTOPAY()

WordBasic.WW2_Insert WordBasic.[InputBox$]("Date of automatic payment to be
scheduled in New York?", "Authorization For Individual Grant")

WordBasic.NextCell

WordBasic.WW2_Insert "$"

WordBasic.WW2_Insert WordBasic.[InputBox$]("Amount of automatic payment to
be scheduled in New York?", "Authorization For Individual Grant")

ANOTHER

End Sub

Private Sub ANOTHER()

Dim M

M = WordBasic.MsgBox("Do you need another row of payment date and amount?",
"Authorization for Individual Grant", 4)

If M = -1 Then

WordBasic.NextCell

AUTOPAY

End If

End Sub




Could it be in an add-in in Word's Startup folder?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup
so
all may benefit.

Hello All,

My company still have wordbasic macros associated to a few documents but
if
I disassociate them from the document, the document STILL uses the macro.
Is
it possible for wordbasic macros(or any macro) to be embedded into the
document( not in the normal.dot template and not in the template portion
of
the document)?

I would like to be able to disable the macro from running if possible or
somehow disassociate the macro do some work and re-associate the macro. Is
this possible?

I thought all macros had to be initiated with code if you run in Visual
basic. The normal.dot does not have this macro because I removed it from
it's spot and let word re-create it. I even disassociated my computer from
the network where the macro lives and the document found a way to call the
macro.

Thanks in advance for any help,
Regards,
Chris H
 

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