View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default how to add column with the workbook-filename

Public Function ShowName()
Application.Volatile
ShowName = ThisWorkbook.Name
End Function

or use ThisWorkbook.FullName

Then in a cell

=ShowName()

--
Regards,
Tom Ogilvy


"juergenkemeter"
wrote in
message news:juergenkemeter.21jzna_1137122407.212@excelfor um-nospam.com...

Hi,
how can I add a column 'filename', which displays the workbook name in
it, using VBA?

cheers
juergen


--
juergenkemeter
------------------------------------------------------------------------
juergenkemeter's Profile:

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