Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
phica dk
 
Posts: n/a
Default Filename in a cell

How do I get only the filename of the active workbook into a cell.
The "CELL" function returns the name including the whole path.
  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Take a look he

Worksheet and Workbook names using the CELL() function:
http://www.mcgimpsey.com/excel/formu..._function.html


In article ,
"phica dk" <phica wrote:

How do I get only the filename of the active workbook into a cell.
The "CELL" function returns the name including the whole path.

  #4   Report Post  
anilsolipuram
 
Posts: n/a
Default


Public Function getfilepath()
getfilepath = ActiveWorkbook.Path & "\" & ActiveWorkbook.Name
End Function

create the the above function and call from your cell by using

formulae =getfilepath()


--
anilsolipuram
------------------------------------------------------------------------
anilsolipuram's Profile: http://www.excelforum.com/member.php...o&userid=16271
View this thread: http://www.excelforum.com/showthread...hreadid=313846

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
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
Addition to Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 9th 04 02:06 AM
name of another worksheet in cell for reference Tom A Johnson Excel Worksheet Functions 2 November 11th 04 11:28 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


All times are GMT +1. The time now is 07:31 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"