Macros are back in Microsoft Excel:Mac 2011 |
I have not been able to make a shortcut to open the Paste Shortcut menu, but one can address each of the individual options with an individual macro. Post a comment if you figure out how.
Here is a macro for paste-values, and it is about the simplest thing in the world. It is useful for when you want to save the result of a calculation, without moving the formula itself.
Sub PasteSpecialValues()
'
' PasteSpecialValues Macro
' Paste SpecialValues
'
' Keyboard Shortcut: Option+Cmd+v
'
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End Sub
'
' PasteSpecialValues Macro
' Paste SpecialValues
'
' Keyboard Shortcut: Option+Cmd+v
'
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End Sub
The Paste Format one is similar.
Sub PasteSpecialValues()
Sub PasteFormats()
'
' PasteFormats Macro
'
' Keyboard Shortcut: Option+Cmd+Shift+F
'
Selection.PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End Sub
Sub PasteFormats()
'
' PasteFormats Macro
'
' Keyboard Shortcut: Option+Cmd+Shift+F
'
Selection.PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End Sub
I could build a little menu in Visual Basic to similar the real Paste-Special function. It would be better if Microsoft would fix the bug, so that Shift-Command -V would operate Paste-Special, as the menu indicates.
I had trouble with these formulas, but was able to get a 'Paste Special Value' (no-formatting) with the following. I copy the text needing to be pasted before running the macro.
ReplyDeleteSub PasteSpecialValues()
'
' PasteSpecialValues Macro
'
' Keyboard Shortcut: Option+Cmd+v
'
Sheets("Sheet2").Select
Selection.Copy
Sheets("Sheet1").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End Sub