Good morning gentlemen, i need some support..
I did a code to import the content from some spreadsheets. Those spreadsheets that i'm importing has macros. I opened, and imported the data. The problem is that after that i need to do one change, save, and close the spreadsheet.
When i try to save the spreadsheet, the code just stops to work. Just stop. I already tried some things, but none of them really worked.
Detail: I'm working with excel 2010, but saved my spreadsheet in the format .xls. The spreadsheets that i'm opening also have this format.
In the first version that i did, it shown the compatibility checker screen, warning me about "significant loss of funcionality". I clicked in continue. So after that the code stops, as soon as i execute the instruction ActiveWorkbook.Save
After that i created a second version from my program, with 3 lines before i save:
Application.DisplayAlerts = False
Application.EnableEvents = False
ActiveWorkbook.CheckCompatibility = False
The compatibility checker message was gone, but the code still stops to run, in the same line ActiveWorkbook.Save.
I appreciate any help about. I tried to think in different solutions, but right now i dont have a clue why this is happening.
Regards to all
Flavio
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.
----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA
----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com
----------------------------------
Tidak ada komentar:
Posting Komentar