Solved

Problem facing in XL after exporting data from VB to XL.

Posted on 1998-06-09
3
254 Views
Last Modified: 2010-05-03
After exporting data to XL from VB. If I close XL then no error appears, but if I close the workbook window error appears "This program has performed an illegal operation and will be shut down"
0
Comment
Question by:thussain
3 Comments
 
LVL 1

Expert Comment

by:redbaron082997
ID: 1462874
it appears that you have a corrupt file. If you would like to send a freshly exported file (one that you have not opened yet) to me I will checkit out
mailto:redbaron@flash.net

0
 
LVL 1

Accepted Solution

by:
web_crusher earned 100 total points
ID: 1462875
you probebly using access and excel not from the same version - excel 5 and access 2 are working fine - to use excel highe you'll have to get excel 7.0 !

there are a few runtime dll's that are needed and conficting between them - use excel 7.0 at least - my suggestion - aviod using access 97 - its still has many faults like every microsoft new software!
0
 

Author Comment

by:thussain
ID: 1462876
Thanks ! I have solved the problem by changing my code in VB...

Before I was making excel workbook visible after exporting all the data to excel.Now I am making excel workbook visible before exporting of data to excel.

The above change has sorted my problem.

Regards,
Tasaduq Hussain

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question