Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default Protection in code?

hi
i am trying to set up protection settings in code, where it will unprotect
... do the calcs.. then protect

my question involves settings . .. i set up protection settings so that i
can format columns, but when i run my macro, it automatically has its own
settings and i cannot format the columns anymore..
right now, my code looks like

Sheets("Vertical").Unprotect or Protect

what can i write to allow me to format columns?

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default Protection in code?

nevermind. i found out how to do it - after .Protect write
"AllowFormattingcolumns:=True"


"Derrick" wrote:

hi
i am trying to set up protection settings in code, where it will unprotect
.. do the calcs.. then protect

my question involves settings . .. i set up protection settings so that i
can format columns, but when i run my macro, it automatically has its own
settings and i cannot format the columns anymore..
right now, my code looks like

Sheets("Vertical").Unprotect or Protect

what can i write to allow me to format columns?

thanks

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
Code Protection Mike H. Excel Programming 4 July 9th 07 11:28 AM
password protection via code swatsp0p[_2_] Excel Programming 6 September 5th 06 09:48 PM
vba code protection Paul Excel Programming 1 November 28th 05 09:15 PM
Sheet Protection and XLA code Datasort Excel Programming 0 October 21st 05 06:18 PM
VBA code delete code but ask for password and unlock VBA protection WashoeJeff Excel Programming 0 January 27th 04 07:07 AM


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