Thanks for the advice everyone.
The 'security' reasons I was referring too are..... the files sit in a
directory only accessible by 3 users, due to confidentially reasons.
During year-end all of the linked spreadsheets (except the confidential
ones) are temporarily moved to ANOTHER location on the server so that
10+ users have access to it. Once year-end is over, the files are moved
back.
Sounds a little silly, I know.
Anyway... if anyone has other ideas, please let me know.
Thanks again!
> Frank G wrote...
> ...
[quoted text clipped - 26 lines]
> method of the Workbook class, basically automating what your users have
> to do now.
Frank G wrote...
...
>The 'security' reasons I was referring too are..... the files sit in a
>directory only accessible by 3 users, due to confidentially reasons.
Denote that directory A.
>During year-end all of the linked spreadsheets (except the confidential
>ones) are temporarily moved to ANOTHER location on the server so that
>10+ users have access to it. Once year-end is over, the files are moved
>back.
Denote that directory B.
Moved or copied? If moved, would the year-end users of the files in B
be making any changes to the files originally from A? Would the primary
users of the files in A be making any changes to the files while
they're in B? In either case pathnames would be a fairly minor concern
compared to coordinated usage.
If no users would be making changes to the files while they're in B,
then you could make COPIES of the files from A in B and furthermore
convert ALL formulas to values. Then none of these files would have any
links between them in B.
If your open to file system trickery, and if your file server is
running Windows NT4 or later, any Unix/Linux/BSD variant or Mac OS X
or later, you could use a port of the ln command (comes as part of
Unix/Linux/BSD and Mac OS X; for Windows, you could download and
install the GnuWin32 CoreUtils package, available at
http://gnuwin32.sourceforge.net/downlinks/coreutils.php
which provides a ln command for Windows). This command can create
so-called hard links in multiple directories in the same logical disk
partition to the same file in that disk partition. To explain,
directories are a special type of file stored on disk. They contain
filenames, attributes for those files and POINTERS to the location of
the files on disk. Hard links allow file entries in different
directories to point to the same location on disk.
If your year-end users only need READ-ONLY access to the files in A,
and if they have READ-ONLY or greater access to the file server volume
(aka share) that contains A, then during year-end processing you could
create hard links to these files in another directory in that volume,
and your year-end users could access the files in that alternative
directory. Further, you could grant year-end users READ-ONLY permission
to the files during year-end processing then remove all permission for
the rest of the year. You wouldn't even need to remove the hard links;
revoking all permissions for these files from the year-end-only users
would effectively make the files invisible to them (though still
possible to confirm their existence, but not able to read, modify,
rename or delete).
Harlan Grove - 11 Jan 2007 01:33 GMT
Harlan Grove wrote...
...
>If your year-end users only need READ-ONLY access to the files in A,
>and if they have READ-ONLY or greater access to the file server volume
>(aka share) that contains A, then during year-end processing you could
>create hard links to these files in another directory in that volume,
>and your year-end users could access the files in that alternative
>directory. . . .
...
Just checked. All users would need to have just READ-ONLY access to
these files during year-end processing for hard links to work. This is
due to how Excel saves workbooks, saving as a new, temporary file
first, and if successful deleting the original file (with hard links,
that only removes the entry from the directory from which the file was
opened - if there were other links to the file, those links and the
file on disk would still remain) and renaming the temporary file with
the original file's name.