I plan to manually select the target Chrome tab and press the macro button from Excel to use it like an on-screen keyboard.
I would like to operate the Chrome browser using only Sendkeys, a standard feature of Excel VBA. SeleniumVBA is not used.
I checked the behavior of sendkeys when multiple Chrome browser windows and multiple tabs were open. As a result, input was only entered in the last selected tab.
Is it okay to understand that SendKeys only works on the tab that the user last operated on? Please let me know if you have any other knowledge.
Sub SendK() 'Activate Chrome app Call AppActivate("Chrome") 'Keystroke SendKeys "ABC" SendKeys "{Enter}" End Sub
SendKeysis unreliable. Most of the time, it might work as you would like it to, but sometimes it can fail. Therefore, there is no guarantee it will always work on the tab the user last used.