Results 1 to 3 of 3

Thread: Problem with Excel!!!!!!!! COME ON!!

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Posts
    843

    Problem with Excel!!!!!!!! COME ON!!

    What I am doing is this:

    Set ObjWord = Word.Application
    Dim i As Integer

    For i = 1 To ObjWord.Documents.Count
    lstabierto.AddItem ObjWord.Documents(i).Name
    Next

    In this way I am adding all the Word Documents that are currently open to a Listbox. When I tried to do the same with Excel:


    Set objexcel = Excel.Application

    For i = 1 To objexcel.Workbooks.Count
    lstabierto.AddItem objexcel.Workbooks(i).Name
    Next


    Visual Baisc doesnt detect any Excel workbook open. (I do have excel opened)

    ANY IDEAS????!!!?!?!?!?!?!?!?

  2. #2
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428

    Wink

    You might wanna try the VB General Questions forum, not here...

    -Emo
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  3. #3
    billfaceuk
    Guest
    Yeah we wanna chat not think.

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