vb.net - On Error go to the next desired operation instead of next line -


how can make code

for each wb in wbc         if instr(wb.builtindocumentproperties("keywords").value(), "myapplicationset") = 0             on error resume next         end if          call overtimesave(wb)     next 

so when current workbook not part of system - skips 1 workbook (without saving it) , iterates next workbook? code correct, because not sure on error resume next work here, read, go next statement, means call save function on particular workbook, not part of system.

i want like: if there's error - nothing , iterate next workbook.

it might better change if-condition add every workbook that's part of system

for each wb in wbc         if instr(wb.builtindocumentproperties("keywords").value(), "myapplicationset") <> 0             call overtimesave(wb)         end if next 

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -