#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Stop Formula input

Hello,
I was wondering if anyone could help me. I'm trying to restrict formulas
being inputted into cells so that figures are inputted manually. This is
because the numbers can change due to links being broken or cells being moved
around on a worksheet. Can anybody help?

Thanks,
B
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Stop Formula input

Hi,

You could do this. Right click the sheet tab, view code and paste this in:-

Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "A1:b20" '<== change to suit
On Error GoTo ws_exit
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
If Target.HasFormula Then
Target.Value = ""
MsgBox "Formula not allowed"
End If
End If
ws_exit:
Application.EnableEvents = True
End Sub

Mike

"Gruff" wrote:

Hello,
I was wondering if anyone could help me. I'm trying to restrict formulas
being inputted into cells so that figures are inputted manually. This is
because the numbers can change due to links being broken or cells being moved
around on a worksheet. Can anybody help?

Thanks,
B

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
How to Input date & Time [NOW()], then stop it updating? jonathandr Excel Worksheet Functions 3 October 23rd 06 05:41 PM
How do I stop the input cell from jumping to the mouse cursor? JMorris Excel Discussion (Misc queries) 1 August 13th 05 12:35 AM
Excel writes "May 10" when I input "5-10". How to stop this? Carter Excel Discussion (Misc queries) 2 August 5th 05 06:52 PM
input box = formula bar David494 Excel Discussion (Misc queries) 2 July 29th 05 03:44 PM
how do i get excel to stop changing my input 5-9 to 9-May???? molly Excel Discussion (Misc queries) 3 February 20th 05 08:26 PM


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