xl application files are 4, currently.
a.xls, b.xls, c.xls, d.xls are all in a folder.
they are run.
and then access file run. the access file is in the same folder, too.
i want to activate the c.xls file when i press the specific button in a
form in access file, but is very difficult....... ooooohhhh
this code is not work well....
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal
lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long,
ByVal nCmdShow As Long) As Long
Public Const SW_MAXIMIZE = 3
Public Const SW_NORMAL = 1
Public Const SW_SHOWMAXIMIZED = 3
Public Const HWND_TOPMOST = -1
Public Const SW_SHOWNORMAL = 1
Public Const SW_SHOW = 5
Public Const SW_RESTORE = 9
sub test()
xlHwnd = FindWindow("XLMAIN", "Microsoft Excel - c")
ShowWindow xlHwnd, SW_SHOWMAXIMIZED Or SW_SHOWNORMAL
end sub
*** Sent via Developersdex http://www.developersdex.com ***