Hi jbass350z,
What you want can be done using VBA (Visual Basic for Applications). Each item you drew is known as a SHAPE in Excel. Shapes can be renamed from the generic name that Excel assigns, to something meaningful to you, such as V1. You can set up a logic table to indicate which shapes you want to modify (change color, make visible, hide, etc).
See the attached sample file which changes colors of 3 simple shapes. I suggest you download the file and click the rectangles on the top row.
The VBA code that does that is:
From your question, I assume you are not familiar with VBA, so here a a couple of tips to help you get started.
To access Visual Basic (VBA) see:
http://www.ablebits.com/office-addin...a-macro-excel/
a. Click on any cell in the Excel Spreadsheet (may not be needed).
b. ALT-F11 to get to VBA.
c. CTRL-R to get project explorer (if it isn't already showing).
d. Double Click on a 'Module Name' in 'Project Explorer' to see code for that module.
Debugger Secrets:
a. Press 'F8' to single step (goes into subroutines and functions).
b. Press SHIFT 'F8' to single step OVER subroutines and functions.
c. Press CTRL 'F8' to stop at the line where the cursor is.
d. 'Left Click' the margin to the left of a line to set (or clear) a BREAKPOINT.
e. Press CTRL 'G' to open the IMMEDIATE WINDOW. 'debug.print' statements send their
output to the IMMEDIATE WINDOW.
f. Select View > Locals to see all variables while debugging.
g. To automatically set a BREAKPOINT at a certain location put in the line:
'Debug.Assert False'
h. To conditionally set a BREAKPOINT at a certain location put in lines similar to:
if i >= 20 and xTV20 > 99.56 then
Debug.Assert False
endif
i. A variable value will be displayed by putting the cursor over the variable name.
Lewis
Bookmarks