+ Reply to Thread
Results 1 to 2 of 2

A Challenge (Linking word and Excel)

  1. #1
    Mr M Walker
    Guest

    A Challenge (Linking word and Excel)


    I think this question is going to need a VBA Wizard

    Is it possible to link for MS Excel to Word ?

    if so I am trying to open a MS Word doc whilst in a userform in Excel

    The document I want to open is held in a text box within the userform

    How could this be done ?
    Regards

    Marcus
    MArcus

  2. #2
    moi
    Guest

    Re: A Challenge (Linking word and Excel)

    What if you add a RichTextBox to the form instead of a normal TextBox?
    The thing below seems to work quite okay...


    Private Sub GetWordDoc()
    Dim wDoc As Object
    Dim wFileName As Variant
    wFileName = Application.GetOpenFilename("MS Word Documents
    (*.doc),*.doc", , "Pick a Word Doc")
    Set wDoc = GetObject(wFileName)
    RichTextBox1.OLEObjects.Add , , wFileName
    End Sub



    "Mr M Walker" <[email protected]> schreef in bericht
    news:[email protected]...
    >
    > I think this question is going to need a VBA Wizard
    >
    > Is it possible to link for MS Excel to Word ?
    >
    > if so I am trying to open a MS Word doc whilst in a userform in Excel
    >
    > The document I want to open is held in a text box within the userform
    >
    > How could this be done ?
    > Regards
    >
    > Marcus
    > MArcus




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1