Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
avi avi is offline
external usenet poster
 
Posts: 195
Default Return sheet name from an address range

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Return sheet name from an address range

Hi Avi,

Try:

Dim sStr As String

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


---
Regards,
Norman


"avi" wrote in message
oups.com...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Return sheet name from an address range

Range(name).Worksheet.Name should work.

Hth,
Merjet


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
return cell address of longest text string in a range Dave F[_2_] Excel Discussion (Misc queries) 2 July 12th 07 03:41 PM
A function to find a phrase within a range of cells and return the address of the first instance. [email protected] Excel Programming 2 December 5th 06 07:02 PM
How to return the address of the range of plotted data on an XY scatter chart? Ken Johnson Charts and Charting in Excel 5 July 4th 06 12:40 PM
Return Range Address from Active Range ExcelMonkey Excel Programming 1 February 10th 06 12:00 PM
Formula to return ADDRESS of cell in range that meets criteria Christie Excel Worksheet Functions 1 March 4th 05 11:13 PM


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