Consulting

Results 1 to 4 of 4

Thread: Solved: New to VBA - How do I open WORD?

  1. #1

    Question Solved: New to VBA - How do I open WORD?

    I'm attempting to open a .doc file from VBA within Excel. I understand that Activex is not available but how do I get round it?

    This is what I've got that doesn't work.

    appwd.Documents.Open txtpath & lettername

    I would appreciate any help.

    Thanks.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    Dim app As Object
    Set app = CreateObject("Word.Application")
    app.Documents.Open txtpath & lettername
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3

    Smile

    Thanks, I'll give that a go.

  4. #4

    Thumbs up

    That took me into Word, and another set of problems, for which I shall go to the Word part of the Forum.

    Thank you for your help.

Posting Permissions

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