|
-
Aug 11th, 2007, 10:29 PM
#1
Thread Starter
Addicted Member
Re: Vba Button Export Data From Xls To Mdb
Hey, thanks to you, I finish my own codes. But there is still one more problem.
This line of code did not work as expected. After run these codes, the process EXCEL was not killed and still using some resources. Have you all seen this? And how can this be done.? Do you think we need to call Kill process method?
-
Aug 11th, 2007, 10:38 PM
#2
Re: Vba Button Export Data From Xls To Mdb
I dont know what code you have but perhaps it would be best to start your own thread. 
YOu cant kill the excel process just by setting hte applicaiton object variable to Nothing. You need to .Quit it first and before that any other object variables of Excel.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Aug 11th, 2007, 11:06 PM
#3
Thread Starter
Addicted Member
Re: Vba Button Export Data From Xls To Mdb
vb Code:
Set excelWksht = Nothing
excelWbk.Close Savechanges:=True
Set excelWbk = Nothing
excelApp.Quit
Set excelApp = Nothing
I am sorry for being not so clear. My codes were above, it really did not work, and bythe way I am using Office XP.
-
Aug 11th, 2007, 11:17 PM
#4
Re: [Excel 2002] Quit
But it just not that either. If you are implicitly creating excel objects you will have multiple references created and it will hang. Please post all your code.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|