M
mike allen
I am running a large sub( "bottomsub") that I want run "out of sight" b/c it
is bulky, large, etc. that comes up with 2 answers; the last solved with the
first. I want to pull these 2 answers from bottomsub into another sub
("topsub"). I know I could do it by making bottomsub a function, but that
would be just one answer to be pulled into topsub. I tried...
Sub topsub()
a = 4
b = 6
Call bottomsub(a, b)
Range("a1") = c
Range("a2") = d
End Sub
Sub bottomsub(a, b)
c = a + b
d = b - a
End Sub
....but topsub did not "remember" the 2 answers from bottomsub. Any
thoughts? thanks, mike allen
is bulky, large, etc. that comes up with 2 answers; the last solved with the
first. I want to pull these 2 answers from bottomsub into another sub
("topsub"). I know I could do it by making bottomsub a function, but that
would be just one answer to be pulled into topsub. I tried...
Sub topsub()
a = 4
b = 6
Call bottomsub(a, b)
Range("a1") = c
Range("a2") = d
End Sub
Sub bottomsub(a, b)
c = a + b
d = b - a
End Sub
....but topsub did not "remember" the 2 answers from bottomsub. Any
thoughts? thanks, mike allen