Professional Documents
Culture Documents
Chapter 3.2 - Path and Full Name
Chapter 3.2 - Path and Full Name
#1 Excel tutorial on the net Excel Introduction Basics Functions Data Analysis VBA 300 Examples Ask us
The Path property in Excel VBA returns the complete, saved path to the workbook (Excel file). The FullName
property in Excel VBA returns the complete, saved path, including the name of the workbook. Chapter < >
Download pathfullname.xls and add it to "C:\test\" Workbook and Worksheet Object
Place a command button on your worksheet and add the following code lines:
1. The following code line returns the complete path to pathfullname.xls. Learn more, it's easy
MsgBox Workbooks("pathfullname.xls").Path
Path and FullName
Sales Calculator
Files in a Directory
Import Sheets
Programming Charts
2. The following code line returns the complete path, including the name of the active workbook.
For a practical example of the FullName property, see our example program Create a Footer Before Printing.
EXCEL EASY • FREE EXCEL HELP • COPYRIGHT (C) 20102017 • ALL RIGHTS RESERVED
MICROSOFT EXCEL TUTORIAL | HOW TO USE VBA | EXCEL FORMULAS | DROPDOWN LIST