Put Filename Variable in Macro
Try changing this line
FName = Worksheets("Index").Range("B8")
to this:
FName = Worksheets("Index").Range("B8").Value
As a test you can add this line and run the code before and after the
suggested change:
FName = Worksheets("Index").Range("B8")
Msgbox FName
You should see the expected results.
|