Hi All,
I have written a macro program which will pull info/data from a text file and save it into an excel sheet. Once this process is done it will run another procedure which will read through the imported data and create shapes (i.e rectangles, connectors, operator shapes...etc.) on the active sheet and also name them. This seems to be working fine but the only challenge i am facing is once everything is done i get a error -popup saying "Microsoft Excel has encountered an error and needs to be closed, we are sorry for the incovinience" with a checkbox option to recover my work. Also i noticed if i pause the macro and then continue it step by step using F8 it won't crash.
Could anyone please advice why am i getting this error and how to get rid of it.
Also when i try to run the macro to create shapes with the info which is already stored in the excel sheet it does works very well and does not gives error. It's only when i try running the macro with option to pull it from the text file after processing all the steps mentioned in the macro excel crashes.
Any help/advice would be of great help for me. Also i was thinking if there's a way i can release some memory excel is using...
Regards,
Premanshu
I have written a macro program which will pull info/data from a text file and save it into an excel sheet. Once this process is done it will run another procedure which will read through the imported data and create shapes (i.e rectangles, connectors, operator shapes...etc.) on the active sheet and also name them. This seems to be working fine but the only challenge i am facing is once everything is done i get a error -popup saying "Microsoft Excel has encountered an error and needs to be closed, we are sorry for the incovinience" with a checkbox option to recover my work. Also i noticed if i pause the macro and then continue it step by step using F8 it won't crash.
Could anyone please advice why am i getting this error and how to get rid of it.
Also when i try to run the macro to create shapes with the info which is already stored in the excel sheet it does works very well and does not gives error. It's only when i try running the macro with option to pull it from the text file after processing all the steps mentioned in the macro excel crashes.
Any help/advice would be of great help for me. Also i was thinking if there's a way i can release some memory excel is using...
Regards,
Premanshu