Hello
I am using two files which I merge and reformat. My problem is that I am doing something wrong and I cannot use the path from the browser for any other function.
below I have the part of the code that I have the problem
Sub test()
Dim FName As Variant
FName = Application.GetOpenFilename("Excel Files (*.xls),*.xls")
If FName = False Then
' user clicked cancel
Else
MsgBox FName
End If
Dim a As String
a = FName
x=Workbooks(a).Worksheets("Opp Pursuit Detail").Cells(5, 5).Value
'the underlined does not work
End Sub
Is there any other way that I can use the path that I get from the browser to process specific data from the selected file???
Thank you in advance
I am using two files which I merge and reformat. My problem is that I am doing something wrong and I cannot use the path from the browser for any other function.
below I have the part of the code that I have the problem
Sub test()
Dim FName As Variant
FName = Application.GetOpenFilename("Excel Files (*.xls),*.xls")
If FName = False Then
' user clicked cancel
Else
MsgBox FName
End If
Dim a As String
a = FName
x=Workbooks(a).Worksheets("Opp Pursuit Detail").Cells(5, 5).Value
'the underlined does not work
End Sub
Is there any other way that I can use the path that I get from the browser to process specific data from the selected file???
Thank you in advance