View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Shailesh Shah[_2_] Shailesh Shah[_2_] is offline
external usenet poster
 
Posts: 114
Default Checking if workbook is open

Hi Jesse,

Function IsWBopen(wb As String) As Boolean
On Error Resume Next
IsWBopen = Len(Workbooks(wb).Name) 0
End Function

Sub test()
MsgBox IsWBopen("funcres.xla")'your workbook name
End Sub


Regards,
Shah Shailesh
http://members.lycos.co.uk/shahweb/
(Excel Add-ins)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!