Results 1 to 3 of 3

Thread: Last question for today ! I promise!

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843

    Talking Last question for today ! I promise!

    hummm... I can create an objext that point to word or excel. Something like this:

    dim w1 as word.application
    set w1=new word.application

    but!!.... How can I point the object w1 to an alredy opened word. I saw something like this once... it used a function called getobject or something like that..... Does anybody remember?

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Code:
    On Error Resume Next
    Set w1 = GetObject(, "Word.Application")
    If Err Then
        'Word isn't open so...
        Set w1 = New Word.Application
    End If
    Best regards

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843

    Cool

    THANK YOU!!

Posting Permissions

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



Click Here to Expand Forum to Full Width