Excel 2002: How to reveal path of an open file ?

M

Mr. Low

Hi,

I have a working file and would like the file path ( file name and directory
) show at cell A1.

May I know what formula or keyborad short cut I must enter ?

Thanks

Low
 
G

Gord Dibben

One method.

Sub NameinCell()
Range("A1").Value = ActiveWorkbook.FullName
End Sub

Another using a formula

=LEFT(CELL("filename",A1),FIND("]",CELL("filename",A1)))

NOTE: enter as is..........do not substitute your filename.


Gord Dibben MS Excel MVP
 
M

Mr. Low

Hi Gord,

Thanks for your help.

Best Regards

Low


--
A36B58K641


Gord Dibben said:
One method.

Sub NameinCell()
Range("A1").Value = ActiveWorkbook.FullName
End Sub

Another using a formula

=LEFT(CELL("filename",A1),FIND("]",CELL("filename",A1)))

NOTE: enter as is..........do not substitute your filename.


Gord Dibben MS Excel MVP

Hi,

I have a working file and would like the file path ( file name and directory
) show at cell A1.

May I know what formula or keyborad short cut I must enter ?

Thanks

Low
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top