A resource for users and developers of Microsoft Excel |
|||||||||
| Email us your FAQ suggestion. |
|||||||||
Visit often ! Pages are updated daily. |
|||||||||
This is the Excel "How to" Frequently Asked Questions page |
|||||||||
Answers to Frequently Asked Questions about how to do common tasks in Microsoft Excel. |
|||||||||
Excel "How to" FAQs |
| How to display the workbook's path and name (example, "C:\Your\Folder\Path\YourWorkbookName.xls") in a cell? |
| Formula | =SUBSTITUTE(LEFT(CELL("filename",A1),FIND("]",CELL("filename",A1))-1),"[","") With square brackets surrounding the file name, |
Notes: Workbook must be named (saved at least once) beforehand. The formula can be entered into any cell, including cell A1. |
| UDF | Function FullNameWB() As String UDF formula entry: |
Notes: Workbook does NOT need to be named or saved beforehand. The UDF formula can be entered into any cell. |
| Macro | Sub FullNameActiveWB() ActiveCell.Value = ActiveWorkbook.FullName End Sub |
Note: Workbook does NOT need to be named or saved beforehand. |