From: ch on
Hi Tom,

How can we return a workbook's file name with and without extension?

Thanks in advance.

From: Rick Rothstein on
Is this what you want?


With Extension:
=============================
ThisWorkbook.Name


Without Extension
=============================
Left(ThisWorkbook.Name, InStrRev(ThisWorkbook.Name, ".") - 1)


--
Rick (MVP - Excel)


"ch" <ch(a)discussions.microsoft.com> wrote in message
news:00AC3198-ECC9-41F2-B99C-3EC177BAF601(a)microsoft.com...
> Hi Tom,
>
> How can we return a workbook's file name with and without extension?
>
> Thanks in advance.
>