Excel VBA Crashing -


my company computer upgraded office 2010 office 2013. had several workbooks large macros outputting various reports. after upgrade having problems. biggest issue excel crashing ("microsoft excel has stopped working."), on code ran fine in 2010.

i tried copying sheets , code new workbook, , reassigning buttons correct macros in new workbook. runs fine, when try edit code, starts crashing excel again.

code compiles fine, without errors. changed options "notify before state loss" , "break on errors", still cannot prevent crash.

i have vba opens spreadsheet data, before read data code looks column headers. array escarray has column headers stored in position 0 (zero) , when finds matching column header, replaces column name column number, can pull data correct column (in case columns shift don't have change code). below code checks make sure column names found , replaced number. if array position not have number value (representing column number), should msgbox, code exit. excel crashes when gets "if val(escarray(0, cnt)) < 1 , escarray(0, cnt) <> "blank" then" line, ran fine past year (until 2013 upgrade)...

    'check columns found...     cnt = 1 gklen       if val(escarray(0, cnt)) < 1 , escarray(0, cnt) <> "blank"          workbooks(filename).saved = true          workbooks(filename).close          workbooks(thistool).activate          msgbox ("column " & escarray(0, cnt) & " not found.  exiting macro.")          exit sub       end if     next 

lastly, did vba6.dll error after upgrade when running macros. online investigation error suggested registration issue (it said not touch registry). downloaded vba6.dll file , placed in windows/system32 folder , stopped getting error.

any suggestions?


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -