if your sheet is labeled the same name as your workbook then this will work..
Dim sheetname As String
Dim i As String
Dim j As String
Dim k As String
Dim sFileName As String
j = 1
i = ""
'Show the open dialog and pass the selected _
file name To the String variable "sFileName"
sFileName = Application.GetOpenFilename
'They have cancelled.
If sFileName = "False" Then Exit Sub
Workbooks.Open Filename:=sFileName
Do Until k = "\"
i = Right(sFileName, j)
k = Left(i, 1)
DoEvents
j = j + 1
Loop
j = j - 1
sheetname = Right(i, j)
Bookmarks