Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() switch to all open workbooks apart from activeworkbook and othe windows. On switching check whether file "MYFILE.xls" is opened or not an display msgbox saying "MYFILE is opened" else "Not opened" -- ilyaskaz ----------------------------------------------------------------------- ilyaskazi's Profile: http://www.excelforum.com/member.php...fo&userid=2396 View this thread: http://www.excelforum.com/showthread.php?threadid=37652 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub TestMyFile()
Const FileName As String = "myfile.xls" Dim x As Workbook Dim FileOpen As Boolean FileOpen = False For Each x In Workbooks If UCase(x.Name) = UCase(FileName) Then _ FileOpen = True Next x If FileOpen Then MsgBox "MyFile is open" Else: MsgBox "MyFile is not open" End If End Sub "ilyaskazi" wrote: switch to all open workbooks apart from activeworkbook and other windows. On switching check whether file "MYFILE.xls" is opened or not and display msgbox saying "MYFILE is opened" else "Not opened". -- ilyaskazi ------------------------------------------------------------------------ ilyaskazi's Profile: http://www.excelforum.com/member.php...o&userid=23969 View this thread: http://www.excelforum.com/showthread...hreadid=376525 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to display remaining txt file which overflowed MsgBox display? | Excel Discussion (Misc queries) | |||
Using alt-tab to switch between Excel workbooks under the same session | Excel Discussion (Misc queries) | |||
MsgBox - How to display In Other Instance of Excel | Excel Programming | |||
Excel VBA - MsgBox to display variable value? | Excel Programming | |||
Switch Workbooks | Excel Programming |