View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Jim at SDSU Jim at SDSU is offline
external usenet poster
 
Posts: 7
Default Filename as Data

That's "almost" it. Works if I save as an XLS first, but never gives a value
if it remains a text file. "cell (filename) " would work except it is the
full path instead of just the file name. I was hoping there was a VB function
that just says "insert the filename without the extension as text here"
I do appreciate your time though.


"Tom Ogilvy" wrote:

Range("B1").Value = left(activeworkbook.Name,len(ActiveWorkbook.name)-4)