Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.sharepoint.portalserver.development,microsoft.public.excel.programming,microsoft.public.office.developer.com.add_ins,microsoft.public.sharepoint.windowsservices.development
external usenet poster
 
Posts: 6
Default VSTO: Detecting Read Only status of workbook opened from Sharepoin

I am maintaining an Excel VSTO3 Excel Add-in.
The Excel workbooks are loaded from SharePoint.
When you click on a workbook on the SharePoint site you get the option for
"Read Only" or "Edit".
When "Read Only" selected you:
a) get the "[Read-Only]" in the Excel caption for the workbook
b) get a Save As dialog box when clicking the Save button
c) the workbook ReadOnly property is false

In the Add-in, how can I check whether the workbook is supposed to be read
only?
--
Many thanks,
Gary Varga
  #2   Report Post  
Posted to microsoft.public.sharepoint.portalserver.development,microsoft.public.excel.programming,microsoft.public.office.developer.com.add_ins,microsoft.public.sharepoint.windowsservices.development
external usenet poster
 
Posts: 5,600
Default Detecting Read Only status of workbook opened from Sharepoin

You can look at the ReadOnly property of the workbook

bReadOnly = wb.ReadOnly

Regards,
Peter T

"Gary Varga" wrote in message
...
I am maintaining an Excel VSTO3 Excel Add-in.
The Excel workbooks are loaded from SharePoint.
When you click on a workbook on the SharePoint site you get the option for
"Read Only" or "Edit".
When "Read Only" selected you:
a) get the "[Read-Only]" in the Excel caption for the workbook
b) get a Save As dialog box when clicking the Save button
c) the workbook ReadOnly property is false

In the Add-in, how can I check whether the workbook is supposed to be read
only?
--
Many thanks,
Gary Varga



  #3   Report Post  
Posted to microsoft.public.sharepoint.portalserver.development,microsoft.public.excel.programming,microsoft.public.office.developer.com.add_ins,microsoft.public.sharepoint.windowsservices.development
external usenet poster
 
Posts: 6
Default Detecting Read Only status of workbook opened from Sharepoin

I DO.

As stated in my original post:

c) the workbook ReadOnly property is false

Thanks anyway.
  #4   Report Post  
Posted to microsoft.public.sharepoint.portalserver.development,microsoft.public.excel.programming,microsoft.public.office.developer.com.add_ins,microsoft.public.sharepoint.windowsservices.development
external usenet poster
 
Posts: 5,600
Default Detecting Read Only status of workbook opened from Sharepoin

Apologies, I didn't read your post carefully.

Regards,
Peter T

"Gary Varga" wrote in message
...
I DO.

As stated in my original post:

c) the workbook ReadOnly property is false

Thanks anyway.



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
Programmatically determining if workbook is opened as Read Only Barb Reinhardt Excel Programming 5 July 10th 08 06:21 PM
Hide Custom Command Bar if Workbook opened Read-Only [email protected] Excel Programming 2 April 28th 08 06:55 PM
Not Detecting Open Workbook Status - Odd?? Jenny B. Excel Discussion (Misc queries) 4 January 16th 08 12:47 AM
How do I clear read-only status on a workbook file? Karin Excel Discussion (Misc queries) 1 March 2nd 07 04:55 PM
How to read sheet of currently opened workbook Jedi[_2_] Excel Programming 1 September 11th 03 11:00 AM


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