Does anyone know how to keep PC-Dmis from closing Excel after exporting the dimensional results?![]()
Does anyone know how to keep PC-Dmis from closing Excel after exporting the dimensional results?![]()
Aaron Fenner
Quality Engineer
PC-Dmis v4.3
B & S Global Status 7.7.7
6 years xp 32-bit
Is there an excel object .quit or any kill statements in the code? Post the code and I am sure someone can nail it right away.
Annoying the masses one innocent person at a time
If you are talking about the Wizard, you need to open it with the VB editor. Go to the ProgressForm code, line 1272, you should see this -
Closing:
ExcelWorkbook.Save
ExcelWorkbook.Close
Set ExcelWorkbook = Nothing
ExcelApp.Quit
Set ExcelApp = Nothing
Comment out the 4 lines that actually do the closing -
Closing:
ExcelWorkbook.Save
' ExcelWorkbook.Close
' Set ExcelWorkbook = Nothing
' ExcelApp.Quit
' Set ExcelApp = Nothing
Whatever utility you are using, as Craiger_NY says, you should see something like the above.
"You may be right, I may be crazy. . ." - Billy Joel
I am using the wizard....I will try to edit it like Don has stated...I think I can do that...I'll keep ya posted....
Thanks guys
Aaron Fenner
Quality Engineer
PC-Dmis v4.3
B & S Global Status 7.7.7
6 years xp 32-bit
Well, I don't think it editing out the comments worked, unless I didn't do it correctly, which is highly possible.
Is that an apostrophe that comments out the lines? Or that little mark on the ~ button on the keyboard? I tried using both symbols, but neither seemed to work.
DMIS still closes Excel and every document in it, once I hit the finish button for the wizard.
It should be noted that I used Wordpad to edit the file. I'm going to now try it using VB Express. Maybe that has something to do with it.
The issue is still open![]()
Last edited by afenner; 11-08-2007 at 11:49 AM.
Aaron Fenner
Quality Engineer
PC-Dmis v4.3
B & S Global Status 7.7.7
6 years xp 32-bit
Sorry, I left out some additional detail. First, it is an apostrophe.
When you are done editing, you need tobuild an executable from it. Then you need to place the executable into the Wizards folder, replace the existing one or make a new one (new name, new icon, etc.), your choice. You need to do all this with VB.
"You may be right, I may be crazy. . ." - Billy Joel
Yup, those seem like some important details to me
Thanks, I'll work on it..
Aaron Fenner
Quality Engineer
PC-Dmis v4.3
B & S Global Status 7.7.7
6 years xp 32-bit
I'm not sure how to build an .exe file out of it....is there a short version of the instructions for that? Can VB do it or do I need another program?
Aaron Fenner
Quality Engineer
PC-Dmis v4.3
B & S Global Status 7.7.7
6 years xp 32-bit
In VB6, you go to File (on the menu) and about 2/3 of the way down you'll find a "Make .Exe" option.
"You may be right, I may be crazy. . ." - Billy Joel
Bookmarks