P
papa jonah
I don't know what a property is or how to use it, but I suspect it
might give me the answer to a problem.
What my workbook is used for is the user pastes data on the sheet in
the workbook. With some macros, a copy of the workbook is made and
saved to a new file, a bunch of calcs are done and charts are made.
Then the user can replace the set of data and do it all again. And of
course a new file is generated. However, I want the date variable to
be consistently applied everytime the user runs the macros with new
data sets.
I have created a step in workbook_open that tells it to run a macro (in
1 of 4 modules) that will ask the user to determine if a constant date
will be used with every set of data they will run while the workbook is
open. As part of this code, a constant is set (1 or 0) that will be
used later in determining which path the code should go. This works
fine - the first time it is run. After the first set of data, the
constant resets to 0 and the constant date is no longer applied.
What I need to do (I think) is when the workbook is opened, have the
input box set a property(?) that will remain until the workbook is
closed. I would then hope that the property will remain in place
everytime the macros are run.
I hope all of that makes sense.
Thanks for your help.
might give me the answer to a problem.
What my workbook is used for is the user pastes data on the sheet in
the workbook. With some macros, a copy of the workbook is made and
saved to a new file, a bunch of calcs are done and charts are made.
Then the user can replace the set of data and do it all again. And of
course a new file is generated. However, I want the date variable to
be consistently applied everytime the user runs the macros with new
data sets.
I have created a step in workbook_open that tells it to run a macro (in
1 of 4 modules) that will ask the user to determine if a constant date
will be used with every set of data they will run while the workbook is
open. As part of this code, a constant is set (1 or 0) that will be
used later in determining which path the code should go. This works
fine - the first time it is run. After the first set of data, the
constant resets to 0 and the constant date is no longer applied.
What I need to do (I think) is when the workbook is opened, have the
input box set a property(?) that will remain until the workbook is
closed. I would then hope that the property will remain in place
everytime the macros are run.
I hope all of that makes sense.
Thanks for your help.