![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 1
|
does anyone know if there is a function that will display the path to the workbook you are using in a cell? I'm using excel 97. Thank you.
Simp |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Posts: 175
|
hi simp,
try =CELL("filename",A1), where A1 is any cell in the book. this will give you the path, name of book and name of sheet, which you can crop using the LEFT and RIGHT functions. rgds mike |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
or =INFO("directory") will just give you the path
(no filename or sheetname) I seem to remember it may give you problems with network drive mappings, but see if this works as you'd want it
__________________
:: Pharma Z - Family drugstore :: |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|