Thread: Workbook name
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_7_] Bob Phillips[_7_] is offline
external usenet poster
 
Posts: 1,120
Default Workbook name

I would use InstrRev, some people (I do :-)) put dots in their filenames

Left(ActiveWorkbook.Name, InStrRev(ActiveWorkbook.Name, ".") - 1)

--
HTH

Bob Phillips

"Rich_z" wrote in
message ...

Left(ActiveWorkbook.Name, Instr(ActiveWorkbook.Name,".")-1) will give
you what you are looking for.


--
Rich_z
------------------------------------------------------------------------
Rich_z's Profile:

http://www.excelforum.com/member.php...o&userid=24737
View this thread: http://www.excelforum.com/showthread...hreadid=386137