PDA

Click to See Complete Forum and Search --> : Problem with Excel!!!!!!!! COME ON!!


Andreex
Apr 28th, 2001, 09:12 AM
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????!!!?!?!?!?!?!?!?

Emo
Apr 28th, 2001, 03:52 PM
You might wanna try the VB General Questions forum, not here...

-Emo

billfaceuk
Apr 28th, 2001, 04:06 PM
Yeah we wanna chat not think. :p