Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Does excel worksheet have unique ID?


I writing special addin for excel, that can insert some controls into
worksheet cells.
I can identificate control by cell andress,SheetName and Workbook
name..
But in case two workbooks have identical names and worksheets have
identical names too i have a problem..
The question is: is it possible to know unique id of
workbook(worksheet)?


Thank you.
Sorry for my english..
Valentin Kovalski.


--
valk
------------------------------------------------------------------------
valk's Profile: http://www.excelforum.com/member.php...o&userid=23881
View this thread: http://www.excelforum.com/showthread...hreadid=375185

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Does excel worksheet have unique ID?

No, there is no UID as such. They have an index, but that is only relative
to the workbook.

If you need such a thing, you will need to build it.

--
HTH

Bob Phillips

"valk" wrote in message
...

I writing special addin for excel, that can insert some controls into
worksheet cells.
I can identificate control by cell andress,SheetName and Workbook
name..
But in case two workbooks have identical names and worksheets have
identical names too i have a problem..
The question is: is it possible to know unique id of
workbook(worksheet)?


Thank you.
Sorry for my english..
Valentin Kovalski.


--
valk
------------------------------------------------------------------------
valk's Profile:

http://www.excelforum.com/member.php...o&userid=23881
View this thread: http://www.excelforum.com/showthread...hreadid=375185



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 121
Default Does excel worksheet have unique ID?

A single instance of Excel does not let you open two worksheets with the
same name, so no issue. If you had two instances of Excel open, they
couldn't refer to one another without some fancy API code I suspect, so no
issue either.


"valk" wrote in message
...

I writing special addin for excel, that can insert some controls into
worksheet cells.
I can identificate control by cell andress,SheetName and Workbook
name..
But in case two workbooks have identical names and worksheets have
identical names too i have a problem..
The question is: is it possible to know unique id of
workbook(worksheet)?


Thank you.
Sorry for my english..
Valentin Kovalski.


--
valk
------------------------------------------------------------------------
valk's Profile:
http://www.excelforum.com/member.php...o&userid=23881
View this thread: http://www.excelforum.com/showthread...hreadid=375185



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Does excel worksheet have unique ID?

I believe you mean workbooks rather than worksheets.

For the OP, Just to summarize:

A single instance of Excel will not permit two workbooks to be open that
have identical names.

Likewise, within a single workbook, you can not have two sheets with
identical names. You can have duplicate sheet names within open workbooks,
however. Both workbookA and WorkbookB can have a sheet named Sheet1.
However, the full reference (not name) to the sheet would include the
workbook, so there would be no confusion.

--
Regards,
Tom Ogilvy

"William Benson" wrote in message
...
A single instance of Excel does not let you open two worksheets with the
same name, so no issue. If you had two instances of Excel open, they
couldn't refer to one another without some fancy API code I suspect, so no
issue either.


"valk" wrote in

message
...

I writing special addin for excel, that can insert some controls into
worksheet cells.
I can identificate control by cell andress,SheetName and Workbook
name..
But in case two workbooks have identical names and worksheets have
identical names too i have a problem..
The question is: is it possible to know unique id of
workbook(worksheet)?


Thank you.
Sorry for my english..
Valentin Kovalski.


--
valk
------------------------------------------------------------------------
valk's Profile:
http://www.excelforum.com/member.php...o&userid=23881
View this thread:

http://www.excelforum.com/showthread...hreadid=375185





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Does excel worksheet have unique ID?


Thanks a lot, but my problem was in another place :

--
val
-----------------------------------------------------------------------
valk's Profile: http://www.excelforum.com/member.php...fo&userid=2388
View this thread: http://www.excelforum.com/showthread.php?threadid=37518



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 121
Default Does excel worksheet have unique ID?

We've all been in that "other place" at one time or another in our
lives..........

:-)



"valk" wrote in message
...

Thanks a lot, but my problem was in another place :)


--
valk
------------------------------------------------------------------------
valk's Profile:
http://www.excelforum.com/member.php...o&userid=23881
View this thread: http://www.excelforum.com/showthread...hreadid=375185



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 121
Default Does excel worksheet have unique ID?

Yep, meant workbooks ... all niter.

B.
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Does excel worksheet have unique ID?


Yes, worksheets have unique ids, as well as unique names. You cannot
have two sheets with the same name.

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=375185

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
Insert Row and Corresponding Unique Worksheet David Excel Worksheet Functions 5 May 10th 07 11:30 AM
I need a unique number to be created per worksheet Roy Tamir Excel Discussion (Misc queries) 2 April 21st 06 01:40 PM
listing unique entries from the entire worksheet markx Excel Worksheet Functions 3 February 15th 06 01:11 PM
Copy Unique data to a different worksheet Sdbenn90 Excel Discussion (Misc queries) 2 December 30th 05 08:03 PM
using macro to save worksheet with unique file name Noell Excel Programming 3 October 15th 03 10:24 PM


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