Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default backing up formulas in sheet coding?

Derrick

A better way could be to add a couple of lines to your macro(s) which
unprotect the sheet, run the code then re-protect the sheet.

Sub Macro1()
Activesheet.unprotect password:="mypass"

code runs here to hide rows or insert formulas

Activesheet.protect password:="mypass"


Gord Dibben MS Excel MVP

On Wed, 24 Jun 2009 06:44:01 -0700, Derrick
wrote:

I have a calculation sheet, where i want to make sure that users dont
accidentally delete the formulas necessary to complete the calculations.
- i've tried protecting the cells, by unlocking certain input cells and
locking the rest, but that for some reason won't allow my 'hide rows, and
insert formulas depending on what is selected from a validated list' macro to
run properly.

my idea now is to have a startup macro, where if the sheet is copied or
whatever, the formulas will be saved in code and inserted into the correct
cells if needed
- or if the formula is accidentally deleted it will re-appear.
where would i insert that coding?

thanks for helping!

Also, if you have a better idea, or a way to fix the 1st problem, let me know!


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
work sheet coding Dad Excel Discussion (Misc queries) 3 December 23rd 07 11:08 PM
backing up joesf16 Excel Discussion (Misc queries) 4 September 16th 07 01:15 PM
Backing up folder dan Excel Discussion (Misc queries) 4 July 21st 06 04:16 AM
Backing Up Greg B Excel Discussion (Misc queries) 7 March 4th 05 03:45 PM
Backing Up Greg B Excel Worksheet Functions 7 March 4th 05 03:45 PM


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