View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Riva Mario Riva Mario is offline
external usenet poster
 
Posts: 1
Default Shell or shellexecute

Hi,

I want to open A.dwg and B.dwg files in different moment from VBA
excel using Shell.
I use the following line and it works right:
RetVal = Shell(GstrPercorsoCad + " " + GstrFileAorB, vbMaximizedFocus)

The point is that I want to use only one process of Autocad because in
this way the program launchs two different execution of autocad.
what can i do to open the second file in the same apllication of the
first one?
Thanks.

IL