Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default setting permissions programatically

Hello,

I am working on a project in which we need to set the permissions of the
target Excel file so that the user has exclusive editing permission (locks
out others to read-only permission). Since the target file could be any
number of files, we want to set this permission when the application begins
to open the target Excel file. Is this permission set at the Excel level or
the OS level? How would I go about setting this? The version of Excel we
are using is 2003, and win xp is the OS. Any help is greatly appreciated!
--
Regards,

Kevin
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default setting permissions programatically

If you open the workbook on a shared drive, the first person to open it
should have exclusive editing permission as long as you have not shared the
workbook under the tools menu.

--
Regards,
Tom Ogilvy


"Kevin H" wrote:

Hello,

I am working on a project in which we need to set the permissions of the
target Excel file so that the user has exclusive editing permission (locks
out others to read-only permission). Since the target file could be any
number of files, we want to set this permission when the application begins
to open the target Excel file. Is this permission set at the Excel level or
the OS level? How would I go about setting this? The version of Excel we
are using is 2003, and win xp is the OS. Any help is greatly appreciated!
--
Regards,

Kevin

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default setting permissions programatically

Thank you. That does help. Is there a way that I can check to see if the
workbook has the shared setting=true and if so, set it to false
programatically ( exclusive editing permission) while we are working with it?
I just want to code for any possible scenario.
--
Regards,

Kevin


"Tom Ogilvy" wrote:

If you open the workbook on a shared drive, the first person to open it
should have exclusive editing permission as long as you have not shared the
workbook under the tools menu.

--
Regards,
Tom Ogilvy


"Kevin H" wrote:

Hello,

I am working on a project in which we need to set the permissions of the
target Excel file so that the user has exclusive editing permission (locks
out others to read-only permission). Since the target file could be any
number of files, we want to set this permission when the application begins
to open the target Excel file. Is this permission set at the Excel level or
the OS level? How would I go about setting this? The version of Excel we
are using is 2003, and win xp is the OS. Any help is greatly appreciated!
--
Regards,

Kevin

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default setting permissions programatically

Ivan Moala has a solution to checking if a file is open on a network or not,
an API method and a VBA method he
http://www.xcelfiles.com/IsFileOpen.html

HTH

--
Regards,
Zack Barresse, aka firefytr
To email, remove NOSPAM


"Kevin H" wrote in message
...
Thank you. That does help. Is there a way that I can check to see if the
workbook has the shared setting=true and if so, set it to false
programatically ( exclusive editing permission) while we are working with
it?
I just want to code for any possible scenario.
--
Regards,

Kevin


"Tom Ogilvy" wrote:

If you open the workbook on a shared drive, the first person to open it
should have exclusive editing permission as long as you have not shared
the
workbook under the tools menu.

--
Regards,
Tom Ogilvy


"Kevin H" wrote:

Hello,

I am working on a project in which we need to set the permissions of
the
target Excel file so that the user has exclusive editing permission
(locks
out others to read-only permission). Since the target file could be
any
number of files, we want to set this permission when the application
begins
to open the target Excel file. Is this permission set at the Excel
level or
the OS level? How would I go about setting this? The version of Excel
we
are using is 2003, and win xp is the OS. Any help is greatly
appreciated!
--
Regards,

Kevin



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default setting permissions programatically

Excellent. Thanks again!
--
Regards,

Kevin


"Zack Barresse" wrote:

Ivan Moala has a solution to checking if a file is open on a network or not,
an API method and a VBA method he
http://www.xcelfiles.com/IsFileOpen.html

HTH

--
Regards,
Zack Barresse, aka firefytr
To email, remove NOSPAM


"Kevin H" wrote in message
...
Thank you. That does help. Is there a way that I can check to see if the
workbook has the shared setting=true and if so, set it to false
programatically ( exclusive editing permission) while we are working with
it?
I just want to code for any possible scenario.
--
Regards,

Kevin


"Tom Ogilvy" wrote:

If you open the workbook on a shared drive, the first person to open it
should have exclusive editing permission as long as you have not shared
the
workbook under the tools menu.

--
Regards,
Tom Ogilvy


"Kevin H" wrote:

Hello,

I am working on a project in which we need to set the permissions of
the
target Excel file so that the user has exclusive editing permission
(locks
out others to read-only permission). Since the target file could be
any
number of files, we want to set this permission when the application
begins
to open the target Excel file. Is this permission set at the Excel
level or
the OS level? How would I go about setting this? The version of Excel
we
are using is 2003, and win xp is the OS. Any help is greatly
appreciated!
--
Regards,

Kevin






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default setting permissions programatically

Zack,
Have you ever tested that code on a shared workbook? With multiple people
using it? Just curious.

--
Regards,
Tom Ogilvy


"Zack Barresse" wrote:

Ivan Moala has a solution to checking if a file is open on a network or not,
an API method and a VBA method he
http://www.xcelfiles.com/IsFileOpen.html

HTH

--
Regards,
Zack Barresse, aka firefytr
To email, remove NOSPAM


"Kevin H" wrote in message
...
Thank you. That does help. Is there a way that I can check to see if the
workbook has the shared setting=true and if so, set it to false
programatically ( exclusive editing permission) while we are working with
it?
I just want to code for any possible scenario.
--
Regards,

Kevin


"Tom Ogilvy" wrote:

If you open the workbook on a shared drive, the first person to open it
should have exclusive editing permission as long as you have not shared
the
workbook under the tools menu.

--
Regards,
Tom Ogilvy


"Kevin H" wrote:

Hello,

I am working on a project in which we need to set the permissions of
the
target Excel file so that the user has exclusive editing permission
(locks
out others to read-only permission). Since the target file could be
any
number of files, we want to set this permission when the application
begins
to open the target Excel file. Is this permission set at the Excel
level or
the OS level? How would I go about setting this? The version of Excel
we
are using is 2003, and win xp is the OS. Any help is greatly
appreciated!
--
Regards,

Kevin




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default setting permissions programatically

Hi Tom,

I briefly tested parts of it, and it seemed to work as advertised. Although
I haven't tested extensively.

--
Regards,
Zack Barresse, aka firefytr
To email, remove NOSPAM


"Tom Ogilvy" wrote in message
...
Zack,
Have you ever tested that code on a shared workbook? With multiple people
using it? Just curious.

--
Regards,
Tom Ogilvy


"Zack Barresse" wrote:

Ivan Moala has a solution to checking if a file is open on a network or
not,
an API method and a VBA method he
http://www.xcelfiles.com/IsFileOpen.html

HTH

--
Regards,
Zack Barresse, aka firefytr
To email, remove NOSPAM


"Kevin H" wrote in message
...
Thank you. That does help. Is there a way that I can check to see if
the
workbook has the shared setting=true and if so, set it to false
programatically ( exclusive editing permission) while we are working
with
it?
I just want to code for any possible scenario.
--
Regards,

Kevin


"Tom Ogilvy" wrote:

If you open the workbook on a shared drive, the first person to open
it
should have exclusive editing permission as long as you have not
shared
the
workbook under the tools menu.

--
Regards,
Tom Ogilvy


"Kevin H" wrote:

Hello,

I am working on a project in which we need to set the permissions of
the
target Excel file so that the user has exclusive editing permission
(locks
out others to read-only permission). Since the target file could be
any
number of files, we want to set this permission when the application
begins
to open the target Excel file. Is this permission set at the Excel
level or
the OS level? How would I go about setting this? The version of
Excel
we
are using is 2003, and win xp is the OS. Any help is greatly
appreciated!
--
Regards,

Kevin






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
Setting up Permissions or Security selection spreadsheet blueegypt Excel Discussion (Misc queries) 0 April 20th 06 04:54 PM
Setting read only permissions NATE Excel Discussion (Misc queries) 1 March 22nd 06 08:58 PM
setting minumumScale of an axis programatically cengavermuzo Excel Programming 0 July 22nd 05 08:12 AM
Setting sheet.xlt for a workbook programatically trooper665 Excel Programming 2 June 17th 05 09:19 PM
Setting Up Workbook Permissions Phil Hageman[_3_] Excel Programming 3 May 25th 04 09:01 PM


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