Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Tagging an excel workbook

My requirement is to uniquely identify any excel workbook across the network,
which leads me to a requirement of tagging the document.

Possible solutions a-
1. using filename (not useful, since it can be changed)
2. using path (not useful, since file could be copied or moved)
3. using documentProperties (This solves my prob to a large extent, first it
is persistent and associated with the workbook. The only problem is that
users could see the DocumentProperty in custom tab and change the value.)

Is there any way to hide the Documentproperty or another feasible way to tag
an excel workbook.

Thanks,
Rahul
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Tagging an excel workbook

Use a hidden name

Sub SetName()
ActiveWorkbook.Names.Add Name:="__WBTag", RefersTo:="some_value"
End Sub


Sub GetName()
MsgBox Evaluate(ActiveWorkbook.Names("__WBTag").RefersTo)
End Sub


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"rahul" wrote in message
...
My requirement is to uniquely identify any excel workbook across the

network,
which leads me to a requirement of tagging the document.

Possible solutions a-
1. using filename (not useful, since it can be changed)
2. using path (not useful, since file could be copied or moved)
3. using documentProperties (This solves my prob to a large extent, first

it
is persistent and associated with the workbook. The only problem is that
users could see the DocumentProperty in custom tab and change the value.)

Is there any way to hide the Documentproperty or another feasible way to

tag
an excel workbook.

Thanks,
Rahul



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 318
Default Tagging an excel workbook

The method suggested by Bob is a good one.
You can also create a very hidden worksheet in each workbook and save any
information whatsoever on it. The users do not see the very hidden worksheets
in the hidden list and hence cannot unhide it.

"rahul" wrote:

My requirement is to uniquely identify any excel workbook across the network,
which leads me to a requirement of tagging the document.

Possible solutions a-
1. using filename (not useful, since it can be changed)
2. using path (not useful, since file could be copied or moved)
3. using documentProperties (This solves my prob to a large extent, first it
is persistent and associated with the workbook. The only problem is that
users could see the DocumentProperty in custom tab and change the value.)

Is there any way to hide the Documentproperty or another feasible way to tag
an excel workbook.

Thanks,
Rahul

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Tagging an excel workbook

Thanks Bob. But,
I forgot to mention that the mention should be generic enough to be used in
Word and Excel.

Also another query, if a DocumentProperty could be changed by any user
through the custom tab or only the power users?

"Bob Phillips" wrote:

Use a hidden name

Sub SetName()
ActiveWorkbook.Names.Add Name:="__WBTag", RefersTo:="some_value"
End Sub


Sub GetName()
MsgBox Evaluate(ActiveWorkbook.Names("__WBTag").RefersTo)
End Sub


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"rahul" wrote in message
...
My requirement is to uniquely identify any excel workbook across the

network,
which leads me to a requirement of tagging the document.

Possible solutions a-
1. using filename (not useful, since it can be changed)
2. using path (not useful, since file could be copied or moved)
3. using documentProperties (This solves my prob to a large extent, first

it
is persistent and associated with the workbook. The only problem is that
users could see the DocumentProperty in custom tab and change the value.)

Is there any way to hide the Documentproperty or another feasible way to

tag
an excel workbook.

Thanks,
Rahul




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 415
Default Tagging an excel workbook

Bob's solution will mean you will have to open the file to check that value.
If you will always be on systems that use NTFS, there is also Alternate Data
Stream. You can attached various data to files and it follows the file in a
not readily visible way.
I would not necessarily recommend using this method, but it's available, if
your Admin has not disabled it somehow. Make sure the you understand the
potential hazards.
http://www.personalinformationorgani...download/ntfs/

If using CustomDocumentProperties, you gave each prop a suitably obscure
name, any user that changed it/them, would be just guessing, determined to
cause trouble. Unfortunately, your code would have no way to know.

NickHK

"rahul" ...
My requirement is to uniquely identify any excel workbook across the
network,
which leads me to a requirement of tagging the document.

Possible solutions a-
1. using filename (not useful, since it can be changed)
2. using path (not useful, since file could be copied or moved)
3. using documentProperties (This solves my prob to a large extent, first
it
is persistent and associated with the workbook. The only problem is that
users could see the DocumentProperty in custom tab and change the value.)

Is there any way to hide the Documentproperty or another feasible way to
tag
an excel workbook.

Thanks,
Rahul



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
tagging HS[_2_] New Users to Excel 3 June 9th 09 06:53 PM
Tagging a column stub1toe Excel Worksheet Functions 5 May 14th 06 07:27 PM
tagging info stub1toe Excel Worksheet Functions 0 May 14th 06 02:56 PM
mass tagging with excel? p2chang Excel Discussion (Misc queries) 1 January 23rd 06 02:45 PM
Tagging a Cell Syed Zeeshan Haider[_5_] Excel Programming 4 April 10th 04 12:50 PM


All times are GMT +1. The time now is 10:28 AM.

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"