Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default Locked Sheet

The easiest way I can think of is to unlock the sheet,
make the changes and lock it again.

For example
1)Unprotect the sheet
sheet1.unprotect, "password"

2)Change the formula
Sheet1.Range("a1").FormulaR1C1 = "=RC[1]+RC[2]"

3)Re-protect the sheet
sheet1.protect, "password"

If you haven't already you could in future
try "Userinterface :=true" which allows code to alter a
sheet but prevents the user from doing so.

hope this helps
libby
-----Original Message-----
I want to write a VB Code that will change the formula in
one cell on a locked sheet that is password protected? I
know the password. It is a program that several people
are using and I want to sent them an update to fix a
glitch. However, I don't know the code to change a cell
on a locked page??????

SDC
.

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
Inserting a row into a locked sheet BillS512 Excel Discussion (Misc queries) 0 December 17th 08 11:33 PM
locked out of my sheet for read only wwoody Excel Worksheet Functions 1 March 1st 06 01:52 AM
Sheet locked by user troy Excel Discussion (Misc queries) 1 October 4th 05 02:13 PM
locked up spread sheet nellie4020 Excel Discussion (Misc queries) 1 April 15th 05 12:30 PM
Excel file/Sheet Locked Eileen Excel Discussion (Misc queries) 1 January 4th 05 11:08 PM


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