Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dd dd is offline
external usenet poster
 
Posts: 95
Default Two questions on worksheet protection and hiding formulae/ functions

Is there a line of code that will hide all cell formulae/ functions?

Is there a way to adjust the following code to apply to only cells populated
with formulae/ functions?

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Formula < dtval Then Target.Formula = dtval
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
dtval = Target.Formula
End Sub

'From
'http://www.dotxls.com/excel-security/27/how-to-protect-an-excel-sheet-with-vba-macro-code


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
Hiding AddIn Methods from Worksheet Functions But Exposing to VBA Matthew Wieder[_3_] Excel Programming 7 June 23rd 06 04:45 PM
some 'Protection' questions Bri Excel Worksheet Functions 5 January 25th 06 07:15 PM
Excel : Hiding/Locking Formulae Allan Excel Discussion (Misc queries) 6 October 1st 05 12:07 AM
3 questions about automated c++ com add-in worksheet functions gert Excel Worksheet Functions 0 March 10th 05 09:57 AM
Protection and Hiding Sheets JudithJubilee Excel Discussion (Misc queries) 4 March 4th 05 02:16 PM


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