visual basic excel file name code example Example: excel vba get the workbook full filename with path MsgBox ThisWorkbook.FullName