Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default How to test : files are already opened or not

How to test, wheather a particular excel file is already opened or not.
Please help me
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default How to test : files are already opened or not

This function does the job:

Public Function IsOpenWB(ByVal WBname As String) As Boolean
'returns true if workbook is open
Dim objWorkbook As Object
On Error Resume Next
IsOpenWB = False
Set objWorkbook = Workbooks(WBname)
If Err = 0 Then IsOpenWB = True
End Function

Regards,
Stefi


€˛kris€¯ ezt Ć*rta:

How to test, wheather a particular excel file is already opened or not.
Please help me

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default How to test : files are already opened or not

Thanks Stefi you have shown me the way


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default How to test : files are already opened or not

You are welcome! Thanks for the feedback!
Stefi


€˛kris€¯ ezt Ć*rta:

Thanks Stefi you have shown me the way


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why two files opened? Lisa Excel Discussion (Misc queries) 4 September 29th 09 06:08 AM
log of when files opened... AmyTaylor[_64_] Excel Programming 0 June 23rd 06 08:36 AM
log of when files opened... AmyTaylor[_63_] Excel Programming 0 June 23rd 06 08:35 AM
how to log all files opened on my pc? [email protected] Excel Discussion (Misc queries) 5 June 11th 06 11:09 PM
Test for first time a workbook is opened Ken Loomis Excel Programming 3 August 6th 05 11:24 PM


All times are GMT +1. The time now is 05:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"