Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 8
Default Insert File name in Excel File

Hi,

I have insert file name in my execl file by using below formula

=MID(CELL("filename"),SEARCH("[",CELL("filename"))+1,SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-24)

it is working nicely. But when i opening multiple file at a time, then all file name are showing same name-
like
(may file name) 571 RU__274880__S.SUHI-47
when i open another file like this file 572 CH__274880__S.SUHI-47 then all file name should be shown same name like 571 RU____ etc.

So, please help
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Insert File name in Excel File

Hi,

Am Mon, 8 Oct 2012 04:46:24 +0000 schrieb sk.shafiqul:

=MID(CELL("filename"),SEARCH("[",CELL("filename"))+1,SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-24)

it is working nicely. But when i opening multiple file at a time, then
all file name are showing same name-


you have to refer to your workbook. Try:
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("filename",A1))-FIND("[",CELL("filename",A1))-1)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Junior Member
 
Posts: 8
Default

Quote:
Originally Posted by Claus Busch View Post
Hi,

Am Mon, 8 Oct 2012 04:46:24 +0000 schrieb sk.shafiqul:

=MID(CELL("filename"),SEARCH("[",CELL("filename"))+1,SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-24)

it is working nicely. But when i opening multiple file at a time, then
all file name are showing same name-


you have to refer to your workbook. Try:
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("filename",A1))-FIND("[",CELL("filename",A1))-1)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
Hi,

Thanks for your support.
It working nicely.

Regards
Shafiq
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
how to insert row in a linked file through main file. Rafia Excel Programming 0 March 20th 07 05:01 AM
how to insert row in a linked file through main file. Rafia Excel Programming 0 March 20th 07 04:55 AM
Insert an excel file into the current open excel file MAECR Excel Discussion (Misc queries) 2 January 27th 07 06:56 PM
problem with insert Excel file in another Excel file Rao Ratan Singh New Users to Excel 1 January 11th 06 08:11 PM
Macro to insert values from a file and save another sheet as a .txt file Frank[_16_] Excel Programming 2 August 28th 03 01:07 AM


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