Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Feb 2005
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Accessing Excel from Word (Office 2000-2003)

    My client uses Excel to distribute patient information to their transcriptionists who are transcribing medical records. Currently, the users highlight an Excel record, then press Ctrl-C (Copy) go back to work and launch a macro that opens a blank document, pastes the reccord and goes through the pasted table reading the contents and assigning each cell to a different variable for you in the document.

    Is there a way to access the information directly in Excel referencing the currently selected row and the various column contents? I have attached the Excel file with the headings the file contains.

    Thank you!

  2. #2
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Accessing Excel from Word (Office 2000-2003)

    Hi,
    This sounds to me a lot like a mail merge - have you looked into that option within Word? (see for example <!post=this thread, 457598>this thread<!/post> in the Word forum).
    Regards,
    Rory

    Microsoft MVP - Excel

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Accessing Excel from Word (Office 2000-2003)

    VBA provides the GetObject method, which would allow Word to locate and manipulate an open instance of Excel. However, if there are two instances of Excel running, it may grab the wrong one. <img src=/S/sad.gif border=0 alt=sad width=15 height=15>

    What you might consider doing is launching your Word document using automation from inside Excel. Then your users could ship the copy and paste and work directly from the selected row of data. I don't know enough Excel to do that, but I imagine there are examples here from past projects.

Posting Permissions

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