Diane,
thanks you!!
Ok. I got this. Thanks for the help. after .exe I had to specify database, username, and password.
If visual is not open. if visual estimating window is open just appactivate "estimating".
Working example below:
Public vPID As Variant
Public Sub OpenApplication()...
Diane,
thinking here now it has something to do with password. if I open estwin from within visual it activates. ( no problem)
if I try to appactive using vmestwin.exe it opens a login.
is there anything you know I can incorportate that" username" something like Mark Whites example. ?
Diane,
below is opening sysadm login for vmestwin.exe from server location " \\visualsql\apps\vmfg\VMESTWIN.EXE"
See below visual properties screen shot.
what is active is starting from U:/VISUAL.... which is where INI files for user are located.
maybe I am missing something from my path, my...
Diane,
I tried following but get run-time error '53" file not found.
Public Sub OpenApplication()
vPID = "VISUAL"
On Error GoTo 101
AppActivate (vPID)
j = 1
Debug.Print j
101:
If j = 0 Then
vPID = Shell("\\visualsql\apps\vmfg\VISUAL", vbNormalFocus)
End If
End Sub
Diane, Hi. thanks. I can get notepad to open - #1 below works.
and example #2 to open outlook works.
But if I put "VMESTWIN" into code I get run-time error '53' file not found. ?
#1 - works.
Public vPID As Variant
Public Sub OpenApplication()
'Launch application if not already open...
I am trying to switch between outlook and my ERP system ( visual enterprise) but cannot get visual to activate.
I put path as" \\visualsql\apps\vmfg\VM.EXE" but it just open a login for administrator.
The module window that is open is estimating window VMESTWIN.EXE if I add that to path...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.