ich brauche einen vba code der markierte zellen und dann per tastendruck auf enter deren inhalt eine formel ist in deren ergebniss umwandelt
im voraus schonmal danke
Sub In_Werte_umwandeln()
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues
End Sub
Dim bereich As Range, lrgCell As Range
Set bereich = Selection
For Each lrgCell In bereich
If lrgCell.HasFormula = True Then
lrgCell.Value = lrgCell.Value
End If
Next
Sub xxx()
dim X as Range
for each X in Selection.Areas
X.Copy
X.PasteSpecial xlpastevalues
Next
Application.CutCopyMode = False
End Sub
Sub xxx()
dim X as Range
for each X in Selection.Areas
X.FormulaLocal = X.Value
Next
End Sub