#1   Report Post  
Posted to microsoft.public.excel.misc
Marcelo
 
Posts: n/a
Default Application.Caller

Hi all,

I am trying to use this Chip Person function, it doesn't work, if I use
=thissheetname()

Function ThisSheetName() As String
Application.Volatile True
ThisSheetName = Application.Caller.Parent.Name
End Function

who knows why?

regards from Brazil - going to the 6th *
Marcelo


  #2   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default Application.Caller

Works by me!

I entered =ThisSheetName() in a cell, it returned Feuil1, which is exact.

HTH
--
AP

"Marcelo" a écrit dans le message de
news: ...
Hi all,

I am trying to use this Chip Person function, it doesn't work, if I use
=thissheetname()

Function ThisSheetName() As String
Application.Volatile True
ThisSheetName = Application.Caller.Parent.Name
End Function

who knows why?

regards from Brazil - going to the 6th *
Marcelo




  #3   Report Post  
Posted to microsoft.public.excel.misc
Marcelo
 
Posts: n/a
Default Application.Caller

Hi Ardus, its return #name? here.

did you paste the code in a Module or in a class Module

regards
Marcelo



"Ardus Petus" escreveu:

Works by me!

I entered =ThisSheetName() in a cell, it returned Feuil1, which is exact.

HTH
--
AP

"Marcelo" a écrit dans le message de
news: ...
Hi all,

I am trying to use this Chip Person function, it doesn't work, if I use
=thissheetname()

Function ThisSheetName() As String
Application.Volatile True
ThisSheetName = Application.Caller.Parent.Name
End Function

who knows why?

regards from Brazil - going to the 6th *
Marcelo





  #5   Report Post  
Posted to microsoft.public.excel.misc
Vincnet.
 
Posts: n/a
Default Application.Caller

Hi!
Just a comment: why use a macro when you have formula to do the job?
When needed, I use the following one:
=RIGHT(CELL("filename",A2),LEN(CELL("filename",A2) )-FIND("]",CELL("filename",A2)))

--
KR

V.


"Marcelo" wrote:

Hi all,

I am trying to use this Chip Person function, it doesn't work, if I use
=thissheetname()

Function ThisSheetName() As String
Application.Volatile True
ThisSheetName = Application.Caller.Parent.Name
End Function

who knows why?

regards from Brazil - going to the 6th *
Marcelo




  #7   Report Post  
Posted to microsoft.public.excel.misc
Marcelo
 
Posts: n/a
Default Application.Caller

thanks Ardus, it's works

regards from Brazil

"Ardus Petus" escreveu:

I did not actually enter the formula, but used the function wizard.

enter:
=[PERSONAL.XLS].ThisSheetName()

HTH
--
AP

"Ardus Petus" a écrit dans le message de news:
...
I pasted it in a standard module.

Cheers,
--
AP

"Marcelo" a écrit dans le message de
news: ...
Hi Ardus, its return #name? here.

did you paste the code in a Module or in a class Module

regards
Marcelo



"Ardus Petus" escreveu:

Works by me!

I entered =ThisSheetName() in a cell, it returned Feuil1, which is
exact.

HTH
--
AP

"Marcelo" a écrit dans le message de
news:
...
Hi all,

I am trying to use this Chip Person function, it doesn't work, if I
use
=thissheetname()

Function ThisSheetName() As String
Application.Volatile True
ThisSheetName = Application.Caller.Parent.Name
End Function

who knows why?

regards from Brazil - going to the 6th *
Marcelo










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
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
dropdown value from range in other sheet mango Excel Worksheet Functions 11 December 2nd 04 03:19 AM


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