Quote:
Originally Posted by spruce
Hi
Have just downloaded BookCreator 2.6.1 and the eBookPub 2.3.8.
I imported a txt file using the toolbars and did a word wrap. I saved the document and I clicked on the LRF button and got the error
Runtime error 5
Invalid procedure call or argument
Below is the resulting error line from debug.
It is looking for a form called FrmCreateLRF. Where is this form held? This is similar to the error that Stranjer displayed in an earlier post but I have eBookPub installed on my machine and I have Caliber running in the background.
Any thoughts?
Alan
Sub ShowLRFCreator()
'________________________________________________
' NAME: ShowLRFCreator
' AUTHOR: =X=
' DESCRIPTION: Launches the LRF Creator dialog box.
' HISTORY:
' DATE: 09/06/2008
'________________________________________________
If ActiveDocument.Saved = True Then
FrmCreateLRF.Show <--------------DEBUG gives ERROR LINE Here
Else
MsgBox "Document must be saved before creating an LRF", vbOKOnly, "Document must be saved!"
End If
End Sub
|
Thank you for the detailed report, it makes trouble shooting much easier.
The line you are showing is not the true problem. VBA is just reporting it this way. What I need you to do is step through the code until the real problem occurs.
To do this first place a breakpoint on the line you show above. Do this by selecting the line then pressing "F9". The line will change to a red highlight.
Then run the program as normal, by reating an LRF book. It will stop executing at the breakpoint ("frmCreateLRF.Show")
Now step trough the code by pressing ("F8"). Do this until you get the error message.
The problem line will be one step before the error message occurs.
Thank you
=X=