Forum Discussion
MS Word is throwing up 'Error 4608' I haven't a clue what to do.
Hello,
I wonder if anyone can help me here, because I am at a TOTAL los...
I have a Word document that I have been updating for a few years, which is a sort of log. It has worked well up until today. Now, whenever I try to save the updated document, a very old fashioned (looks like Windows 3.1!), error message window appears which is headed 'Visual Basic for Applications' and in the window it says:
Run-time error: '4608': Undefined dialogue record field
There are then four buttons at the bottom labelled Help, Continue (which is greyed out), End and Debug.
I have no idea what this error message means.
Clicking on End gets rid of the error message, but prevents me from saving my updated document, and the next time I try to save it the error message just reappears.
Clicking on Help takes me to a website with the title 'No F1 help match was found', followed by a load of technical computer-geek stuff I don't understand.
Clicking on Debug seems to open a new window, but I do not know what it is... Here is a screen-shot of it:
The highlighted text seems to refer to Bookmarks, which is throws me because I only associate Bookmarks with my web browser, not MS Word. I'm sure I haven't added any bookmarks to my document in any case.
Can anyone enlighten me as to what is going on here please?
Thanks
If you put a ' at the start of the line that is in yellow, it will stop you getting the error message. I recommend trying Stefan's suggested language instead.
Note, this is the same as erasing that line. Word will ignore it. This lets you figure out what the problem is. Stefan's suggestion may fix things so it works as intended.
6 Replies
- captain-plummetCopper Contributor
Charles,
I followed your advice to insert the ' at the start of Stefan's suggested text in the yellow highlight, and it worked! Magic!
Thanks ever so much.
I still haven't any real idea of what this Visual Basic debugging thing is, though; it is all a bit 'what goes on in the works behind the scenes' to me. I'm sure MS could think of a far less clanky way of informing users of what the error is, and provide an in-program solution to correct it, or better still have Word itself auto-correct it.
- Charles_KenyonBronze Contributor
If you put a ' at the start of the line that is in yellow, it will stop you getting the error message. I recommend trying Stefan's suggested language instead.
Note, this is the same as erasing that line. Word will ignore it. This lets you figure out what the problem is. Stefan's suggestion may fix things so it works as intended.
- cdrgregCopper Contributor
Captain,
If your process ever worked, then you will almost certainly have a bookmark named macroMarkerHere in the last successfully saved document. It appears that you have several global add-ins loaded and without seeing more of your code, it is impossible to pinpoint why you are now experiencing this issue. Somewhere in your VB Project, you have an event procedure that is calling the function MarkSpot. Now, if Stefan's proposed solution doesn't work and if you really don't need the bookmark, you can simply stet out that line of code (put an apostrophe at the start of the line) and let the code continue to run without error.
- captain-plummetCopper Contributor
Stefan,
Thanks for trying to help. I wasn't completely sure what your reply meant, but I assumed you meant for me to delete the yellow highlighted text in that new window that gets thrown up, and paste your line of text where it had been.
I did that, but then I wasn't sure how to apply it. I clicked the floppy-disk icon top left of toolbar in attempt to save my change. Yes?
Unfortunately, it had no effect on things, and when I try to save changes to the Word document it still throws up that error message, and if I click on the Debug button in it the new window still gets launched, but now the yellow highlighted line of text is the text I pasted in from your reply.
I still cannot save any charges to my document and I end up having to Force Quit Word because there is no other way to close it.
Try using ActiveDocument.Bookmarks instead:
ActiveDocument.Bookmarks.Add Name:="macroMarkHere", Range:=Activedocument.Range(Selection.Range.Start, Selection.Range.End)- cdrgregCopper Contributor
Well, I can't explain exactly why you are having this issue but I can say that if your process has worked before then each time you saved your previous log file, Word created a bookmark named "macroMarkHere" at the selection point of the active document. Without access to your entire VB project (it appears that you have a lot of template add-ins loaded) it is impossible to pinpoint what might be the cause.
I assume that somewhere in your project either the document or in a class module you have an event "Close, DocumentBeforeSave, etc." that is calling the markSpot function that you have highlighted and the "ActiveDocument" that function refers to is no longer available.