View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default How do I convert formulae to values automatically

Maybe use the change event to fix them down

Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "A:C" '<== change to suit

On Error GoTo ws_exit
Application.EnableEvents = False

If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
Target.Value = Target.Value
End If

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"rhinozw" wrote in message
...
Thanks Bob - last time you help was 2005!

Paste values is a given - thanks. But I want this to be automated so when
the user has inserted the value it fixes the vlookup values so that they &
the user input can not be changed!

"Bob Phillips" wrote:

Just select them and copy to the clipboard, then EditPasteSpecial and
click
Values.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"rhinozw" wrote in message
...
I have 3 columns - A, B, & C. A & C are automatically filled using a
VLOOKUP
formula and this is determined by the code entered into B. I am trying
to
achieve a solution where when the user completes B then A & C are
populated
as per VLOOKUP and then A, B & C can not be changed.