Hi All,
I have come upon an issue regarding the SendKeys feature in VBA. i have used this before with succes but for some reason i cannot figure out whats the problem.
I want the code below to enter each cell within a range by sending the keys F2 and ENTER. It will not work... It keeps launching printing..
Please Help!
Thank you very much in advance!
I have come upon an issue regarding the SendKeys feature in VBA. i have used this before with succes but for some reason i cannot figure out whats the problem.
I want the code below to enter each cell within a range by sending the keys F2 and ENTER. It will not work... It keeps launching printing..
Please Help!
Thank you very much in advance!
Code:
Sub F2Macro()
'
' F2Macro Macro
'
' Keyboard Shortcut: Ctrl+t
'
Dim Cell As Range
With ActiveSheet
For Each Cell In Range("Q1:Q200")
If IsEmpty(Cell.Value) = False Then
SendKeys ("{F2}")
SendKeys ("{ENTER}")
End If
Next
End With
End Sub