Does anyone got a code snippet to check if a specific MS Excel workbook is loaded when working within MS Access environment?
Many thanks
Alastair
Function IsOpenXLWB(wbn As String) As Boolean On Error Resume Next IsOpenXLWB = Not (GetObject("Excel.Application").Workbooks(wbn) Is Nothing) Err.ClearEnd Function