Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default how do i restrict cells to not accept formulas?

Is there a way to restrict cells in excel so that formulas cannot be typed
into them?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default how do i restrict cells to not accept formulas?

Right click sheet tabview code insert thisyou may want to restrict the
area??

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.HasFormula = True Then Target = ""
End Sub
or
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.HasFormula = True Then
MsgBox "No formulas allowed"
Target = ""
End If
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"John" wrote in message
...
Is there a way to restrict cells in excel so that formulas cannot be typed
into them?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default how do i restrict cells to not accept formulas?

Or this to convert their formula to a value

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.HasFormula = True Then
Target.Value = Target
msgbox "Your formula has been converted to a value"
End If
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Don Guillett" wrote in message
...
Right click sheet tabview code insert thisyou may want to restrict the
area??

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.HasFormula = True Then Target = ""
End Sub
or
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.HasFormula = True Then
MsgBox "No formulas allowed"
Target = ""
End If
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"John" wrote in message
...
Is there a way to restrict cells in excel so that formulas cannot be
typed
into them?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default how do i restrict cells to not accept formulas?

Well, I guess you could use Data Validation. Data Validation Custom in
the rectangle, put this: =$C$1.

In Cell C1, enter this: <=

Try that and see how you get along.

HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"John" wrote:

Is there a way to restrict cells in excel so that formulas cannot be typed
into them?

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
Excel 2007 - Where is the Accept Labels in Formulas Option? headly Excel Discussion (Misc queries) 3 June 8th 07 12:58 PM
how do i restrict users from changing my formulas Help with formulas Excel Discussion (Misc queries) 2 July 27th 06 10:55 PM
Format cells to only accept numbers cradino Excel Discussion (Misc queries) 4 July 22nd 06 03:46 PM
change default setting of accept labels in formulas Samad Excel Discussion (Misc queries) 3 July 8th 06 05:00 PM
Won't accept labels in formulas Mark McDonough Excel Discussion (Misc queries) 6 May 25th 06 10:06 AM


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