View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rolo[_3_] Rolo[_3_] is offline
external usenet poster
 
Posts: 5
Default Canīt Convert Formulas to Values with Deactivate event

Hi Excel Gurus. I really appreciate your help !

I have a sheet with many formulas. When I leave the sheet I want to
convert them to values.

Macro Recorder gives this:

Range("D15:E16").Select
Selection.Copy
Range("D15").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _:=False, Transpose:=False
Range("D14").Select

But when I apply this code to the Deactivate sheet event it gives an
error (it seems it doesnīt accept the selection method in the above
code).

Can anybody help me???