Runtime Error 438 - What does this mean? 
Author Message
 Runtime Error 438 - What does this mean?

I posted in the word newsgroup as well - hope that is okay.

When tyring to run a macro I get this error: Runtime error "438" on the
following code:
If Dialogs(wdDialogFilePrint).Show_ <> 0 Then Call IncrementNr

I am trying to create a macro that increases a number by one and I have
three macros:
The instructions were place a textbox form field in docu., deactivate
the checkbox that allows users to type in it.  Give it a name i.e. docnr

and create the macros.  I did all of this but I did not name the textbox

I thought it meant give the document a name and I named it DocNr.
Anyway, when I print I receive the runtime error at the line noted
above.  What am I doing wrong?

Sub IncrementNr()
Dim ffld As Word.FormField
Set ffld_ = ActiveDocument.FormFields("DocNr")
ffld.Result = ffld.Result + 1

End Sub

Sub FilePrint()

    If Dialogs(wdDialogFilePrint).Show_ <> 0 Then Call IncrementNr

End Sub
Sub FilePrintDefault()
'
' FilePrintDefault Macro
' Prints the active document using the current defaults
'
 Call IncrementNr

End Sub

Cathy



Sun, 22 Sep 2002 03:00:00 GMT  
 Runtime Error 438 - What does this mean?
Hi Cathy,

Quote:
> When tyring to run a macro I get this error: Runtime error "438" on the
> following code:
> If Dialogs(wdDialogFilePrint).Show_ <> 0 Then Call IncrementNr

Well, the first thing you'd need to do is delete the underscore_
following .Show

What's the text with error 438, I don't recognize the number?

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 :-)



Tue, 24 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Runtime error 438

2. **** Runtime Error 438

3. Runtime error 438

4. runtime error 438?

5. Runtime Script error 438

6. Activex Runtime Error: 438

7. Runtime error #438

8. Runtime Error 438 when using VS2005 C++ATL control with VB6 form

9. Runtime 438 object dosenot support this property or method

10. Run-Time Error '438'

11. Need help with error 438!!!

12. wordbasic statement "AppMaximize" generates error 438

 

 
Powered by phpBB® Forum Software