Return sheet name from an address range

  • Thread starter Thread starter avi
  • Start date Start date
A

avi

Hello,

I'm looking for a VBA function that returns the sheet name from a full
address of an excel range.

I am looking at a different solution than ...Range(name).Worksheet as
it seems not recognized in VB6

Please help
Avi
 
Hi Avi,

Try:

Dim sStr As String

sStr = Range("MyRange").Parent.Name
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top