Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Can macros alter locked cells in excel?

I have written a routine in VBE which causes excel to run a series of
calculations.

A user will need to fill in several inputs in excel, and then run the
routine.

I would like to lock areas of the worksheet which the user should not
touch, so that they can't accidentally change the formulas/cells that
VBE is using for the calculations.

When i lock the cells that VBE needs to use then the macro will not run
until the worksheet has been unprotected.

Is there a way of locking a cell to a user, but allowing a macro to
update that same cell with the without the user having to unprotect the
worksheet?

Thanks

N


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default Can macros alter locked cells in excel?

Hi Nigelbellamy,

Is there a way of locking a cell to a user, but allowing a macro to
update that same cell with the without the user having to unprotect the
worksheet?


The protection method has a UserInterfaceOnly property.

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com

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
alter code to apply to range (links cells w/ row insertions) purplec0ws Excel Discussion (Misc queries) 1 November 10th 09 10:19 AM
Locked worksheet & hyperlinks (w/ select locked cells unchecked) dgold82 Excel Discussion (Misc queries) 1 July 10th 09 09:42 PM
Macros to cells, formula only not data locked Margo Excel Worksheet Functions 4 November 3rd 07 12:22 PM
How to alter comments in a locked cell ? torben Excel Worksheet Functions 2 October 23rd 07 01:34 PM
Put comments on a locked spreadsheet even though cells not locked RDP Excel Worksheet Functions 1 September 11th 05 11:59 PM


All times are GMT +1. The time now is 08:14 PM.

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"