#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Sheet Protection

Hello All,

I ws wondering on how I can protect a sheet that has nothing but formula's
in it. My Scenario is this:

I have a main sheet that I enter in all of my data into. from the other
sheets, I use vlookup and other formula's to pull data into them. The
problem that I am having is when I protect the whole sheet, then those cells
that I have formulas in them won't update when I run my upate macro because
they are protected. I don't want to un-protect those cells because, then a
user may accidentally del, change, or erase that formua.

Thanks in advance for any help

Argus


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default Sheet Protection

Hi

In this case, you could unprotect it before the update and protect it again
afterward.

ActiveWorkbook.ActiveSheet.Protect
<call the update subroutine
ActiveWorkbook.ActiveSheet.Unprotect

hope this help.

Leung



"OdAwG" wrote:

Hello All,

I ws wondering on how I can protect a sheet that has nothing but formula's
in it. My Scenario is this:

I have a main sheet that I enter in all of my data into. from the other
sheets, I use vlookup and other formula's to pull data into them. The
problem that I am having is when I protect the whole sheet, then those cells
that I have formulas in them won't update when I run my upate macro because
they are protected. I don't want to un-protect those cells because, then a
user may accidentally del, change, or erase that formua.

Thanks in advance for any help

Argus



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Sheet Protection

I think you have a different problem.

If your code tries to change a locked cell on a protected sheet, it would fail.
But if your locked cells on that protected sheet are formulas and they're not
reevaluating, it's not the cause of the macro.

Maybe you've changed calculation to manual in your code to speed things up??????


ps. You can protect a worksheet in code that allows your code to make changes
to those locked cells on that protected worksheet--but prevents the user from
doing so. But this won't help in this case.



OdAwG wrote:

Hello All,

I ws wondering on how I can protect a sheet that has nothing but formula's
in it. My Scenario is this:

I have a main sheet that I enter in all of my data into. from the other
sheets, I use vlookup and other formula's to pull data into them. The
problem that I am having is when I protect the whole sheet, then those cells
that I have formulas in them won't update when I run my upate macro because
they are protected. I don't want to un-protect those cells because, then a
user may accidentally del, change, or erase that formua.

Thanks in advance for any help

Argus


--

Dave Peterson
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
Sheet Protection wally Excel Worksheet Functions 8 May 21st 06 09:28 PM
Sheet Protection smiller06 Excel Worksheet Functions 0 February 2nd 06 06:50 PM
Sheet Protection seezzell Excel Worksheet Functions 2 October 15th 05 12:57 AM
sheet protection aimee Excel Worksheet Functions 2 June 28th 05 04:13 PM
Sheet Protection Corey Brock Excel Discussion (Misc queries) 1 January 12th 05 06:19 PM


All times are GMT +1. The time now is 06:59 PM.

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"