Excel 2013 VBA, not calling a sub, intermittently -


i calling sub sub, intermittently fails using same test data, line calls routine :

call setmargin(marginlines(), product_margin(), ectot, sctot, tttot, dstot, _                 tstot, drtot, nstot, sqtot, shapetot, temp_row) 

this definition :

private sub setmargin(marginlines() integer, product_margin() single, _       ectot integer, sctot integer, tttot integer, _       dstot integer, tstot integer, drtot integer, _       nstot integer, sqtot integer, shapetot integer, _       temp_row integer) 

i have stepped through macro code (f8) , runs routine , not, same data. think runs if msgbox called before might coincidence. routine runs if there spread sheet open.

product_margin defined :

dim product_margin(10, 4) single 

which filled values range between 0 , 99

marginlines :

dim marginlines() integer 

which hold value product_margin determined code in setmargin.

there no on error resume next statement in module these subs reside.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

php - How do you embed a video into a custom theme on WordPress? -