Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problem using protect/Unprotect in excel 97


Hello,

I have tried like 100+ methods of using the protect/unprotect function
in excel 97 vba. ALL of them give me different errors.

If I want to include a simply function to Unprotect and then
re-Protect
something during a given function, What is the "proper" command for
this,
that is excel 97 vba compatible?

Also, I'm assuming that to make it with NO password, use
password:=""?

Thanks in advance,

Spyrule


--
spyrule
------------------------------------------------------------------------
spyrule's Profile: http://www.excelforum.com/member.php...o&userid=25489
View this thread: http://www.excelforum.com/showthread...hreadid=563039

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Problem using protect/Unprotect in excel 97

Did you try the macro recorder. If not record protect & un-protect the
sheet. In the code as recorded might want to change ActiveSheet to
Worksheets("SheetName").

If your function is used as a UDF it can only return a value and cannot
change formats or settings such as protection, but no problem from a sheet
change/selection event.

Regards,
Peter T

"spyrule" wrote in
message ...

Hello,

I have tried like 100+ methods of using the protect/unprotect function
in excel 97 vba. ALL of them give me different errors.

If I want to include a simply function to Unprotect and then
re-Protect
something during a given function, What is the "proper" command for
this,
that is excel 97 vba compatible?

Also, I'm assuming that to make it with NO password, use
password:=""?

Thanks in advance,

Spyrule


--
spyrule
------------------------------------------------------------------------
spyrule's Profile:

http://www.excelforum.com/member.php...o&userid=25489
View this thread: http://www.excelforum.com/showthread...hreadid=563039



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
Protect UserInterface VS Protect/Unprotect Desert Piranha[_44_] Excel Programming 2 February 1st 06 03:08 AM
unprotect/protect grouped worksheets in excel mcwhirter Setting up and Configuration of Excel 1 August 8th 05 01:21 AM
Unprotect and protect.... Wilfrid Excel Programming 1 July 28th 04 03:13 AM
Excel VBA-Protect and unprotect sheet with BVA marfrk Excel Programming 1 May 3rd 04 12:37 PM
Excel VBA - Problems using Protect/Unprotect a worksheet Gary Richie Excel Programming 2 February 6th 04 03:29 AM


All times are GMT +1. The time now is 09:32 AM.

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"