+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    08-02-2009
    Location
    Salvador, Bahia, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    4

    Input data into Word through Excel

    Hi, people.
    I need to open a Word file in Excel and then input data into some fields using values in the Excel cells. Do I have to use VBA?
    How can I do this? Initially how do I open a Word File?
    Thanks.

  2. #2
    Forum Guru Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    Cheshire, UK
    MS-Off Ver
    MS 97, 2003, 2007, 2010
    Posts
    2,899

    Re: Input data into Word through Excel

    To do it automatically you will need to use VBA, to open a word document you can adapt this:
    Code:
    Dim MyDoc As Object
    Set MyDoc = GetObject("D:/msword/directory/document.doc")
    MyDoc.Application.Visible = True
    MyDoc.Parent.Documents.Open FileName:="D:/msword/directory/document.doc"

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0