Hello! Please help me with a VBA code to find chrome tab containing the URL "http://www.bet365.com/home/FlashGen4/WebConsoleApp.asp?cb=1058021705547511577" and to bring to front in format maximize. I found a code but do not know how we adapt. Thank you in advance!
<code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit;">Declare Function FindWindow Lib "User32.dll" Alias "FindWindowA" (ByVal lpClassName As Any, ByVal lpWindowName As Any) As Long
Declare Function BringWindowToTop Lib "user32" (ByVal hwnd As Long) As Long
Public Sub Test()
Dim ClassName As String
Dim WindowName As String
Dim hwnd As Long
Dim Ret As Long
ClassName = "IEFrame" 'You would use "Chrome_WidgetWin_1"
WindowName = vbNullString
hwnd = FindWindow(ClassName, WindowName)
Ret BringWindowToTop(hwnd)
End Sub</code>
<code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit;">Declare Function FindWindow Lib "User32.dll" Alias "FindWindowA" (ByVal lpClassName As Any, ByVal lpWindowName As Any) As Long
Declare Function BringWindowToTop Lib "user32" (ByVal hwnd As Long) As Long
Public Sub Test()
Dim ClassName As String
Dim WindowName As String
Dim hwnd As Long
Dim Ret As Long
ClassName = "IEFrame" 'You would use "Chrome_WidgetWin_1"
WindowName = vbNullString
hwnd = FindWindow(ClassName, WindowName)
Ret BringWindowToTop(hwnd)
End Sub</code>