Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
i have the following code in VB. Set loXLS = GetObject(, "Excel.Application") Dim loXLS As Excel.Application For i = 1 To loXLS.Workbooks.Count If loXLS.Workbooks(i).FullName = psFile Then Exit For End If Next i When a excel file is already open, this fails. And the loxls.workbooks.count is 0. Can you tell me what could be the reason? -Jaya |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 - error saving file & error loading dll | Excel Discussion (Misc queries) | |||
Error: "Excel encountered an error and had to remove some formatti | Excel Discussion (Misc queries) | |||
Counting instances of found text (Excel error? Or user error?) | Excel Worksheet Functions | |||
Excel 2003 Macro Error - Runtime error 1004 | Excel Discussion (Misc queries) |