Solved

Is there an Excel function to display the active workbook name in a cell ?

Posted on 2014-11-12
8
91 Views
Last Modified: 2014-11-12
Hi All,

Is there an Excel function I can use to display the name of the workbook currently open. Or can this only be done in VBA ?

Thanks
T
0
Comment
Question by:Tocogroup
  • 3
  • 3
  • 2
8 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 40436979
=CELL("filename"; A2)
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 40436982
more details on the CELL function:
http://office.microsoft.com/en-001/excel-help/cell-function-HP010062392.aspx

note: as long as the workbook was not saved, this function will return empty
0
 
LVL 18

Expert Comment

by:krishnakrkc
ID: 40436997
Define WorkbookName

RefersTo: =GET.DOCUMENT(88)

in A1

=WorkbookName

It'll give you even if the workbook is not saved.

Kris
0
 

Author Comment

by:Tocogroup
ID: 40437000
Thanks Guy. It's almost what I want, except I don't want the full file path. Only the filename. Is this possible ?
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 18

Expert Comment

by:krishnakrkc
ID: 40437008
Read the sentence as "It'll give you the workbook name even if the workbook is not saved."

Somehow I couldn't edit my post.
0
 

Author Comment

by:Tocogroup
ID: 40437012
Kris

Here's the define...

Screenshot of the define details for WorkbookName
But I'm getting a #NAME? error in the cell.
0
 
LVL 18

Accepted Solution

by:
krishnakrkc earned 500 total points
ID: 40437055
The error #NAME? means, you are writing the name wrongly in the cell.
0
 

Author Closing Comment

by:Tocogroup
ID: 40437080
Whoops ! Yep you were right. Thanks for that. Works great.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now