Hello everyone.
I can't seem to gather enough pieces of code thru help and the web to do the following.
I have a defined constant in an EXCEL VBA and I want to change the value in the VBA code itself.
I know it involves using the VBProject object, but I can't find an example to go directly to a variable name and change it's value.
Below helps describe my need
--- VBA code prior to modify ---
DIM xyz as boolean = TRUE
--- code (needed) to modify xyz constant ---
VBProject.Components.Item(xyz) = FALSE
(or something like this...)
Thanks in advance!
innov
I can't seem to gather enough pieces of code thru help and the web to do the following.
I have a defined constant in an EXCEL VBA and I want to change the value in the VBA code itself.
I know it involves using the VBProject object, but I can't find an example to go directly to a variable name and change it's value.
Below helps describe my need
--- VBA code prior to modify ---
DIM xyz as boolean = TRUE
--- code (needed) to modify xyz constant ---
VBProject.Components.Item(xyz) = FALSE
(or something like this...)
Thanks in advance!
innov