Get sheet name given a cell

O

Otto Moehrbach

Excel 2003, WinXP
I need some help to help an OP.
Programmatically:
I setup an array of sheet names.
I group all the sheets in the array.
I activate one sheet and select one column.
I use Find to find a cell entry.
It is found and I set it to FoundCell.
Question:
How do I get the sheet name where FoundCell resides?
Thanks for your help. Otto
 
J

Juan Pablo González

Try with

MsgBox FoundCell.Worksheet.Name

or

MsgBox FoundCell.Parent.Name
 
B

Bob Phillips

Otto,

How about

Foundcell.Parent.Name

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
A

A.W.J. Ales

Otto,

Not sure. Not tested : FoundCell.Parent.Name

--
Regards,
Auk Ales

* Please reply to this newsgroup only *
* I will not react on unsolicited e-mails *
 
Top