Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Protect sheet and allow formatting of cells, columns, rows
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David Chandek-Stark  
View profile  
 More options Oct 21, 3:57 am
From: David Chandek-Stark <dchandekst...@gmail.com>
Date: Tue, 20 Oct 2009 10:57:48 -0700 (PDT)
Local: Wed, Oct 21 2009 3:57 am
Subject: Protect sheet and allow formatting of cells, columns, rows
Hi,

Using xlwt I can't see how to protect a worksheet, yet allow
formatting of cells, columns, rows, as you can do when applying
worksheet protection in the Excel 2003 UI.  I would have guessed that
you would set:

sheet.protect = True

and

sheet.wnd_protect = False

but that seems to have no effect, at least on this score.

Thanks,
David


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Machin  
View profile  
 More options Oct 21, 8:40 am
From: John Machin <sjmac...@lexicon.net>
Date: Wed, 21 Oct 2009 09:40:20 +1100
Local: Wed, Oct 21 2009 8:40 am
Subject: Re: [pyxl] Protect sheet and allow formatting of cells, columns, rows
On 21/10/2009 4:57 AM, David Chandek-Stark wrote:

> Hi,

> Using xlwt I can't see how to protect a worksheet, yet allow
> formatting of cells, columns, rows, as you can do when applying
> worksheet protection in the Excel 2003 UI.  I would have guessed that
> you would set:

> sheet.protect = True

> and

> sheet.wnd_protect = False

> but that seems to have no effect, at least on this score.

That would be because "window protection" relates to the whole physical
display window.

When I do Tools/Protection/Sheet in the Excel 2003 UI, it pops up a pane
  with a separate tickbox for each of a whole lot of things including
format cells, format columns, format rows. Doesn't look like a single
bit will cover all of that.

Rummaging in the docs leads to what MS call the FeatHdr (feature header)
record which was introduced in Excel 10. A subset of the functionality
is described in the OOo docs as the "SHEETPROTECTION" record.

MS docs: available from
http://msdn.microsoft.com/en-us/library/cc313105.aspx
You need [MS-XLS] ... PDF format suggested

OOo docs: http://sc.openoffice.org/excelfileformat.pdf

The FeatHdr record is not implemented in xlwt.

Cheers,
John


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google