ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I convert formulae to values automatically (https://www.excelbanter.com/excel-discussion-misc-queries/137036-how-do-i-convert-formulae-values-automatically.html)

rhinozw

How do I convert formulae to values automatically
 
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.

Bob Phillips

How do I convert formulae to values automatically
 
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.




rhinozw

How do I convert formulae to values automatically
 
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.





Bob Phillips

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.








All times are GMT +1. The time now is 04:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com