Beginner coder, need help fixing
Program Goals: Spreadsheet includes data from multiple sampling locations for each pollutant. I have a drafted topographic map with circle shapes to indicate each respective sampling location. The program check the values for each sampling location and applies a background color to the shape based on the preset ranges. I have managed to work the basic code out to work for a designated sample location and associated shape. The next stage, I am wanting to add a loop so that it will go through all sampling locations (columns) and change the color of all sampling location shapes. I believe this will be 2 or 3 variables to nest together.
So my questions....
1)If I use a counter for columns like worksheets("data").CountA(rows(2)) will this count all the columns that arent blank in row 2? 2)Currently I am using the shape function for the shapeid, but in order to make it correspond correctly, I think I need to have the shapeid to match the sample location. No biggie, but how would I establish a counter for it to go through all of them? Maybe.... 3) Some columns may not have any data, is there anyway to ensure the program does not stop at those locations? Or should I just add a ND or something and add some sort of code to only consider numerical? 3) Some columns may not have any data, is there anyway to ensure the program does not stop at those locations? Or should I just add a ND or something and add some sort of code to only consider numerical?
Posted Aug 24, 2019, 2:16 AM UTC · edited
Make sure you place 5 spaces in front of each line. I can't see literally anything on mobile cause it looks like:
I've tried formatting it.