I am trying to open documents with a macro and i can do this no worries following the basic code below
Set Part = swApp.OpenDoc6("C://..first part....., Filetype, 0, "", longstatus, longwarnings)
Set Part = swApp.OpenDoc6("C://.second part....., Filetype, 0, "", longstatus, longwarnings)
However as soon as i changed the hard code of the file location to a variable ie replacing "C://..." with the variable FirstVariable, once the first file has opened the second file wont open.
I have found if i open an assembly first i can get a drawing to open but not the other way around. This work around worked for a bit until i wont to have both an assemly and drawing open and now trying to get a part to open and cannot get any where.
I have checked filed types and the like, copied file paths. Tested opening just one file and it works but as soon as another file is open it wont.