Consulting

Results 1 to 4 of 4

Thread: Word doc embedded object

  1. #1

    Word doc embedded object

    Hi everyone, this is kind a of a weird, specific question and I've had no luck researching it on my own. I have a wb that has an embedded word doc inside it and I have a macro that uses the word doc to generate a report. It works fine, but for some reason, with an embedded document, once edditted, the doc automatically saves itself upon closing. So if the user generates a report, then closes the doc and tries to generate another report, it copies next to the now-prefilled word doc. I hope I'm not too confusing... anyway does anyone know what I'm talking about or have any idea how to fix/work around it? Thanks so much for the help!

  2. #2
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    I would avoid it by copying the data from excel into a Word template that is already set up:
    http://vbaexpress.com/kb/getarticle.php?kb_id=436
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  3. #3
    Yeah... that's how I have it set up as is, but my wb is going to be used by several people so i figured the less files the less margin for error. Thanks for the input! I kind of figured that it wasn't going to be a viable option.

  4. #4
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    You can also set up a hidden template sheet in Excel and copy it and use it for your report each time....I find there is little you can do in Word as far as generating reports that can't be done completely in Excel....
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

Posting Permissions

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