I am having a bit of an issue trying to get the sendkey to work with a function key. works great with some functions like home and even tab, enter etc. I just can not get it to hit the F2 key. everything I see says to use {F2} but the {} do not work for me, I found success in the []. this works in the code below with the home function so I thought F2 would work the same. but when the macro gets to my F2 line it just types in F2 on the screen and is not hitting the F2 key? any ideas what I am doing wrong?
Sub testing()
'Link to Blue Zone
Set host = CreateObject("BZWhll.WhllObj")
ResultCode = host.Connect("A")
If (ResultCode <> 0) Then
MsgBox"Error: Unable to connect with BlueZone."
Exit Sub
End If
host.SendKeys"[Home]"
host.SendKeys"[F2]"
End Sub
Sub testing()
'Link to Blue Zone
Set host = CreateObject("BZWhll.WhllObj")
ResultCode = host.Connect("A")
If (ResultCode <> 0) Then
MsgBox"Error: Unable to connect with BlueZone."
Exit Sub
End If
host.SendKeys"[Home]"
host.SendKeys"[F2]"
End Sub