I have a question concerning copy-pasting as value in a filtered table of an active selection.
Situation description:
I have a table and in every cell is a formula. If I add a filter, and select a specific range of the filtered data, I want to copy-paste that data from formulas to values.
Now I do it line by line by pressing ctrl+alt+v, and select value.
Can you help me writing a macro for this?
I tried the following, but I miss skipping the hidden cells, and the active selection/range:
- Code: Select all
Sub ValuePaste()
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
End Sub
Thank you,
Erika