Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Allowing formatting in lower versions of EXCEL

ActiveSheet.Protect Password:="password", _
DrawingObjects:=True, Contents:=True, Scenarios:=True, _
UserInterfaceOnly:=False

of course formatting and sorting won't be allowed.


--
Regards,
Tom Ogilvy


"Stacy Haskins" wrote in message
...
How can I make the following code work on verisons of
Excel lower than 2002?:

ActiveSheet.Protect Password:="password",
DrawingObjects:=True, Contents:=True, Scenarios:=True,
UserInterfaceOnly:=False, AllowFormattingCells:=True,
AllowFormattingColumns:=True, AllowFormattingRows:=True,
AllowInsertingColumns:=False, AllowInsertingRows:=False,
AllowInsertingHyperlinks:=False,
AllowDeletingColumns:=False, AllowDeletingRows:=False,
AllowSorting:=True, AllowFiltering:=False,
AllowUsingPivotTables:=False



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Allowing formatting in lower versions of EXCEL

To the best of my knowledge, you can't in earlier versions. Perhaps you
would have to provide the user with a button and get the users preferences,
then in code, unprotect the sheet and perform the action, then reprotect the
sheet.



--
Regards,
Tom Ogilvy

"Stacy Haskins" wrote in message
...
That was my objective. How can I allow formatting and
sorting on versions < 2002 and still be protected?
Stacy
-----Original Message-----
ActiveSheet.Protect Password:="password", _
DrawingObjects:=True, Contents:=True, Scenarios:=True, _
UserInterfaceOnly:=False

of course formatting and sorting won't be allowed.


--
Regards,
Tom Ogilvy


"Stacy Haskins" wrote in

message
...
How can I make the following code work on verisons of
Excel lower than 2002?:

ActiveSheet.Protect Password:="password",
DrawingObjects:=True, Contents:=True, Scenarios:=True,
UserInterfaceOnly:=False, AllowFormattingCells:=True,
AllowFormattingColumns:=True,

AllowFormattingRows:=True,
AllowInsertingColumns:=False,

AllowInsertingRows:=False,
AllowInsertingHyperlinks:=False,
AllowDeletingColumns:=False, AllowDeletingRows:=False,
AllowSorting:=True, AllowFiltering:=False,
AllowUsingPivotTables:=False



.



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
conditional formatting - highlight Capital letters but not lower c elaine1 Excel Discussion (Misc queries) 1 March 24th 10 09:49 AM
Conditional Formatting Published to Former Versions AllieKoch Excel Discussion (Misc queries) 0 December 18th 07 07:33 PM
Conditional Formatting - allowing for Blank Cells Hojo Excel Discussion (Misc queries) 2 January 24th 07 11:10 PM
protecting a sheet yet allowing for sorting, filtering, formatting [email protected] Excel Discussion (Misc queries) 0 June 28th 06 03:39 PM
Protecting Sheet and still allowing for sorting, filtering and formatting [email protected] Excel Discussion (Misc queries) 0 June 26th 06 05:19 PM


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