A
Aaron
I'm fairly new to writing macros, so this may be easy. I have a macro
with defined variables from the excel worksheet. The variable changes
as the macro is run. For instance, when the macro begins the variable
may equal 1, but halfway through the macro (after actions have been
performed) the variable now equals 5. In the middle of my macro
(after the cell value has already changed to 5) I want the variable to
be read as 5, not the original 1, because the next portion of actions
is different based on the number of that variable. This does not
happen. Apparently Excel reads all variables before it runs the
macro, and does not change them during the run.
Does anyone know what I could do differently or use as a work-around?
Thanks in advance.
with defined variables from the excel worksheet. The variable changes
as the macro is run. For instance, when the macro begins the variable
may equal 1, but halfway through the macro (after actions have been
performed) the variable now equals 5. In the middle of my macro
(after the cell value has already changed to 5) I want the variable to
be read as 5, not the original 1, because the next portion of actions
is different based on the number of that variable. This does not
happen. Apparently Excel reads all variables before it runs the
macro, and does not change them during the run.
Does anyone know what I could do differently or use as a work-around?
Thanks in advance.