Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to add column with the workbook-filename


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

  #2   Report Post  
Posted to microsoft.public.excel.programming
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to add column with the workbook-filename


thanks!
Jürgen


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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
vba, get filename of this workbook md[_2_] Excel Discussion (Misc queries) 3 March 29th 08 12:04 PM
Workbook name in VBA doesn't match filename.xls JoeAdidas21 Excel Discussion (Misc queries) 5 November 16th 07 03:37 PM
Saving XLS workbook with set filename levertonfamily Excel Discussion (Misc queries) 0 November 16th 06 05:52 PM
activate a workbook without using its filename? Jon[_21_] Excel Programming 1 November 16th 05 03:15 PM
My workbook filename [email protected] Excel Programming 3 April 25th 05 03:55 PM


All times are GMT +1. The time now is 10:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"