Sure. If you tell us more about what you need, where you're
VBA is running, and which version of Office is involved, we
might even be able to give you a code sample.
This very simple example just looks for the workbook name:
Sub gsnu()
Dim wb As Workbook
Dim s As String
s = InputBox("enter Workbook name" & Chr(10) & "example: Book1")
For Each wb In Workbooks
If s = wb.Name Then
MsgBox (s & " is open")
Exit Sub
End If
Next
MsgBox (s & " is not open")
End Sub
Have a pleasant day!!
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.