Dim jmeno As String
For Each wb In Application.Workbooks
If wb.Name <> ThisWorkbook.Name Then
jmeno = wb.Name
Exit For
End If
Next
If jmeno <> "" Then MsgBox jmeno Else MsgBox "Nenalezeno"
Výběr souboru ...
Dim soubor As String
Application.FileDialog(msoFileDialogOpen).AllowMultiSelect = False
Application.FileDialog(msoFileDialogOpen).Show
If Application.FileDialog(msoFileDialogOpen).SelectedItems.Count = 1 Then
soubor = Application.FileDialog(msoFileDialogOpen).SelectedItems(1)
MsgBox soubor
End Ifcitovat