Created
June 17, 2013 08:30
-
-
Save tadija/5795453 to your computer and use it in GitHub Desktop.
VBA: F2 + Enter on selected cells
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub RefreshCells() | |
Dim r As Range, rr As Range | |
Set rr = Selection | |
For Each r In rr | |
r.Select | |
Application.SendKeys "{F2}" | |
Application.SendKeys "{ENTER}" | |
DoEvents | |
Next | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I want to place a condition that only makes this process in the cells that have some data, how could I do it?