Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Function FName()
FName = ActiveWorkbook.Name End Function This returns the filename.xls. Can I add a left function to this to remove the .xls? I can do it within a cell, but not sure how to edit the function to do it. Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Steph,
Dim fname As String fname = ActiveWorkbook.Name fname = Left(fname, Len(fname) - 4) MsgBox fname --- Regards, Norman "Steph" wrote in message ... Function FName() FName = ActiveWorkbook.Name End Function This returns the filename.xls. Can I add a left function to this to remove the .xls? I can do it within a cell, but not sure how to edit the function to do it. Thanks! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you!
"Norman Jones" wrote in message ... Hi Steph, Dim fname As String fname = ActiveWorkbook.Name fname = Left(fname, Len(fname) - 4) MsgBox fname --- Regards, Norman "Steph" wrote in message ... Function FName() FName = ActiveWorkbook.Name End Function This returns the filename.xls. Can I add a left function to this to remove the .xls? I can do it within a cell, but not sure how to edit the function to do it. Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Function to insert current filename into worksheet? | Excel Worksheet Functions | |||
set filename to <filename-date on open | Excel Worksheet Functions | |||
how get filename with worksheet function? | Excel Worksheet Functions | |||
Function to return filepath given full filename | Excel Programming | |||
Saving filename same as import filename | Excel Programming |