• WSplarb

    WSplarb

    @wsplarb

    Viewing 6 replies - 31 through 36 (of 36 total)
    Author
    Replies
    • in reply to: Answer – Gurus – WebBrowser.Navigate (Office XP) #886947

      Sub ShowURL()

      On Error GoTo ErrorHandler

      If Me.WebBrowser.ReadyState = READYSTATE_COMPLETE Then
      ‘READYSTATE_UNINITIALIZED = 0,
      ‘READYSTATE_LOADING = 1,
      ‘READYSTATE_LOADED = 2,
      ‘READYSTATE_INTERACTIVE = 3,
      ‘READYSTATE_COMPLETE = 4

      Me.WebBrowser.Navigate CONST_DIR & Me.lstHelpFiles.Value & “.htm”

      lblUpdate.Caption = Me.lstHelpFiles.Value
      End If
      ‘ reset error handler to default

      Exit Sub
      ErrorHandler:
      ‘only writing to the debug window due to error problems – will delete when running perfectly
      Debug.Print Err.Description
      End Sub

    • in reply to: Answer – Gurus – WebBrowser.Navigate (Office XP) #886948

      Sub ShowURL()

      On Error GoTo ErrorHandler

      If Me.WebBrowser.ReadyState = READYSTATE_COMPLETE Then
      ‘READYSTATE_UNINITIALIZED = 0,
      ‘READYSTATE_LOADING = 1,
      ‘READYSTATE_LOADED = 2,
      ‘READYSTATE_INTERACTIVE = 3,
      ‘READYSTATE_COMPLETE = 4

      Me.WebBrowser.Navigate CONST_DIR & Me.lstHelpFiles.Value & “.htm”

      lblUpdate.Caption = Me.lstHelpFiles.Value
      End If
      ‘ reset error handler to default

      Exit Sub
      ErrorHandler:
      ‘only writing to the debug window due to error problems – will delete when running perfectly
      Debug.Print Err.Description
      End Sub

    • in reply to: Answer – Gurus – WebBrowser.Navigate (Office XP) #886945

      Hans,

      please test inside Word XP, Windows XP SP2.

      URL’s were on a server. Thus the URL will be something like this:

      sURL = “C:Documents and Settingsusermyfile1.htm”

      and for example:

      sURL = “C:Documents and Settingsusermyfile2.htm”

      Thus on navigate the code will be:

      myWebbrowser.Navigate sURL

      and obviously flick to the second URL on a “click” event – the click event

      I just can’t understand why the second URL errors out…? for me that is.

      I will now create 2 files with “Helloworld_1” text and “Helloworld_2” text inside “.htm” file extensions.

      Thanks

      Pete

    • in reply to: Answer – Gurus – WebBrowser.Navigate (Office XP) #886946

      Hans,

      please test inside Word XP, Windows XP SP2.

      URL’s were on a server. Thus the URL will be something like this:

      sURL = “C:Documents and Settingsusermyfile1.htm”

      and for example:

      sURL = “C:Documents and Settingsusermyfile2.htm”

      Thus on navigate the code will be:

      myWebbrowser.Navigate sURL

      and obviously flick to the second URL on a “click” event – the click event

      I just can’t understand why the second URL errors out…? for me that is.

      I will now create 2 files with “Helloworld_1” text and “Helloworld_2” text inside “.htm” file extensions.

      Thanks

      Pete

    • in reply to: Wrong field being selected (English/Word 2000/SR-3 #886941

      some fileds also allow you to add a bookmark such as the Checkbox.

      So maybe add a bookmark to the field control and then refer to the bookmark name.

      Pete

    • in reply to: Wrong field being selected (English/Word 2000/SR-3 #886942

      some fileds also allow you to add a bookmark such as the Checkbox.

      So maybe add a bookmark to the field control and then refer to the bookmark name.

      Pete

    Viewing 6 replies - 31 through 36 (of 36 total)