Skip to main content
Participating Frequently
June 24, 2009
Question

RH8 for Word 2003. Runtime Error 5152: Cant move focus to control

  • June 24, 2009
  • 2 replies
  • 4986 views

Hi, I am trying to open a word file from the RoboHelp source files and am getting the following error:

Runtime Error '5152': Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.

I am using Word 2003 and RoboHelp 8. I didnt not change anything in the code, its a RoboHelp provided code. RH was installed with my netword id and with admin rights. When I click debug, it highlights the following piece of code.

Private Function IsRoboHookLoaded() As Boolean

    IsRoboHookLoaded = False
    ' No addins, not loaded
    If (AddIns.Count = 0) Then
        GoTo IsRoboHookLoadedExit
    End If
       
    For i = 1 To AddIns.Count
        AddInName$ = LCase$(AddIns.Item(i).Name)
        If (AddInName$ = "robohook.wll") Then
            If (AddIns.Item(i).Installed = True) Then
                IsRoboHookLoaded = True
                Exit For
            End If
        End If
    Next
   
IsRoboHookLoadedExit:
End Function

Also, when I click end and try to close the Document, I get another error:

Runtime Error '5152': Method 'Name' of Object 'AddIN' failed.

It again highlights the same piece of code on debug.

Can you please suggest why this might be so?

Thanks in advance.

- Shubs

This topic has been closed for replies.

2 replies

Inspiring
June 25, 2009

I'm not using RH8 for Word, but based on the error message, you are probably missing the robohook.wll file.

This file should be in this location: C:\Documents and Settings\<user name>\Application Data\Microsoft\Word\STARTUP

It is possible when it was installed from the network that this file did not get installed and/or registered. Check to see if the file is there.

It is correct that the robohelp.dot file and all other RH template files should be stored in the ..\application data\templates folder.

When you view the template in the doc (Format, Styles - I think) the robohook.wll should be checked. If not, select add, locate the robohook.wll.

I'm hoping this works...

its_shubsAuthor
Participating Frequently
June 25, 2009

Hi Betty, thanks for your input. But robohelp.wll is present in startup folder and is attached to the template (under tools/template and add-ins). I have already checked most of the things I could find online (in other forums), everything seems to be all right, I am still getting the error. Any other thoughts?

Inspiring
June 25, 2009

So if you have the robohelp.dot in the application data\templates folder and open the project and the doc, the fomatting is gone in the doc and it is is plain text, correct? Are any styles attached to the text at all? For instance if you highlight what was a heading 1, is it still heading 1?

I'm thinking that even if the doc has lost its formatting, you should be able to go to the styles, select the robohelp.dot file and copy those styles into your current doc and then the current doc should display those styles automatically.

Again, zip up your RH source project before trying this.

Also, if you create a new help project, do you run into the same problem?

Peter Grainge
Community Expert
Community Expert
June 24, 2009

See if this helps.

http://kb2.adobe.com/cps/100/rb_100000.html


See www.grainge.org for RoboHelp and Authoring tips

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
its_shubsAuthor
Participating Frequently
June 24, 2009

Hi, Thanks for your reply. I already checked that and I dont have PDFMaker.dot template in my addins. Any other thoughts?

Peter Grainge
Community Expert
Community Expert
June 24, 2009

In Word try Help > About > Disabled add ins.


See www.grainge.org for RoboHelp and Authoring tips

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.