LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Refering to Codenames in Remote Workbooks

I'm thinking about the resources that are used when you do things in the VBE
programmatically. The Extensibility one? I've since tested this and I've
got what I need. I like your way much better than mine!

Thanks,
Barb Reinhardt




"Bob Phillips" wrote:

What are you thinking about Barb?

--
__________________________________
HTH

Bob

"Barb Reinhardt" wrote in message
...
Bob,

I suspect that additional resources need to be selected. Let me know if
I'm
wrong.

Thanks,
Barb Reinhardt




"Nigel RS" wrote:

Thanks Bob, I will give it a try

"Bob Phillips" wrote:

What you can do is get the worksheet name from the codename and use
that.
For example

With Workbooks("Some other workbook.xls")
Set sh =
..Worksheets(CStr(.VBProject.VBComponents("sheet_c odename").Properties("Name")))
MsgBox sh.Name
End With


--
__________________________________
HTH

Bob

"Nigel RS" wrote in message
...
I have an application that create a number of separate workbooks,
identicai
in format.. Each workbook has a series of worksheets, each having a
codename.

I now have master workbook that opens each of the above in turn. I
wish
to
refer to the worksheets by their codename, but my master application
fails
to
compile as the codename is not recognised.

Is there a way around this? I do not wish to refer to the remote
worksheets
by name as these may have changed.

Cheers








 
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
refering to other workbooks cjbarron5 Excel Discussion (Misc queries) 2 June 2nd 08 08:17 PM
Sheet CodeNames Karen53 Excel Programming 7 September 13th 07 05:26 PM
codenames [email protected] Excel Programming 2 October 19th 06 08:44 PM
Codenames Bill[_30_] Excel Programming 3 September 8th 06 06:59 PM
using variables in codenames [email protected] Excel Programming 1 April 28th 06 11:30 PM


All times are GMT +1. The time now is 11:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"