I have Excel for Mac 2011
I need to perform a series of key strokes but haven't figured out how to do it.
For example, i need to press a + enter in a selection of cells.
the code i have right now is
Sub a_enter()
Dim cell As Range
For Each cell In Selection
cell.Select
SendKeys "a", True
SendKeys "ENTER", True
Next cell
End Sub
But it returns an error Run-time error '5': invalid procedure or argument...
how can i do it?
Bookmarks