VBA End Private Sub if First Sub Routine is exited

时间:2017-08-30 20:13:59

标签: vba exit private-pub

I want the entire Private Sub to Exit if the Copier routine is exited. So the DoDays routines is never called.

1

The call to the DoDays in the Copier sub doesn't seem to work because I literally need to exit the Private Sub so the button remains enabled.

3 个答案:

答案 0 :(得分:0)

I would merge the test.zfirewallaudit.src_ip procedure into the ...dst_ip event procedure:

subdomain

答案 1 :(得分:0)

Create a global variable and update it at the end of your Copier method then check it before DoDays is called

<file src="bin\*\netstandard1.3\*.dll" ...

答案 2 :(得分:0)

You can change A obj = new A(...) // values gets filled here int[] leak = obj.getValues() leak[0] = 42 to a Boolean Function and edit the call to test whether it executed successfully.

Your call would look like:

values

Your public final class A { private int[] values; public int[] getValues() { return Arrays.copyOf(values); } } Function would look like:

Copier

Make sure you have If Not Copier Then Exit Sub enabled. It should have thrown a compile error on the Copier since it is out of scope.