E
etradeguru
I have searched the Groups but cannot find a means by which I can call
the Window dropdown to allow a user to navigate between open excel
files to select the correct sheet for the macro to run on.
Basically, I want to be able to ensure that the user already has the
necessary file open and that it has focus, and to apply a means by
which they can go to the open file so that the macro runs on the
correct file rather than any other file that might be open.
so far i have the following: -
Sub versionmastermsb1()
Dim msb As Integer
msb = MsgBox("Is today's Log file open?", vbYesNo)
If msb = 6 Then
msb = MsgBox("Please make sure Log file has active focus")
ElseIf msb = 7 Then
Application.FindFile
End If
End Sub
When the condition is Yes, I need the user to have the file active.
How do I ensure this before the macro runs on?
Thanks
Mark
the Window dropdown to allow a user to navigate between open excel
files to select the correct sheet for the macro to run on.
Basically, I want to be able to ensure that the user already has the
necessary file open and that it has focus, and to apply a means by
which they can go to the open file so that the macro runs on the
correct file rather than any other file that might be open.
so far i have the following: -
Sub versionmastermsb1()
Dim msb As Integer
msb = MsgBox("Is today's Log file open?", vbYesNo)
If msb = 6 Then
msb = MsgBox("Please make sure Log file has active focus")
ElseIf msb = 7 Then
Application.FindFile
End If
End Sub
When the condition is Yes, I need the user to have the file active.
How do I ensure this before the macro runs on?
Thanks
Mark