The Answer is at the top of your module put
Public file_name as string
or if the value doesnt change
const file_name = "C:\whatever"
but from your question, i suggest you read the excel vba files on scope and declaration, as you wont get much further.,
Chance,
Filmmaker, taken gentleman and crunch day + 22