Gettin File name in macro

R

redf1re

Hi... is it possible by macro to know its file name??? something like
variable receaving "teste.xls" as valu
 
D

Dave Peterson

You can get it via:

activeworkbook.name
activeworkbook.fullname
and maybe you'd want
activeworkbook.path

..fullname will include the path. .Path will just give the path.

But both .name and .fullname will include any extension (if the file was saved
with an extension).
 
Top