You could use a variable to reference the workbook when it's opened.
You can now use the variable wbOpen whenever you want to refer to the workbook the user selected.![]()
Set wbOpen = Workbooks.Open( fileName:=fNameAndPath)
You could use a variable to reference the workbook when it's opened.
You can now use the variable wbOpen whenever you want to refer to the workbook the user selected.![]()
Set wbOpen = Workbooks.Open( fileName:=fNameAndPath)
If posting code please use code tags, see here.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks