Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 1998-06-09
3
Medium Priority
?
262 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 200 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

688 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