CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 1998
    Posts
    1

    GetObject("",Excel.application)



    I tried:

    myxl=GetObject("",Excel.Application)


    Just exactly as in the vb help file, but it doesn't work.

    I have a VBA reference in my project.


    This statement works OK:

    Myxl=GetObjext("path\book.xls")


    But it doesn't help if the .xls is already open.


    TIA





  2. #2
    Join Date
    Nov 1998
    Posts
    2

    Re: GetObject("",Excel.application)



    try this:


    GetObject(,"Excel.Application")


    Bye

    Jurgen

  3. #3
    Join Date
    Apr 1999
    Posts
    5

    Re: GetObject("",Excel.application)





    hi guy,


    try this


    dim MyXL as object


    set MyXL = getobject("","Excel.application")


    It should work...


    __Neph__

  4. #4
    Join Date
    Apr 1999
    Posts
    15

    Re: GetObject("",Excel.application)

    Is there coresponding routine in VC like GetObject() in VB.

    ShengTian Liao

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

Featured