Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2007

Tip: Looking for answers? Try searching our database.

Duplicate Range names

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim - 20 Jun 2007 23:19 GMT
Suppose I have Sheet1 containing a named range, "Something".  If I copy to a
new sheet (Edit | Move or Copy Sheet), the new sheet also contains
"Something", and I can reference either one (Sheet1.Something or
Sheet2.Something).  So far so good.

Now, I need to programmatically create multiple sheets, each of which
contains "Something".  How would I define Something on each sheet?

TIA,
Jim
Bob Phillips - 21 Jun 2007 08:12 GMT
With Worksheets("sheetname")
   .Range("A1:A10").Name = "'" & .Name & "'!Something"
End With

Signature

HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> Suppose I have Sheet1 containing a named range, "Something".  If I copy to
> a new sheet (Edit | Move or Copy Sheet), the new sheet also contains
[quoted text clipped - 6 lines]
> TIA,
> Jim
Jim - 21 Jun 2007 21:06 GMT
Works great.  Thanks.

> With Worksheets("sheetname")
>    .Range("A1:A10").Name = "'" & .Name & "'!Something"
[quoted text clipped - 10 lines]
>> TIA,
>> Jim
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.