원시데이터 수집 시스템
선정목록으로

Design and use of a flexible carbon wax electrode for electrochemical analyses and water splitting electrocatalysis

관련 수소연료전지 · (6) PEM(고분자전해질막)

기본 정보

저자
  1. Lovander, Matthew Douglas
DOI
10.25820/etd.007121
저널
Iowa Research Online (The University of Iowa)
발행년도
2024
발행기관
University of Iowa
피인용수
0
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.25820/etd.007121
토픽
Electrocatalysts for Energy Conversion
OpenAlex ID
W6908378246

평가 내용

관련도
관련
사업분야
수소연료전지 · (6) PEM(고분자전해질막)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
규칙(키워드) 기반 평가로 '수소연료전지 > PEM(고분자전해질막)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Additives, such as binders or films, are commonly used to attach solids onto an electrode surface for electrochemical analyses. These additives can significantly alter the measured electrochemical behavior of the solids. An adequately conductive electrode that provides an adhesive and embeddable surface for solids is highly desirable to remove the use of additives and their undesirable effects. The work presented in this thesis describes the development of a working electrode with an embeddable surface for electrochemical analyses of dissolved species, and on solid electrocatalysts for applications including electrochemical water-splitting reactions namely, the hydrogen evolution reaction (HER), the oxygen evolution reaction (OER), and the oxygen reduction reaction (ORR). The Teflon housed carbon wax (Cwax) electrode is easily produced in-house, in large quantities, and unique surface enables particulate samples to be embedded onto the electrode surface without other adhesives.

본문 1,393,505자

본문 펼치기
# Design and use of a flexible carbon wax electrode for electrochemical analyses and water splitting electrocatalysis Lovander, Matthew Douglas [https://iro.uiowa.edu/esploro/outputs/doctoral/Design-and-use-of-a-flexible/9984424792902771/filesAndLinks?index=0](https://iro.uiowa.edu/esploro/outputs/doctoral/Design-and-use-of-a-flexible/9984424792902771/filesAndLinks?index=0) [Lovander, M. D. (2024). Design and use of a flexible carbon wax electrode for electrochemical analyses](https://iro.uiowa.edu/esploro/outputs/doctoral/Design-and-use-of-a-flexible/9984424792902771) [and water splitting electrocatalysis [University of Iowa]. https://doi.org/10.25820/etd.007121](https://iro.uiowa.edu/esploro/outputs/doctoral/Design-and-use-of-a-flexible/9984424792902771) https://iro.uiowa.edu Free to read and download Copyright 2023 Matthew Douglas Lovander Downloaded on 2026/11/08 00:25:40 -0600 DESIGN AND USE OF A FLEXIBLE CARBON WAX ELECTRODE FOR ELECTROCHEMICAL ANALYSES AND WATER SPLITTING ELECTROCATALYSIS by Matthew Douglas Lovander A thesis submitted in partial fulfillment of the requirements for the Doctor of Philosophy degree in Chemistry in the Graduate College of The University of Iowa May 2023 Thesis Committee: Thesis Supervisor: Edward G. Gillan Thesis Supervisor: Johna Leddy Mark A. Arnold Lei Geng Alexei V. Tivanski All answers to the universe are out there, they’re just waiting for the right experiment. ii “A person who never made a mistake never tried anything new.” - Albert Einstein iii ACKNOWLEDGMENTS I would like to start by thanking my family and friends. To my parents, you taught me the benefits of a strong work ethic, provided guidance on the many adventures and career paths I chose to experience along my way, and for showing me that there is always a way to accomplish your goals, even when they take longer than expected. To my wife Kaylee, I owe a special thank you for standing behind me through every obstacle we have faced and for supporting me through every burden, including yet another semester to finish this work, well, this was finally the last one. To my lifelong friends, thank you for all of the conversations, support, and laughs. Of my chemistry family, I feel I should first thank all of my chemistry educators at the University of Minnesota Morris for their guidance and support and for introducing me to the world of chemistry. When I began my chemistry adventures at 28 years of age, I had never taken a chemistry course, not even in K-12, and their skills provided inspiration, motivation, and confidence for me to pursue a career in chemistry. A special thank you to Dr. Ted Pappenfus at UMM for providing me with the opportunity for two years of undergraduate chemistry research and the resulting publications that helped pave the way to my PhD. I was co-advised throughout the entirety of my graduate career at Iowa and I must thank both of my advisors Dr. Johna Leddy and Dr. Edward Gillan. To both, thank you for your advice, patience, guidance, and all of your time committed to my success. Dr. Leddy, thank you for providing me with endless research freedom to explore any and every corner of electrochemistry, for the opportunity to use your lab, instruments, and expertise to grow into a successful electrochemist. Dr. Gillan, thank you is not strong iv enough, but will have to do, your push and commitment, especially over these last few years is one of the key reasons my PhD work came to completion, you held and displayed faith in me even when I questioned it myself. My years at the University of Iowa were extensive, it is impossible to thank everyone individually, but I would like to thank many of my research partners from both the Leddy and Gillan groups for their friendship and support. Gillan group members Nathan Coleman, Nathan Black, Tony Montoya, and Ashley Flores thank you for the many lunches and BBQs to get away from the daily grind, the inorganic chemical expertise, and for providing many of the samples that were electrochemically investigated in this work. Janaka Abeysinghe and Ishanka Liyanage, also from the Gillan group, thank you both for your support these last few years and for continuing and extending the research with the carbon wax electrodes. Leddy group member Kristi Knoche, Nadeesha Rathuwadu, Jacob Lyon, Kasun Dadallagei, and Daniel Parr IV, thank you for sharing your electrochemical expertise and for working with me and guiding my processes for electrochemical success. Daniel, I owe you an extra thank you for introducing me to the powers of computer programming and for assisting me while I was writing code for data processing. I hope I provided guidance and assistance to all of you as well, good luck with all of your future endeavors. Thank you to the University of Iowa for providing exceptional equipment, staff, and spaces for both research and teaching. To the Chemistry department, thank you for providing qualified and helpful staff, advanced equipment, and all the layers of support, for both teaching and research. I’d like to individually thank Frank Turner, Benj Revis, and Mike Estenson for their engineering skills and knowledge. Thank you to the Central v Microscopy Research Facility for their staff and resources, which provided the ability to see my research on a microscale. Lastly, I’d like to extend a special thank you to my committee members for supporting the decisions of my co-advisers to see me through this long process towards a successful PhD dissertation. I am a non-traditional student and I was not expecting my life to find its way into the world of chemistry. Once I entered the world, I realized chemistry is a passion of mine, and I greatly enjoyed all of my experiences provided at the University of Iowa and the Chemistry department. There were so many opportunities for research and teaching, and for me to share my love of chemistry with students and professors. Again, thank you all. vi ABSTRACT Additives, such as binders or films, are commonly used to attach solids onto an electrode surface for electrochemical analyses. These additives can significantly alter the measured electrochemical behavior of the solids. An adequately conductive electrode that provides an adhesive and embeddable surface for solids is highly desirable to remove the use of additives and their undesirable effects. The work presented in this thesis describes the development of a working electrode with an embeddable surface for electrochemical analyses of dissolved species, and on solid electrocatalysts for applications including electrochemical water-splitting reactions namely, the hydrogen evolution reaction (HER), the oxygen evolution reaction (OER), and the oxygen reduction reaction (ORR). The Teflon housed carbon wax (Cwax) electrode is easily produced in-house, in large quantities, and unique surface enables particulate samples to be embedded onto the electrode surface without other adhesives. The Cwax electrode tips consisted of a 45 wt% graphite to 55 wt% paraffin wax composition that was chosen based on previous literature. Once developed, the electrochemical performance of the Cwax electrodes was compared to commercially available glassy carbon electrodes (GCE). Similar to the GCEs, the Cwax electrodes present stable potential windows in several electrolytes. The stable performance of the Cwax electrodes led to the examination of a dissolved redox couple by both Cwax and GC electrodes. The Cwax electrodes provided similar electrochemical behavior to the GCE with slight increases in resistance due to the high percentage of nonconductive paraffin wax. The Cwax electrode resistance was later improved and tuned by follow-up research by other group members. vii The respectable stability of the electrode behavior for the Cwax electrodes led to their use in several electrochemical experiments on a variety of metal phosphides, thiophosphates, and oxides synthesized in the Gillan group and detailed in this thesis. Prior to any advanced electrocatalytic work with research samples, several standard electrocatalysts, 10% Pt-C, 20% Pt-C, and RuO2, were tested with the Cwax electrodes. The 10% Pt-C catalyst is a standard reference catalyst for the HER in 0.5 M sulfuric acid, and in basic electrolytes, 0.1 M KOH, 20% Pt-C catalysts are referenced for ORR with rotating disk electrodes and RuO2 catalysts are standard for OER. The ~0 mV HER onset potential and the ~-50 mV potential for an HER current density of 10 mA cm <sup>-2</sup> for the 10% Pt-C catalyst embedded on the Cwax electrode compared well with reported literature in 0.5 M sulfuric acid. The 20% Pt-C catalyzed ORR experiments in 0.1 M KOH did not perform as well to literature with only 3 calculated electrons transferred when 4 were expected, a possible reflection of the kinetics for this system between peroxide formation (n = 2) and oxygen reduction (n = 4) or possible difficulties with the rotation apparatus as work with the rotation apparatus is only in its initial proof-of-concept and design phase. The ~1.450 V OER onset potential for RuO2 embedded on a static Cwax electrode tip compared very well with reported onset potentials. Metal phosphides (MPx), specifically CoP3, CuP2, FeP2, and NiP2, that were synthetically produced in the Gillan Laboratory by anion exchange reactions were systematically and extensively examined by electrochemical methods for HER electrocatalysis. All of the MPx materials showed some to significant HER activity, with an overall relative activity trend of CoP3 > c-NiP2 > m-NiP2 > FeP2 >> CuP2. The activity of CoP3 stood out in both extended cycling and long term high current density viii demand experiments in both 0.5 M sulfuric acid and in a 1.0 M phosphate buffered solution. The CoP3 sample only required an HER onset potential of ~-30 mV and ~-150 mV potential for an HER current density of 10 mA cm <sup>-2</sup> and the CoP3 sample maintained 98% stability at a constant applied potential of -170 mV for 18 hours that produced a near constant ~15 mA cm <sup>-2</sup> current density. The electrochemically active surface area (ECSA) of each metal phosphide sample was determined by cyclic voltammetry and the CoP3 had the largest ECSA value (~20 cm <sup>2</sup> ) and it maintained throughout all HER experiments. The copper phosphide (CuP2) sample displayed odd behavior, as the current density improved with cycling, which led to successful post electrochemical analyses with the carbon wax electrode tips by methods such as: SEM, XRD, and EDS. Metal thiophosphates (MPS3) of Co, Fe, and Ni that were synthetically produced in the Gillan Laboratory by anion exchange reactions were electrochemically examined for HER electrocatalysis. The more anion rich thiophosphates () did not display HER electrocatalytic activities as high as those for the metal phosphides however, similar to the MPx samples, the cobalt containing catalyst was the most well behaved and best performing HER electrocatalyst in 0.5 M sulfuric acid, onset and 10 mA cm <sup>-2</sup> current density potentials of ~-100 mV and ~-225 mV respectively. Metal oxides (MyOx), Co3O4 and NiO, were produced on templated, chemically dehydrated leaves by the Gillan Laboratory. These metal oxides were preliminarily investigated as possible supercapacitance materials as well as oxygen evolution electrocatalysts, both in basic electrolytes. Initial results displayed low to moderate capacitance capabilities for all tested samples, with Co3O4 performing comparable to metal oxide nanoparticles. In addition, appreciable OER behavior was identified for ix some of the samples. The nickel oxide templated on the Jade leaves displayed the most promising OER activity with an applied potential of ~1.740 V for 10 mA cm <sup>-2</sup> current density, only ~20 mV higher than the RuO2 standard. Lastly, an Excel Visual Basic for Applications (VBA) program for quickly and systematically processing large data sets is presented. The program allows 100 datasets to be processed into Excel spreadsheets and charts in approximately 5 minutes compared to several hours. The analysis capabilities and automated electrochemical processing of larger data sets described in this thesis are a product of output from this VBA Excel macro program. x PUBLIC ABSTRACT Electrodes are critical components in batteries, fuel cells, and all devices that combine chemical and electrical events. Electrodes are also needed in sensors and many forms of analysis. Analytical electrochemical measurements require the use of stable electrodes to perform electron transfer experiments on soluble and insoluble materials. The working electrode is the electrode of focus in electrochemical experiments. To measure the electrochemical behavior of solid catalysts, the solid catalysts must be intemently adhered to the electrode surface for proper electrical connection. Typically, binders or films are used to adhere the solids onto the electrode surface for measuring the electrochemical behavior of the solids. The use of these binders or films can alter the measured electrochemical behavior of the adhered solids and lead to incorrectly reported behaviors for the solids. The work presented in this thesis describes the development of a working electrode design that itself provides an embeddable, self-adhesive surface for adhering solids without mixing with binders or covering with films. These embeddable electrodes are easily produced, inexpensive, and provide comparable stability to expensive commercially available electrodes that require binders or films. The embeddable electrode material is a mixture of graphite with paraffin wax and are simply called carbon wax electrodes. Certain electrode materials are more reactive in specific electrolytes, especially those at relatively low or high acid or base values. A desirable working electrode must carry electrical current and provide a low electrical background with low reactivity when an external potential is applied. The carbon wax electrodes display electrochemical behavior similar to commercial carbon electrodes in all tested electrolytes. The carbon xi wax electrodes were able to measure the electrochemical behavior of the dissolved metal ions in solution and the measured behavior compared well with a commercial carbon electrode. Electrochemical experiments were performed using these carbon wax electrodes with different catalysts to measure their ability to produce hydrogen gas and/or oxygen gas from water, called water splitting reactions. Metal phosphides and metal thiophosphates were successfully investigated as electrocatalysts for hydrogen gas production. Metal oxides were investigated as electrocatalysts for oxygen gas production. Metal oxides were also tested for energy storage applications called capacitors. Data processing for these electrocatalytic experiments is quite extensive and time consuming and a comprehensive Excel macro computer program was written to aid with the rapid and efficient processing large electrochemical data sets and aiding in visualizing trends in data for sequential experiments. xii TABLE OF CONTENTS LIST OF TABLES .......................................................................................................... xvii LIST OF FIGURES ....................................................................................................... xviii CHAPTER 1: INTRODUCTION AND BACKGROUND .................................................1 1.1. Introduction ...........................................................................................................1 1.2. Electrochemical Cells, Electrolytes, Purging Gases, and Electrodes ....................2 1.3. The Reversible Hydrogen Electrode (RHE) ........................................................12 1.4. Loading Methods for Working Electrodes ..........................................................14 1.5. Carbon Wax as A Working Electrode .................................................................17 1.6. Electrochemical Methods for the Analysis of Electroactive Materials ...............19 1.6.1. Linear Sweep Voltammetry (LSV) ............................................................19 1.6.2. Cyclic Voltammetry (CV) ..........................................................................21 1.6.3. Capacitance (Double Layer, Pseudo, and Super) .......................................23 1.6.4. Electrochemically Active Surface Area (ECSA) .......................................26 1.6.5. Hydrogen Evolution Reaction (HER) ........................................................27 1.6.6. Oxygen Evolution Reaction (OER) ............................................................30 1.6.7. Tafel Analysis .............................................................................................31 1.6.8. Constant Potential Time Base Amperometry (CPTBA) ............................34 1.7. Conclusions .........................................................................................................35 1.8. References ...........................................................................................................35 CHAPTER 2: AN EMBEDDABLE ELECTRODE FOR ELECTROCHEMISTRY OF POWDERED SOLIDS ..............................................................................38 2.1. Introduction .........................................................................................................38 2.2. Experimental .......................................................................................................50 2.2.1. Safety Considerations for Hydrogen Gas and Electrochemistry ................50 xiii 2.2.2. Materials .....................................................................................................51 2.2.3. Carbon-Wax Electrode Preparation ............................................................52 2.2.4. Electrochemical Cell Setup Overview .......................................................58 2.2.5. Double Layer Capacitance - Chronoamperometry: GCE and Cwax Electrodes ...................................................................................................59 2.2.6. <mark>Cyclic Voltammetry (CV) of a Ru(bpy)</mark> 3 <sup>2+</sup> <mark>Redox Probe</mark> ...........................61 2.2.7. <mark>Electrocatalytic Reactions of Solids Embedded on C</mark> wax <mark>Electrodes</mark> ..........66 2.3. Results and Discussion ........................................................................................78 2.3.1. Design and Production of Functional Sticky Carbon Wax Electrodes ......78 2.3.2. Electrochemical Potential Windows of Different Electrolytes ..................82 2.3.3. Capacitance by Chronoamperometry (Charge/Discharge) .........................84 2.3.4. Investigation of Cwax electrodes for Interfacial Redox Reactions ..............86 2.3.5. Graphite-Wax as A Working Electrode with Embedded Catalyst Powders ....................................................................................................................93 2.3.6. Impact of Cwax Electrical Resistance on Electrochemical Measurments .105 2.4. Conclusions .......................................................................................................109 2.5. References .........................................................................................................110 CHAPTER 3: ELECTROCATALYTIC PRODUCTION OF HYDROGEN FROM METAL PHOSPHIDES IN ACIDIC AND BUFFERED ELECTROLYTES ...................................................................................117 3.1. Introduction .......................................................................................................117 3.2. Experimental .....................................................................................................121 3.2.1. Safety Considerations for Hydrogen Gas and Electrochemistry ..............121 3.2.2. Materials ...................................................................................................122 3.2.3. Working Electrode Preparation ................................................................122 3.2.4. Electrochemical Setup ..............................................................................123 3.2.5. Electrochemical Parameters and Experiments .........................................124 xiv 3.3. Results and Discussion ......................................................................................127 3.3.1. ECSA of Metal Phosphides (MPx) ..........................................................127 3.3.2. MPx Hydrogen Evolution (HER) .............................................................130 3.3.3. HER in Acidic Electrolyte (0.5 M H2SO4) ...............................................130 3.3.4. MPx HER in Near Neutral Phosphate Buffered Solution (1.0 M PBS) ...148 3.3.5. Extended Investigation into Copper Phosphide (CuP2) ...........................149 3.4. Conclusions .......................................................................................................152 3.5. References .........................................................................................................152 CHAPTER 4: ELECTROCATALYTIC PRODUCTION OF HYDROGEN FROM METAL THIOPHOSPHATES IN ACIDIC ELECTROLYTES ............158 4.1. Introduction .......................................................................................................158 4.2. Experimental .....................................................................................................160 4.2.1. Safety Considerations for Hydrogen Gas and Electrochemistry ..............160 4.2.2. Materials ...................................................................................................160 4.2.3. Working Electrode Preparation ................................................................160 4.2.4. Electrochemical Setup ..............................................................................161 4.2.5. Electrochemical Parameters and Experiments .........................................162 4.3. Results and Discussion ......................................................................................165 4.3.1. ECSA of Metal Thiophosphates (MPS3) ..................................................165 4.3.2. MPS3 Hydrogen Evolution (HER) ...........................................................166 4.3.3. HER in Acidic Electrolyte (0.5 M H2SO4) ...............................................167 4.4. Conclusions .......................................................................................................180 4.5. References .........................................................................................................181 xv CHAPTER 5: ELECTROCHEMICAL INVESTIGATION OF TEMPLATED METAL OXIDE CAPACITANCE AND UTILITY IN OXYGEN EVOLUTION CATALYSIS............................................................................................186 5.1. Introduction .......................................................................................................186 5.2. Experimental .....................................................................................................191 5.2.1. Safety Considerations for Oxygen Gas and Electrochemistry .................191 5.2.2. Materials ...................................................................................................192 5.2.3. Metal Oxides (MyOx) on Leaf Templates .................................................192 5.2.4. Working Electrodes ..................................................................................193 5.2.5. Electrochemical Setup ..............................................................................196 5.2.6. Electrochemical Parameters and Experiments .........................................197 5.3. Results and Discussion ......................................................................................199 5.3.1. Capacitance of Blank Electrodes in 3 M KOH ........................................199 5.3.2. Capacitance of Metal Oxides (MyOx) .......................................................202 5.3.3. Metal Oxide (MyOx) Oxygen Evolution Reactions (OER) ......................207 5.4. Conclusions .......................................................................................................216 5.5. References .........................................................................................................217 CHAPTER 6: CONCLUSIONS AND FUTURE WORK ...............................................223 6.1. Overall Thesis Conclusions ...............................................................................223 6.2. Future Work ......................................................................................................228 APPENDIX A: PRELIMINARY INVESTIGATIONS OF MAGNETIC FILM MAGNETIC MOMENTS AND ELECTRODE MASS LOADINGS ....231 APPENDIX B: IDEAS FOR A NON-AQUEOUS REFERENCE ELECTRODE .........240 APPENDIX C: VBA PROGRAM FOR HER AND OER DATA PROCESSING .........245 xvi LIST OF TABLES Table 1.1: Inert and Reactive Aqueous Electrolytes ......................................................... 6 Table 1.2: Inert and Reactive Purge Gases ....................................................................... 7 Table 1.3: Advantages and Disadvantages of Working Electrode Subsrates ................. 10 Table 1.4: Advantages and Disadvantages of Different Counter Electrode Materials ... 11 Table 1.5: Common Reference Electrodes and Their Reactions .................................... 12 Table 1.6: RHE Potential Conversions ........................................................................... 14 Table 2.1: Advantages and Disadvantages of Carbon Electrode Materials .................... 49 Table 2.2: Carbon Wax Electrode Composition Advantages and Disadvantages. ......... 79 Table 2.3: Capacitance Results for Glassy Carbon and Carbon Wax Electrodes ........... 86 Table 2.4: Capacitance Results for Bare Cwax and EMD-Cwax Electrodes ...................... 97 Table 2.5: Resistance and Conductivity Data for Graphite Weight Percentages.......... 107 Table 3.1: Literature Comparison for MPx HER Activity in 0.5 M H2SO4. ................. 120 Table 3.2: HER Results for MPx Materials in Acidic Electrolyte ................................ 139 Table 3.3: HER Results for MPx Materials in Buffered Electrolyte ............................. 149 Table 4.1: HER Results for MPS3 Materials in Acidic Electrolyte .............................. 171 Table 4.2: iR Compensated HER Results for MPS3 Materials in Acidic Electrolyte ... 179 Table 5.1 Capacitance Results for Blank Electrodes in Alkaline Electrolyte ............... 201 Table 5.2 Capacitance Results for MyOx Materials in Alkaline Electrolyte ................. 205 Table 5.3: OER Results for MyOx Materials in Alkaline Electrolyte ........................... 215 Table A.1: Magnetic Susceptibility Values for SiMag Particles .................................. 234 xvii LIST OF FIGURES Figure 1.1: The two images represent single compartment electrochemical cells for a two electrode and a three electrode electrochemical cell, respectively. The counter electrode acts as both the counter, and the reference electrode in a two electrode cell while the three electrode cell has a separate reference electrode to provide a standard reference potential that the applied potential is measured against. ..................................... 2 Figure 1.2: The two images represent double compartment electrochemical cells for a two electrode and a three electrode electrochemical cell, respectively. The divided compartments separate the electrochemical species produced at each electrode from migrating to each other. Several separators can be used including, glass frits, semipermeable membranes including Nafion, and modified polymers. The separators must allow the electrolyte to flow to maintain the circuit between the two electrodes. Any restrictions to the flow can lead to friction and heat, decreased diffusion, and an increase in the cell resistance altering the reaction behavior and the collected data. ......... 3 Figure 1.3: The four images represent electrochemical cells composed of two different electrolytes: potassium sulfate (top images) and sodium chloride (bottom images). The left two images show the ions equally distributed in the solvent with no applied potential. The right two images display the movement of the ions when a positive potential is applied to the left electrode of the two cells. The larger charge of the sulfate can move twice the charge of the other ions, its size however, restricts its flow (small black arrow) and along with possible ion pairing, increasing the solution’s resistance. The chloride ions are about the same size as the potassium cations and their movement through the solvent are about the same, while the sodium ion is the smallest and will move the most freely, and the fastest. ..................................... 5 Figure 1.4: A simple apparatus setup to maintain general solvent saturation, the “wetness”, of the electrolyte. The purge gas is dry (red/orange dots) and can facilitate the evaporation of the solvent from the electrolyte solution altering its concentration. The purge gas should be bubbled through the same solvent as the electrolyte solution to ‘wet’ or minimize the drying effect (blue dots). ............................. 7 Figure 1.5: The two images show the electron flow between a two electrode cell and a three electrode cell, respectively. When a reference electrode is used, the working electrode potential (Eworking) is measured against the standard potential of the reaction housed within the reference electrode (E <sup>o</sup> ref) adjusted for the pH of the electrolyte. ......... 9 xviii Figure 1.6: The four images represent examples of working electrode preparations. The top left image shows a film suspending particles throughout to prepare a particle/film matrix. The top right image displays particles adhered to the surface of an electrode by a film. Paste and pellet electrodes utilize mixtures of particles with either viscous liquids such as mineral oil or with other solids including carbon and PTFE that are pressed into a housing with a current collector. Annealed electrodes require the sample and the current collector to bond through annealing at high temperatures and then the bare current collector is covered with an inert epoxy (represented in yellow) to seal all but the sampled surface from the electrolyte. ............. 15 Figure 1.7: Graphite-wax electrode loading and design. A metal (current collector such as copper, brass, or aluminum is dipped into a melted previously prepared homogenous mixture of graphite and paraffin wax, the coated current collector is quickly pressed into a pile of sample, and then the electrode is wrapped with Teflon tape to seal all but the sample covered part of the electrode. ........................................... 18 Figure 1.8: Both images represent data collected by linear sweep voltammetry (LSV). The left image represents a reduction experiment (H2) where the potential is ramped from more positive to more negative potentials. The right image is an oxidation reaction (O2) where the potential is ramped from more negative to more positive potentials. Note: both plots are in IUPAC convention, where the x-axis is plotted with more positive to the right and the y-axis is negative above the x-axis. ........ 20 Figure 1.9: The two images represent one set of data collected by CV. The left image represents the US/Texas convention where the x-axis is plotted with negative values on the right and the y-axis is plotted as positive above the x-axis. The right image represents the same data but in the IUPAC convention where the x-axis is now plotted with positive values to the right and the y-axis is plotted as negative above the x-axis. The peak splitting potential, _ΔEp_, is the difference between the peak potentials and the peak current locations are shown but calculations are explained further in the text. Oxidative potential was applied first in this example, shown by the large arrow in each plot to represent the initial direction of applied potential..................................... 22 Figure 1.10: The three cyclic voltammograms represent three types of electrical capacitance as described above. Type A capacitance is double layer capacitance, which occurs between the electrode and electrolyte only and results from charge build up due to the charged ions at the electrode surface pushing against the charge within the electrode, for example a carbon wax (Cwax) electrode. Type B capacitance is pseudocapacitance, which arises from a faradaic partial charge transfer immediately on the electrode/solution interface that results from a surface redox reaction such as MnO2 (EMD). Type C capacitance is faradaically dominated as shown by the NiO redox reaction example. .................................................................................................... 24 xix Figure 1.11: A depiction of the mechanism for hydrogen evolution at an electrode surface in acidic solution. The electrode may contain a surface coating of a catalyst material to facilitate the HER process. First, protons (H <sup>+</sup> ) adsorb to the surface of the electrode, followed by electron transfer to form radicals (H <sup>●</sup> ) that combine to form covalent dihydrogen (H2), which finally desorb from the electrode surface. ................... 29 Figure 1.12: A representative LSV polarization curve (left) for 10% Pt-C on 0.079 cm <sup>2</sup> carbon wax electrode in H2 purged 0.5 M H2SO4. The lower overpotential is in red and the higher overpotential in blue. The resulting Tafel plot (right) from the LSV polarization curve: shallow slope (red) -35 mV decade <sup>-1</sup> and steep slope (blue) 120 mV. Data was collected at 5 mV s <sup>-1</sup> with a Pt mesh counter electrode and SCE reference, converted to RHE. ............................................................................................ 33 Figure 1.13: Images showing a decrease in current density with time (left), stable current density with time (middle), and an increase in current density with time (right). Electrocatalytic stability is easily determined when CTPBA is performed as only the middle image represents stability. The decrease or increase in behavior may be the result of compositional changes occurring from the excessive demand over time. .................................................................................................................................. 35 Figure 2.1: The image represents a variety of experimental conditions and expectations for a working electrode. The embeddable electrode design and function is the main focus of this chapter. HER and OER experiments are often performed in both acidic and basic aqueous solutions, OER in acidic electrolytes are less commonly reported, and ORR is commonly performed in only basic solutions. However, this reaction requires rotation of the working electrode, and the electrode surface must be highly sensitive to detect the electron transfer of reduction/oxidation (redox) reactions at low concentrations. ........................................................................... 38 Figure 2.2: The images show a variety of working electrode inserts that are commercially available: gold (Au), platinum (Pt), and glassy carbon (GC). The surfaces of these electrodes are mirror polished prior to each use. Image: Pine Research 2022 https://pineresearch.com/shop/products/electrodes/disk-inserts/mostcommon/ ........................................................................................................................... 40 Figure 2.3: The images represent examples of carbon electrodes: a graphite rod (left), a glassy carbon electrode, GCE (middle), and carbon cloth or paper (right). ........ 43 Figure 2.4: The image represents drop casting or film deposition of a sample (red dots), graphite or AC black (black dots) for increased conductivity, and Nafion suspension (blue liquid) to produce a composite film on the electrodes, graphite rod, glassy carbon electrode (GCE), and carbon cloth or paper. Reproducibility is difficult with this method as suspensions are assumed homogeneous with the suspended particles remaining evenly distributed post drying. .......................................................... 45 xx Figure 2.5: The image displays the simple processes of preparing a carbon wax electrode. The mass of the bare Cwax electrode tip is first obtained, then warmed solid particles (red dots) are adhered by using the PTFE with brass connector to press the particles into the ‘soft’ conductive surface provided by the carbon wax. The loaded tip is then reweighed and ready for use. The particles will directly interface with the electrolyte as the particles are not bound behind a film or in a paste and the mass can be used for future gravimetric and extensive property comparisons. ............................... 50 Figure 2.6: Apparatus used to form bulk carbon waxes using 45 wt% graphite : 55 wt% wax (> 65°C mp paraffin) mixtures prepared (A) original setup: a Corning hotplate, a thermometer, a water bath (~80°C) consisting of a low profile beaker, and a 250 mL beaker to hold the mixture, and (B) an updated setup: a Buchi B-490 heating bath set to 80°C with any beaker of choice to hold the mixture. ......................... 52 Figure 2.7: The images are the original housing and loading methods used for carbon wax electrode production. (A) Coiled copper wire inserted into a PTFE tube awaiting graphite-wax mixture, along with a variety of electrode housing materials. (B) A variety of the electrode diameters afforded by PTFE tubing sizes. (C) A syringe apparatus designed to pull the graphite-wax mixture up and around the inserted metal current collector. ........................................................................................ 53 Figure 2.8: Graphite-wax electrode tip filling apparatus: (A) a disassembled hot melt glue gun apparatus connected to (B) a Variac variable transformer set to 60-80% to fill electrode tips with a graphite-wax mixture, and a plunger rod to press the mixture through the apparatus into the empty tips, (C) a jar of pre-threaded and precut PTFE tips, and (D) a jar of graphite-wax chunks cut to a size to fit in hot melt filling hole. ..... 54 Figure 2.9: In this figure are several images of PTFE graphite-wax (Cwax) electrode tips: (A) A sliced view of a PTFE graphite-wax tip with threaded wall added to grip mixture. (B) PTFE carbon wax tip attached to modified BASi electrode for hand pressing to compress graphite-wax mixture. (C) Modified BASi electrode with rubber septum awaiting tip. (D) A graphite-wax tip attached to brass current collector (a small amount of powdered graphite is added to the back of the tip before the brass rod is inserted to increase connectivity) and then the tip is sealed with Parafilm. ........... 55 Figure 2.10: The image is a hexagon shaped, aluminum base with height adjustable stub and PTFE cushion for loading powdered samples onto the improved PTFE Cwax tips. The screw, at the right of the base in the image, allows the height of the center stub to be adjusted when needed as well as removal for cleaning and replacement purposes. The centralized stub is size matched to the PTFE Cwax tips providing an ideally sized surface to add sample for electrode loading. The aluminum transfer stub was manufactured by Frank Turner (resident machinist for the Department of Chemistry at the University of Iowa)................................................................................ 56 xxi Figure 2.11: The images are of a modified Pine Research rotating disk electrode with a removable PTFE shroud. (A) shows the modification and shroud adapted to securely mount a graphite-wax tip. (B) a graphite-wax tip loaded with a powdered sample affixed to the modified RDE. (C) the PTFE shroud around the graphite-wax tip ready for rotating electrochemical experiments. The small PTFE shroud was manufactured by Frank Turner (resident machinist for the Department of Chemistry at the University of Iowa). ................................................................................................ 58 Figure 2.12: The left image displays a gas purging through a PTFE tube that was inserted into water, within a vacuum flask, to hydrate the purge gas to prevent evaporation of electrolyte solution in the electrochemical cell (inserted image). Inset image shows a typical three electrode cell (working electrode (graphite wax, or glassy carbon (GCE)), a counter (auxiliary) electrode (graphite rod, platinum wire or mesh), and a reference electrode (SCE, AgCl, or Hg/HgO). Glass ‘beaker’ cell was manufactured by Benj Revis (resident scientific glassblower for the Department of Chemistry at the University of Iowa)................................................................................ 59 Figure 2.13: The left image represents example parameters for the CA method of the CHI 760b potentiostat to collect charge/discharge amperograms of the electrodes in N2 purged then blanketed H2SO4 and KOH solutions. The right image is a representative charge/discharge curve for a bare 0.079 cm <sup>2</sup> Cwax electrode in N2 purged then blanketed 0.1 M KOH solution. A platinum mesh counter electrode and Hg/HgO reference electrode was used to produce the plot that resulted from the applied parameters. The chronoamperometric experiment was performed in a 100 µs charge/discharge cycle. ..................................................................................................... 61 Figure 2.14: The left image represents example parameters used for the CV method of the BASi potentiostat to collect cyclic voltammograms of 1.00 mM Ru(bpy)3 <sup>2+</sup> dissolved in N2 purged then blanketed 0.1 M HNO3 with a 0.44 cm <sup>2</sup> glassy carbon electrode. The initial direction was positive as the oxidation, the loss of an electron, must first occur. The anodic peak at ~1.18 V vs. Ag/AgCl in the right image is the potential where the oxidation reaction is most favored, while the cathodic peak at ~1.11 V vs. Ag/AgCl is the potential where the reduction reaction is most favored. The peak currents increase linearly with increased scan rate. The ideal potential peak splitting for a one electron transfer redox reaction is 59 mV. The 70 mV peak splitting of the right image signifies a slightly slower charge transfer rate than the ideal. The sensitivity is chosen based on the maximum current (peak heights) and the number of segments is chosen by the user based on the number of desired cycles. Two segments are the minimum number necessary to produce one cyclic voltammogram. ................................................................................................................. 64 xxii Figure 2.15: The image represents a cyclic voltammogram of 1.00 mM Ru(bpy)3 <sup>2+</sup> dissolved in N2 purged then blanketed 0.1 M HNO3 with a 0.44 cm <sup>2</sup> glassy carbon electrode at a rotation rate of 800 RPMs. The initial direction is positive, and the scan rate is 5 mVs <sup>-1</sup> to slowly move through the redox reaction to measure the plateau current, the limiting current. The current limits due to the mass transport of the redox species being delivered to the electrode at a specific rotation rate. The limiting currents increase linearly with increasing rotation rate due to the increase of redox species delivered to the electrode. The potentials in this cyclic voltammogram are versus an Ag/AgCl reference electrode and the remaining parameters match those in Figure 2.14. ....................................................................................................................... 66 Figure 2.16: The images are different angles of the same electrochemical cell. (A) Glass electrochemical cell with PTFE cover sealed with parafilm and secured with electrical tape. (B) a three electrode cell consisting of carbon wax (working), saturated calomel electrode, SCE (reference), and Pt mesh (counter) along with a fritted glass tube to disperse purge gases. (C) A cross-shaped magnetic stir bar within smaller glass beaker at ~6 mm distance from working electrode to aid in bubble removal (only for HER and OER experiments). Glass ‘beakers’ were manufactured by Benj Revis (resident scientific glassblower for the Department of Chemistry at the University of Iowa). .......................................................................................................... 68 Figure 2.17: The left image represents example parameters for the CV method of the BASi 100W potentiostat to collect cyclic voltammograms. The right image is a representative cyclic voltammogram that resulted from the applied parameters. As 10 was chosen for the number of segments, 5 cycles (1 forward and 1 backward) will be performed by the potentiostat. This plot shows the rectangular current envelope, highlighted by the (red rectangle) between ~0.1 V and ~0.7 V, and the plotted data is an example of Type B pseudocapacitance of MnO2 (EMD) on a 0.079 cm <sup>2</sup> Cwax electrode in N2 purged then blanketed 1.0 M Na2SO4. Typically, Type A double layer capacitance of an electrode will provide a similar rectangular potential window, but with a smaller current envelope. Capacitance, no matter the type, is determined by integrating the area of the current envelope, in the chosen potential range, to give the charge, which is divided by the chosen potential window in volts to give the capacitance unit of farads. The EMD data was collected and discussed further in Section 2.3.5.1................................................................................................................... 71 Figure 2.18 : The image represents the CV Specific Parameters for the CV method of the BASi 100W potentiostat used to collect cyclic voltammograms of the N2 purged 1.0 M Na2SO4. Set the Sample Interval to add or subtract data points, set a large Sample Interval for large data sets. In the example, the potential will step by 2 mV towards the set potentials and the time per step is easily calculated from the scan rate. For example, a 2 mV step at 5 mV s <sup>-1</sup> will take 0.40 s. The time multiplied by the current (A) for that step returns the charge in coulombs (C). The Quiet Time is the time the potentiostat sits at the initial potential before beginning the experiment, the Quiet Time was set by the program default settings. ........................................................ 72 xxiii Figure 2.19: Overlay plots of three different electrolyte windows obtained with a 0.079 cm <sup>2</sup> carbon wax tip electrode (45% graphite) and a Pine Research 0.44 cm <sup>2</sup> glassy carbon electrode (GCE). Bottom right graph is an overlay of four different electrolyte windows obtained with a graphite wax electrode. The electrolytes were N2 purged and the data was collected at 5 mV s <sup>-1</sup> with a Pt mesh counter electrode and either a Hg/HgO (basic solutions) or a SCE (acidic solutions) reference electrode in O2 purged 0.1 M KOH. ................................................................................................. 83 Figure 2.20: A plot displaying charge/discharge curves for a Pine Research 0.44 cm <sup>2</sup> glassy carbon electrode (GCE) and a 0.079 cm <sup>2</sup> graphite-wax tip (left) in N2 purged then blanketed 0.1 M KOH. A plot of the linear range of the initial current drop of the discharge region (right). .............................................................................................. 84 Figure 2.21: Glassy carbon electrode (GCE): transient measurement of the one electron transfer for 1.0 mM tris(2,2’-bipyridyl) dichlororuthenium (II) hexahydrate (Ru(bpy)3 <sup>2+</sup> ) in N2 blanketed 0.1 M HNO3 after an initial 15 minutes of direct N2 purge. The peak splitting, determined by methods explained in Chapter 1, was 64 mV at 100 mV s <sup>-1</sup> (top left). Plot of peak current versus (scan rate) <sup>1/2</sup> obtained from transient measurements (top right). Steady state measurement of Ru(bpy)3 <sup>2+</sup>, at 1.550 V, using rotation (bottom left). Plot of Levich current versus (rotation rate) <sup>1/2</sup> obtained from steady state measurements (bottom right). ................................................ 90 Figure 2.22: Graphite wax electrode: transient measurement of the one electron transfer for 1 mM tris(2,2’-bipridyl)dichlororuthenium(II) hexahydrate (Ru(bpy)3 <sup>2+</sup> ) in N2 blanketed 0.1 M HNO3 after an initial 15 minutes of direct N2 purge. The peak splitting, determined by methods explained in Chapter 1, was 85 mV at 100 mV s <sup>-1</sup> (top left). Plot of peak current versus (scan rate) <sup>1/2</sup> obtained from transient measurements (top right). Steady state measurement of Ru(bpy)3 <sup>2+</sup>, at 1.550 V, using modified RDE apparatus (bottom left). Plot of Levich current versus (rotation rate) <sup>1/2</sup> obtained from steady state measurements (bottom right). ................................................ 92 Figure 2.23: The image is of a 0.079 cm <sup>2</sup> Cwax electrode tip with copper plated while in an H2 purged 0.5 M H2SO4 electrolyte solution. The dissolved copper ions leaked into the electrochemical cell from the copper lead attached to the platinum counter electrode. ........................................................................................................................... 93 Figure 2.24: Cyclic voltammograms of a bare Cwax electrode, and MnO2 (EMD) embedded onto a Cwax electrode. The electrode areas were 0.079 cm <sup>2</sup> and the CVs were collected between -100 and 800 mV (vs. SCE) at 5 mV s <sup>-1</sup> in N2 purged 1.0 M Na2SO4. The plot is in US/Texas convention. ................................................................. 96 xxiv Figure 2.25: The image shows voltammograms of a 0.079 cm <sup>2</sup> blank Cwax electrode (black) and a 0.079 cm <sup>2</sup> Cwax electrode tip with commercial 10% Pt-C embedded (red) in 0.5 M H2SO4 at 5 mV s <sup>-1</sup> with constant H2 purge. As shown, the blank Cwax electrode provides a large reductive window in the acidic electrolyte, which is ideal for studying HER electrocatalysts, as less than 5 mA cm <sup>-2</sup> current density was passed in the 600 mV potential window. The Pt-C catalyst began H2 production at ~ -10 mV, or at an overpotential ( _η_ ) of 10 mV over the thermodynamic reduction potential for HER of 0.0 mV, and the catalyst was passing 10 mA cm <sup>-2</sup> current density at ~ -50 mV, both versus RHE. ...................................................................................................... 98 Figure 2.26: The image shows voltammograms of a 0.079 cm <sup>2</sup> blank Cwax electrode (black) and a 0.079 cm <sup>2</sup> Cwax electrode tip with embedded commercial RuO2 (red) measuring OER in 0.1 M KOH at 5 mV s <sup>-1</sup> with constant O2 purge. As shown, the blank Cwax electrode provides a large oxidative window in the basic electrolyte, which is ideal for studying OER electrocatalysts, as less than 5 mA cm <sup>-2</sup> current density was achieved at 1,800 mV vs RHE. The RuO2 began O2 production at ~1.445 V, or at an overpotential ( _η_ ) of 216 mV over the thermodynamic oxidation potential for OER of 1.229 V, and the catalyst was passing 10 mA cm <sup>-2</sup> current density at 1.550 V, both versus RHE. .................................................................................................................... 100 Figure 2.27: The left image represents LSV data collected with the rotating apparatus presented in Figure 2.11 at different rotation rates using a 0.079 cm <sup>2</sup> Cwax tip with 20% Pt-C embedded in 0.1 M KOH with constant O2 bubbling @ 5 mVs <sup>-1</sup> . The vertical line represents the half-wave ( _E1/2_ ) potential at 1,600 RPM (925 mV vs. RHE). The right image represents the linear fit of the limited current values measured at 650 mV vs. RHE. The slope of this line allows for the number of electrons to be calculated. In this particular experiment the calculated electrons ( _n_ ) were ~3, which may be representative of the mixed kinetics of hydroxide and peroxide formation. ......................................................................................................... 102 Figure 2.28: The large image is a plot of the resistance (Ω) versus the weight percent (wt%) of graphite for different Cwax mixtures at a distance of 1.0 cm between the multimeter probes. The 20, 25, or 30 wt% graphite mixtures were not shown as the measured resistances were much larger and off the scale for this plot. The inset image is a zoomed image of the 45 to 60 wt% graphite range of the plot. Surprisingly, the 50 and 55 wt% Cwax mixtures display nearly identical resistances, while the 45 wt% exhibits ~3 times the resistance. The resistance for the 60 wt% mixture was 20 Ω, which was the lowest resistance for the explored Cwax mixtures, however homogenous mixtures are difficult to produce at 60 wt% and was not used for any electrodes. The 100 wt% is for a graphite rod. .................................................. 106 xxv Figure 2.29: The large image is a plot of the conductivity (Ω <sup>-1</sup> cm <sup>-1</sup> ) versus the weight percent (wt%) of graphite for different Cwax mixtures at a distance of 1.0 cm between the multimeter probes. The data for 20, 25, or 30 wt% graphite mixtures is not shown as the three mixtures exhibited conductivities near zero. The inset image is a zoomed image of the 45 to 60 wt% graphite range of the plot. As with the resistance, the 50 and 55 wt% Cwax mixtures display nearly identical conductivities, while the 45 wt% exhibits ~3 times lower conductivity and the 60 wt% mixture was 0.61 Ω <sup>-1</sup> cm <sup>-1</sup>, which was the highest as expected from its lower resistance. The 100 wt% is for a graphite rod. ................................................................................................ 108 Figure 3.1: An overlay of cyclic voltammograms for CoP3 at five different scan rates (V s <sup>-1</sup> ) in H2 purged then blanketed 0.5 M H2SO4. The boxed region identifies the non-faradaic region in the voltammogram and the plot points along the black dotted line represents the chosen (100 mV) region utilized to obtain the data in the right image of Figure 3.2 for the ECSA calculation. Data obtained using a three electrode cell with a 0.079 cm <sup>2</sup> Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. .......................................................................... 128 Figure 3.2: The left image is a plot of the anodic (blue line) and cathodic (orange line) charging currents (at -100 mV vs RHE plotted) as a function of scan rate. The right image is a plot of the average of the absolute values of the anodic and cathodic charge currents from the left image. The capacitance ( _µF = µA s V_ <sup>_-1_</sup> ) is one half of the slope of the right image. ............................................................................................ 129 Figure 3.3: Overlay of 50 LSV polarization curves for FeP2 (left). Plot displaying the potential where the different current densities are achieved from the 50 LSV runs for FeP2 (right). Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ............................................................................ 134 Figure 3.4: Overlay of 50 LSV polarization curves for CoP3 (left). Plot displaying the potential where the different current densities are achieved from the 50 LSV runs for CoP3 (right). Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ............................................................................ 135 Figure 3.5: Overlay of 50 LSV polarization curves for cubic NiP2 (left). Plot displaying the potential where the different current densities are achieved from the 50 LSV runs for cubic NiP2 (right). Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ............................................ 136 xxvi Figure 3.6: Overlay of 50 LSV polarization curves for monoclinic NiP2 (left). Plot displaying the potential where the different current densities are achieved from the 50 LSV runs for monoclinic NiP2 (right). Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ............................................ 136 Figure 3.7: Overlay of 8 LSV polarization curves for CuP2 (left). Plot displaying the potential where the different current densities are achieved from the 8 LSV runs for CuP2 (right). Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ............................................................................ 137 Figure 3.8: Representative LSV results for FeP2 (tin flux product), c-NiP2, m-NiP2 (tin flux product), CoP3, and CuP2. Plots for the carbon-wax alone and embedded 10% Pt on carbon powder are shown for comparison. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ................ 138 Figure 3.9: Representative Tafel curves for MP2/MP3 materials for HER electrocatalysis. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ............................................................................ 141 Figure 3.10: Plot of relative final ECSA values against average applied potential for 0.5 mA cm <sup>-2</sup>, 10 mA cm <sup>-2</sup>, and 20 mA cm <sup>-2</sup> averaged data (Table 3.2), current densities are scaled using geometric electrode area (0.079 cm <sup>2</sup> ). Error bars, shown for all points, are standard deviations of the averages. Similar, nearly linear correlations to those shown are also found when plotting average applied potentials versus initial ECSA values, yielding extrapolations that intersect y-axis near -140, -300, and -370 mV. The intercepts correspond to potentials at zero surface area. Data obtained using H2 purged then blanketed 0.5 M H2SO4 in a three electrode cell at different scan rates with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. .......................................................................................... 143 Figure 3.11: 18 hour single potential time based amperogram of 10% Pt-C held at 80 mV versus RHE. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at -80 mV (vs. RHE) constant applied potential with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ............................. 145 xxvii Figure 3.12: 18 hour single potential time based amperogram of FeP2 held at -300 mV versus RHE. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at -300 mV (vs. RHE) constant applied potential with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ............................. 146 Figure 3.13: 18 hour single potential time based amperogram of CoP3 held at -170 mV versus RHE. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at -170 mV (vs. RHE) constant applied potential with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ............................. 146 Figure 3.14: 18 hour single potential time based amperogram of cubic NiP2 held at 230 mV versus RHE. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at -230 mV (vs. RHE) constant applied potential with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ................ 147 Figure 3.15: 18 hour single potential time based amperogram of monoclinic NiP2 held at -240 mV versus RHE. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at -240 mV (vs. RHE) constant applied potential with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ................ 147 Figure 3.16: 18 hour single potential time based amperogram of CuP2 held at -950 mV versus RHE. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at -950 mV (vs. RHE) constant applied potential with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ............................. 148 Figure 3.17: Changes and improvements in observed CuP2 acidic HER activity during LSV runs before performing an 18 hr constant potential versus time run at 961 mV (pre-i-t) and LSV curves performed after the 18 hr constant potential versus time run (post-i-t). Data for 300 LSV runs are shown for the (post-i-t) period. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ..................................................................................................................... 150 Figure 3.18: Image A is an SEM image of a CuP2 sample prior to electrochemical experimentation. Images B – D are SEM images taken after electrochemical experimentation. Image B reveals extensive changes of the CuP2 sample surfaces. Image C displays significant cracking and delamination of a single crystal. Image D shows significant roughening to the surface of a single crystal...................................... 151 xxviii Figure 4.1: Overlay of 50 LSV polarization curves for CoPS3 (left). Plot displaying the potential where the different current densities are achieved from the 50 LSV runs for CoPS3 (right). Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ............................................................................ 169 Figure 4.2: Overlay of 50 LSV polarization curves for NiPS3 (left). Plot displaying the potential where the different current densities are achieved from the 50 LSV runs for NiPS3 (right). Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ............................................................................ 169 Figure 4.3: The image is of an HER current density (mA cm <sup>-2</sup> ) versus potential (mV vs. RHE) overlay plot of representative runs for each CoPS3, NiPS3, carbon blank, and 10% Pt-C in H2 purged 0.5 M H2SO4. Representative runs were chosen to best match the average behavior for each material after 50 runs. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ................ 170 Figure 4.4: NiPS3 (left). Plot displaying the potential where the different current densities are achieved from the 50 LSV runs for NiPS3 (right). Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at the specified constant applied potentials with a Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ............................................................................ 174 Figure 4.5: The image is of an HER current density (mA cm <sup>-2</sup> ) versus potential (mV vs. RHE) overlay plot of representative runs for each, CoPS3, NiPS3, carbon blank, and 10% Pt-C, without (solid lines) and with manually applied 85% iR compensation (dashed lines) in H2 purged 0.5 M H2SO4. The resistance values used for each are: 68 ohms for CoPS3, 64 ohms for NiPS3, and 17 ohms for 10% Pt-C. Data obtained a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). ............................................ 177 Figure 5.1: The two images are cyclic voltammograms of blank electrodes: nickel foam (left) and 45 wt% Cwax (right) collected in a three electrode cell with a Pt mesh counter electrode in N2 purged 3 M KOH, versus an SCE reference electrode. The peaks of the nickel foam are from the Ni <sup>2+/3+</sup> redox reaction resulting from the oxidation of the nickel metal in the basic electrolyte. The plots are in US/Texas convention. ...................................................................................................................... 200 xxix Figure 5.2: Capacitance windows of different NiO materials in N2 purged 3.0 M KOH at 5 mV s <sup>-1</sup> scan rate versus an SCE reference electrode. The plots are in US/Texas convention. Data obtained using a three electrode cell with a Pt mesh counter electrode. The Current densities are scaled using the geometric electrode areas,1.1 cm <sup>2</sup> for Ni foam and 0.079 cm <sup>2</sup> for Cwax. ........................................................ 203 Figure 5.3: Capacitance windows of different Co3O4 materials N2 purged 3.0 M KOH at 5 mV s <sup>-1</sup> scan rate versus an SCE reference electrode. The plots are in US/Texas convention. Data obtained using a three electrode cell with a Pt mesh counter electrode. The Current densities are scaled using the geometric electrode areas,1.1 cm <sup>2</sup> for Ni foam and 0.079 cm <sup>2</sup> for Cwax. ........................................................ 204 Figure 5.4: OER for Overlay of 25 LSV polarization curves for Jade-Co3O4 (left). Plot displaying the potential where the different current densities are achieved from the 25 LSV runs for Jade-Co3O4 (right). Data was collected at 5 mV s <sup>-1</sup> on a 0.079 cm <sup>2</sup> Cwax electrode, with a Pt mesh counter electrode and Hg/HgO reference electrode in O2 purged 0.1 M KOH. ............................................................................................... 208 Figure 5.5: OER for Overlay of 25 LSV polarization curves for ZZ-Co3O4 (left). Plot displaying the potential where the different current densities are achieved from the 25 LSV runs for ZZ-Co3O4 (right). Data was collected at 5 mV s <sup>-1</sup> on a 0.079 cm <sup>2</sup> Cwax electrode, with a Pt mesh counter electrode and Hg/HgO reference electrode in O2 purged 0.1 M KOH. ................................................................................................... 209 Figure 5.6: Representative OER current density LSV polarization curves for different Co3O4 templated samples along with commercial nano-Co3O4, commercial RuO2, and bare carbon wax. All samples were collected on 0.079 cm <sup>2</sup> carbon wax electrode tips in O2 purged 0.1 M KOH with a Hg/HgO reference electrode and a Ptmesh counter electrode. The nano-Co3O4 data presented here was collected by Nathan Black (Gillan Laboratory) .................................................................................. 210 Figure 5.7 : OER for Overlay of 25 LSV polarization curves for Jade-NiO (left). Plot displaying the potential where the different current densities are achieved from the 25 LSV runs for Jade-NiO (right). Data was collected at 5 mV s <sup>-1</sup> on a 0.079 cm <sup>2</sup> Cwax electrode, with a Pt mesh counter electrode and Hg/HgO reference electrode in O2 purged 0.1 M KOH. ........................................................................................................ 211 Figure 5.8: OER for Overlay of 25 LSV polarization curves for ZZ-NiO (left). Plot displaying the potential where the different current densities are achieved from the 25 LSV runs for ZZ-NiO (right). Data was collected at 5 mV s <sup>-1</sup> on a 0.079 cm <sup>2</sup> Cwax electrode, with a Pt mesh counter electrode and Hg/HgO reference electrode in O2 purged 0.1 M KOH. ........................................................................................................ 212 xxx Figure 5.9: Representative OER current density LSV polarization curves for different NiO templated samples along with commercial nano-NiO, commercial RuO2, and bare carbon wax. All samples were collected on 0.079 cm <sup>2</sup> carbon wax electrode tips in O2 purged 0.1 M KOH with a Hg/HgO reference electrode and a Ptmesh counter electrode. The nano-NiO data presented here was collected by Nathan Black (Gillan Laboratory). .............................................................................................. 213 Figure 5.10: Representative OER current density LSV polarization curves for different NiO and Co3O4 templated samples along with commercial RuO2, commercial 20% Pt-C (Etek), and bare carbon wax. All samples were collected on 0.079 cm <sup>2</sup> carbon wax electrode tips in O2 purged 0.1 M KOH with a Hg/HgO reference electrode and a Pt-mesh counter electrode. ..................................................... 214 Figure A.1: The magnetic films on the three glassy carbon electrodes (GCE) were each prepared by pipetting 5 µL of a Nafion/SiMag suspension onto each electrode surface and then left to air dry overnight. The stock suspension consisted of 37 µL of 5 wt% Nafion (45% H2O) with 3 to 9 µL of the 50 mg mL <sup>-1</sup> magnetic/H2O suspension. ..................... 231 Figure A.2: The image is an example of a silane coated maghemite, Fe2O3, particle with ‘n’ alkyl repeating chains. With SiMag particles C1, C3, C8, and C18, the ‘n’ value is their corresponding number in their name. ........................................................ 232 Figure A.3: The left images represent different options for film heights to be used in the magnetic susceptibility balance. A maximum of 17 mm is suggested to keep the magnetic materials within the magnetic field of the instrument. The right images are actual magnetic films cast onto glass slides to a height of 17 mm (geometric surface area of ~34 mm <sup>2</sup> ). ........................................................................................................... 233 Figure A.4: The image is a plot of the molar magnetic susceptibilities versus the different volumes of each magnetic sample added to the 37 µL of Nafion. ................... 235 Figure A.5: The image is the drying and air combustion of a 20 µL aliquot of Nafion solution by TGA. The inset image is focused on the mass plateau from 50 <sup>o</sup> C to 550 oC. TGA was performed in an Al pan in air starting with a 2 h hold at ~30 °C followed by 10°C/min ramp rate to 550 °C. ................................................................... 236 Figure A.6: The image is the drying of the C1 SiMag sample (aliquot from bottle?). The inset image is focused on the mass plateau from 50 <sup>o</sup> C to 550 <sup>o</sup> C. Initial drying step in flowing air was performed for 1 hr, followed by a 10 °C/min ramp to 550 °C. . 237 Figure A.7: The image is the drying of the C3 SiMag sample. The inset image is focused on the mass plateau from 50 <sup>o</sup> C to 550 <sup>o</sup> C. ........................................................ 238 Figure A.8: The image is the drying of the C8 SiMag sample. The inset image is focused on the mass plateau from 50 <sup>o</sup> C to 550 <sup>o</sup> C. ........................................................ 238 xxxi Figure B.1: The image displays the microprocessing circuit programed to take the difference of two incoming potentials. The circuit was produced, by Mike Estenson (resident electrical engineer for the University of Iowa). ............................................... 240 Figure B.2: The image displays fritted glass tubes with penetrable caps to allow for the insertion of the metal wires of the reference electrodes. Fritted tubes were manufactured by Benj Revis (resident scientific glassblower for the Department of Chemistry at the University of Iowa).............................................................................. 241 Figure B.3: The image is a list of common metal/anion mixtures with high Ksp values necessary for reference electrode reactions. ........................................................ 242 Figure B.4: The two images are run with a bare 0.44 cm <sup>2</sup> glassy carbon electrode with just one reference electrode (Ag/AgCl or SCE) attached to the circuit board with different resistors. The resistors changed the measured potential of 1 mM Ru(bpy)3 <sup>2+</sup> in N2 blanketed 0.1 M HNO3 after 15 minutes of direct purging through a glass frit prior to experiments. ....................................................................................................... 243 Figure C.1: The image displays the Button options of the first UserForm of the program. .......................................................................................................................... 245 Figure C.2: The left image is a UserForm for entering the percentage of iR compensation to be applied, and a choice for the user to use an average resistance value for all runs or apply an individual resistance value for each run. The right image is an InputBox that accepts the average/single resistance value that is to be compensated. ................................................................................................................... 246 Figure C.3: The left image is a UserForm for entering the percentage of iR compensation to be applied, and a choice for the user to use an average/single resistance value for all runs or apply an individual resistance value for each run. The right image is an InputBox that accepts the average/single resistance value that is to be compensated. .............................................................................................................. 246 Figure C.4: The left image represents a user picked sample (10% Pt-C) and the autofill that occurs when HER is selected, the Tafel analysis option was not selected. The right image represents a user picked sample (RuO2) and the autofill that occurs when OER is selected, the Tafel analysis option was selected opening those options. The autofill is simply edited by typing different values in the boxes. ............................ 247 Figure C.5: The image is an example of data that has been processed with the AvgData Sub that is placed into the Sheet named Averaged Data. ................................ 262 Figure C.6: The image is an example of a Potential (mV) versus Run Number plot that is produced by the avgDataPlt Sub. ......................................................................... 264 Figure C.7: The image is an example of overlays of Current Density (mA cm <sup>-2</sup> ) versus Potential (mV) by the CurDensPlt Sub. ............................................................... 266 xxxii Figure C.8: The image is an example of Current Density (mA cm <sup>-2</sup> ) versus Potential (mV) overlay plots in a narrowed/zoomed region by the CurDensPlt2 Sub. ................. 267 Figure C.9: The images represent examples of the different image files that are produced by the Export Sub. ........................................................................................... 268 Figure C.10: The images are examples of data that has been processed with the FullTafPlot Sub. The left image has buttons that require user input for running the Tafel Sub, the right image is without the buttons as it is post Tafel Sub analysis. ......... 274 Figure C.11: The image is a screen shot of the Tafel Info Sheet. The different colored boxes are the results of Tafel analysis on specific Run numbers. The plot in the upper right displays the Tafel slopes for different Runs, which is useful when looking for consistent, or inconsistent behavior. ............................................................ 382 Figure C.12: The image is the plot/chart that results from the Tafel Sub that includes the average of all of the specified Run number slopes and their deviation; there is an outlier in this data that when removed, would reduce the deviation significantly for this data set. ..................................................................................................................... 382 xxxiii CHAPTER 1: INTRODUCTION AND BACKGROUND 1.1. Introduction Solid-state materials are utilized in a wide range of electrochemical and electrocatalytic applications. These diverse and important applications include traditional and emerging areas, many of which are important to renewable and sustainable energy solutions. These include batteries, photovoltaics, fuel cells, supercapacitors, electrolyzers, and energy storage devices. While it is of key importance to target and synthesize materials with useful physical and chemical properties relevant for each desired application, it is of similar importance to design facile and reliable methods to electrochemically characterize these electroactive materials. The purpose of this thesis is to provide key electrochemical characterization and insight into the electrochemical activity of a variety of crystalline inorganic materials produced by the Gillan group including metal phosphides (MPx), metal thiophosphates (MPSx), and templated metal oxides (MyOx). The investigation of the electrochemical properties of these crystalline powders was greatly aided by the design and development of a new working electrode structure that allowed easy and reproducible direct binding of insoluble powders to the electrode surface. A complete description of the production of this reproducible, highly versatile, and adaptable carbon wax electrode is described. The purpose of this chapter is to provide practical and theoretical groundwork and background for the main electrochemical topics used in this thesis. These include various approaches to evaluating a solid’s activity in facilitating catalytic processes on its surface and examining the electroactive surface characteristics of several inorganic non-oxide materials. 1 1.2. Electrochemical Cells, Electrolytes, Purging Gases, and Electrodes Electrochemical cells are a diverse class of devices specifically designed to safely contain and facilitate electrochemical experiments. The cells are built to sufficiently contain an electrolyte and the electrodes in proper arrangements for electrochemical analyses. A minimum of two electrodes (an anode and a cathode) are required, and typically three electrode cells, which include an added reference electrode, are utilized in typical electrochemical experiments, see Figure 1.1 . Figure 1.1: The two images represent single compartment electrochemical cells for a two electrode and a three electrode electrochemical cell, respectively. The counter electrode acts as both the counter, and the reference electrode in a two electrode cell while the three electrode cell has a separate reference electrode to provide a standard reference potential that the applied potential is measured against. An ideal cell housing should be inert to any reaction, for example, glass can etch in basic electrolytes at high concentrations. An ideal cell should also be insulated thermally and electrically to protect the electrochemical experiments from the surroundings. If covered or sealed cells are required, many materials suffice, such as Teflon sheets cut to fit the cell or rubber septa. The housing can be designed with any 2 number of compartments as required for the specific experiment, single and double compartment cells are the most common. As seen in Figure 1.1, single compartment cells are the simplest by design, and they are used for most electrochemical experiments when the multiple electrodes do not require isolation from one another, or the products of their reactions, which can lead to altered electrochemical behavior. Single compartment cells were used in all electrochemical experiments presented in this thesis, but in cases where there is need to separate reduction and oxidation (redox) processes, a double compartment cell can be used as shown in Figure 1.2 . Figure 1.2: The two images represent double compartment electrochemical cells for a two electrode and a three electrode electrochemical cell, respectively. The divided compartments separate the electrochemical species produced at each electrode from migrating to each other. Several separators can be used including, glass frits, semipermeable membranes including Nafion, and modified polymers. The separators must allow the electrolyte to flow to maintain the circuit between the two electrodes. Any restrictions to the flow can lead to friction and heat, decreased diffusion, and an increase in the cell resistance altering the reaction behavior and the collected data. As displayed in Figure 1.2, double compartment cells are specially designed with separators, including semipermeable membranes and porous frits, to isolate the products 3 of the working and counter electrodes from interacting with each other while allowing the electrolyte to flow to complete the electrical circuit between the electrodes. The redox processes can be adequately separated from each other by specially designed frits or membranes, however these double compartment geometries may show differences in diffusion due to restricted flow of the electrolyte and the electroactive species, as well as different electrochemical behavior due to the junction potentials of the frit (or membrane) interface with the solutions in both compartments. Electrochemical cells typically require a supporting electrolyte that is dissolved into a solvent to decrease the solution’s resistance. The supporting electrolyte, or more commonly called, electrolyte, is an ionically conductive solution that provides charge carriers to complete the circuit between the electrodes by: (1) ensuring solution conductivity, (2) supporting current and electron flow, (3) not undergoing redox chemistry in the measured potential range, and (4) at higher electrolyte concentrations, reducing the effects of ion migration in the solution as a result of the electric field between the electrodes. Electrolytes are chosen by two factors: (1) the concentration of ions to carrier charge and (2) the ability of the ions to carry charge through the electric field. Electrolytes with higher concentrations of higher charged ions are desirable, however ion pairing from electrostatic attraction must be considered. As shown in Figure 1.3, larger ions can present problems in solvents with higher viscosities as their movement is restricted. The restriction lowers the charge carrying capability, increases the solution resistance, and the increased friction causes the electrolyte solution to warm. Electrolyte solutions should not be made at or near saturation as it will also restrict ion 4 movement. An ideal electrolyte will have a relatively high concentration of charge carriers, moderately charged ions for conductivity, and smaller ion radii to maximize mobility. Aqueous electrolytes are commonplace as they are only slightly impacted by ion pairing, many ionic compounds are dissolvable in water, and water as a solvent has a relatively low viscosity. Aqueous electrolytes were used for all experiments throughout this thesis. E l e c t r o d e E l e c t r o d e E l e c Na+ Cl- t r Cl- Na+ o d Na+ Na+ e Na+ E l e c t r o d e ‘+’ ‘-’ K+ K+ SO42- K+ K+ SO42- E l e c t r o d e SO4 K+ K+ K+ 2- K+ SO4 2- Open Circuit Potential Applied Potential E l e c t r o d e E l e c t r <mark>o</mark> d e ‘+’ ‘-’ Na+ Na+ Cl- E l e c t r o d e Cl- Cl- Na+ Na+ Cl- Na+ Cl- Na+ Cl- Cl- Cl- Open Circuit Potential Applied Potential Figure 1.3: The four images represent electrochemical cells composed of two different electrolytes: potassium sulfate (top images) and sodium chloride (bottom images). The left two images show the ions equally distributed in the solvent with no applied potential. The right two images display the movement of the ions when a positive potential is applied to the left electrode of the two cells. The larger charge of the sulfate can move twice the charge of the other ions, its size however, restricts its flow (small black arrow) and along with possible ion pairing, increasing the solution’s resistance. The chloride ions are about the same size as the potassium cations and their movement through the solvent are about the same, while the sodium ion is the smallest and will move the most freely, and the fastest. 5 Detailed in Table 1.1 are two types of aqueous electrolytes used throughout this thesis: inert and reactive. As defined here, inert electrolytes only provide charge carriers to lower the solution resistance but do not provide any reactant to a reaction, for instance 0.1 M nitric acid is an inert electrolyte when measuring the redox properties of a well defined molecular standard, tris(bipyridine) ruthenium(II) chloride (Ru(bpy)3 <sup>2+</sup>, a Ru <sup>2+/3+</sup> redox couple. Reactive electrolytes, also defined here, provide a reactant to the electrochemical experiment besides lowering the solution resistance, for example, sulfuric acid as an electrolyte provides ions to lower the solution resistance and as a reagent, provides protons (H <sup>+</sup> ) to be reduced to H2 gas at the electrode surface. Table 1.1: Inert and Reactive Aqueous Electrolytes <sup>a</sup> <u>Electrolyte</u> <u>Inert</u> <u>Reactive</u> <u>Common Concentrations</u> <u>Common Reactions</u> Nitric Acid Phosphate Buffer - ✓ 1.0 M H2 Redox Reactions 2−4 ✓ - 0.1 M Redox Reactions <u>HNO3</u> <u>4−</u> <u>⇌HPO4</u> <u>H2PO4−</u> Potassium Hydroxide <u>KOH</u> <u>-</u> <u>✓</u> <u>0.1 M to 1.0 M</u> <u>H2/O2 Redox Reactions</u> <u>✓</u> <u>-</u> <u>1 M to 6 M</u> <u>Batteries | Capacitance</u> Sulfuric Acid - ✓ 0.5 M H2 Redox Reactions <u>H2SO4</u> a Defined Only by Experiments in this Thesis Similar to electrolytes, two types of purge gases, inert and reactive, are commonly used in electrochemical experiments as listed in Table 1.2 . Inert gases such as nitrogen (N2) and argon (Ar) are bubbled through the electrolytes to remove possible reactive gases such as: hydrogen (H2), oxygen (O2), carbon dioxide (CO2), and carbon monoxide (CO). Reactive purge gases are often used to maintain Nernstian (reversible) behavior in electrochemical experiments. Reactive purge gases include H2 for hydrogen evolution (HER) and oxidation (HOR) reactions and O2 for oxygen evolution (OER) and reduction 6 (ORR) reactions. Both gases, H2 and O2, provide a reactant for either the working electrode or the counter electrode depending on the reaction(s) taking place. Table 1.2: Inert and Reactive Purge Gases <u>Purge Gas</u> <u>Inert</u> <u>Reactive</u> <u>Common Reactions</u> <u>Nitrogen (N2)</u> <u>✓</u> <u>-</u> <u>Redox (many)</u> <u>Argon (Ar)</u> <u>✓</u> <u>-</u> <u>Redox (many)</u> <u>Hydrogen (H2)</u> <u>-</u> <u>✓</u> <u>Hydrogen Redox</u> <u>Carbon Monoxide (CO)</u> <u>-</u> <u>✓</u> <u>Methanol Reduction</u> <u>Carbon Dioxide (CO2)</u> <u>-</u> <u>✓</u> <u>Carbonyls/Methanol Reduction</u> <u>Oxygen (O2)</u> <u>-</u> <u>✓</u> <u>Oxygen Redox</u> Solvent Electrolyte Figure 1.4: A simple apparatus setup to maintain general solvent saturation, the “wetness”, of the electrolyte. The purge gas is dry (red/orange dots) and can facilitate the evaporation of the solvent from the electrolyte solution altering its concentration. The purge gas should be bubbled through the same solvent as the electrolyte solution to ‘wet’ or minimize the drying effect (blue dots). All purge gases are ‘dry’ by nature, as they are purified and without any of the solvent molecules present. The flowing of the ‘dry’ purge gas through the electrolyte causes the solvent molecules to evaporate more readily, increasing the electrolyte concentration as the experiment continues for longer times. As displayed in Figure 1.4, 7 the purge gases are bubbled through a separate container of the electrolyte solvent to ‘wet’ the gas prior flowing into the electrochemical cell to minimize the solvent evaporation. Electrochemical reactions result from the combination of half reactions that occur between the electrodes. These half reactions are used to determine the electron transfer processes for the specific reactions within the cell, and these processes are measured with respect to the working electrode half reactions. In a two electrode cell, the other half reactions occur at the counter electrode and, if necessary, can be segregated from the working electrode reaction by use of a two compartment cell, see Figure 1.2 . If a reference electrode is used, a single or a two compartment cell can be used but the reference must be in the working electrode’s compartment. All electrochemical experiments require a minimum of two electrodes to move electrons, shown in Figure 1.5, but three are regularly used (reference electrode added) and will be used throughout this thesis. The reference potential of the reference electrode results from charge that builds at the reference electrode/cell electrolyte interface. The potentiostat uses the reference potential as a point of reference to compare electrical behavior against. 8 Figure 1.5: The two images show the electron flow between a two electrode cell and a three electrode cell, respectively. When a reference electrode is used, the working electrode potential (Eworking) is measured against the standard potential of the reaction housed within the reference electrode (E <sup>o</sup> ref) adjusted for the pH of the electrolyte. The working electrode is the site where electrochemical reactions are measured and studied with a potentiostat or galvanostat. If the working electrode transfers electrons to the reactants, they gain electrons (a reduction reaction), and oppositely, if the electrons are transferred away from the reactants, they lose electrons (an oxidation reaction). Similar to the different electrolytes and the purge gases, the working electrode can be inert or reactive, as described earlier. Inert electrodes usually consist of precious metals such as gold and platinum, as well as conductive, glassy carbon electrodes (GCE). When bare, inert electrodes can be used to measure redox couples in an electrolyte, and when particles are adhered, the inert electrodes will ideally be expected to act only as a current collector to measure any electrochemical activity not related to the electrode material. Reactive electrodes are electrodes where the current collectors themselves are or have been altered to be electrochemically active. An example of a reactive electrode is the formation of nickel (III) oxyhydroxide (NiOOH) and nickel (II) oxide (NiO) on pristine nickel foam in basic solutions, which increases the capacitance of the electrode. 9 A perfect working electrode for all types of desired electrochemical processes does not exist, however as shown in Table 1.3, several electrode substrates can function well or near ideally for specific applications. This thesis will exclusively use inert working electrodes to measure a redox couple (Ru(bpy)3 <sup>2+</sup> ), as well as several inorganic materials for possible electrocatalytic applications. A novel, inert carbon wax composite working electrode was prepared and is described in Chapter 2 of this thesis. Table 1.3: Advantages and Disadvantages of Working Electrode Subsrates <mark>Electrode Substrate</mark> <mark>Advantages</mark> <mark>Disadvantages</mark> Variety of shapes/sizes Platinum (Pt) Ease of reproducibility Gold (Au) Larger cathodic range over Pt New/clean electrode every drop Mercury (Hg, drop) Uniform electrode size Low potential for hydrogen production Difficulties with oxygen impurities <mark>Expensive</mark> Narrow anodic window Limited oxidation potential <mark>Expensive</mark> Liquid Toxic <mark>Narrow anodic window</mark> Reactive/non-uniform polished surface Reproducibility <mark>Difficult to shape</mark> Soluble in organic solvents Production difficulties <mark>Damage with extended use</mark> Carbon (C) Carbon Paste or pellet Large variety of carbon types Lower species adsorption <mark>Large aqueous electrolyte window</mark> Even particle distribution Inexpensive <mark>Large aqueous electrolyte window</mark> The auxiliary electrode, more commonly the counter electrode, is an electrode used to pass all the current from the working electrode through the completed circuit. To ensure that all of the current passed by the working electrode is sent only to the counter electrode, the counter electrode should have a larger surface area, at least ~10 <sup>3</sup> times larger, than surface area of the working electrode. Unless a reactant is required from the counter electrode, an inert material is used most often. As listed in Table 1.4, several 10 counter electrode materials are available with advantages and disadvantages specific to each material. If a platinum electrode is used, under some experimental conditions, the platinum can potentially migrate from one electrode to another falsely increasing the activity of a catalyst, or biproduct generation such as carbon monoxide production can poison certain catalysts lowering its measured electrochemical activity. When only two electrodes are used, the counter electrode acts as the counter and the reference electrode as the counter provides the other half reaction for the electrochemical experiment. Table 1.4: Advantages and Disadvantages of Different Counter Electrode Materials <sup>1</sup> <u>Electrode Material</u> <u>Shape/Form</u> <u>Advantages</u> <u>Disadvantages</u> Metal e.g., Platinum (Pt) Carbon Easy to produce Coiled Wire Limited surface area <u>Stable/strong structure</u> Production difficulties Wire Mesh Very high surface area <u>May require welding/soldering</u> <u>Cloth/Mesh</u> <u>Very high surface area</u> <u>Flimsy/floating in electrolyte</u> <u>Paper</u> <u>Semi-rigid</u> <u>Fragile/brittle</u> <u>Rod</u> <u>Rigid (strongest of the forms)</u> <u>Electrolyte wicking</u> Easy to clean General <u>Easily formed into many shapes</u> Expensive <u>Ion migration (e.g., Pt)</u> Inexpensive General <u>Inert to most reactions</u> Strength/connectivity issues <u>Production difficulties</u> When a reference electrode is added, the experimental cell potential is measured as the difference between the potential of the working electrode half reaction and the potential of the reference electrode half reaction, see Table 1.5 . The standard reduction potentials of half reactions are reported versus the normal hydrogen electrode (NHE) and then converted to the commercial reference electrode reactions by their reduction potentials compared to NHE, see Table 1.5 . 11 Table 1.5: Common Reference Electrodes and Their Reactions <u>Reference Electrode</u> <u>Reaction</u> <u>Solution</u> <u>E</u> <sup>o</sup> <u>REF vs NHE</u> <u>Mercury Oxide (Hg/HgO)</u> <u>HgO + H2O + 2 e ⇌ Hg + 2 OH</u> <sup>−</sup> <u>20% KOH</u> <u>98 mV</u> <u>Silver Chloride (Ag/AgCl)</u> <u>AgCl + e ⇌ Ag + Cl</u> <sup>−</sup> <u>Satd. KCl</u> <u>197 mV</u> <u>Saturated Calomel (SCE)</u> <u>Hg2Cl2 + 2 e ⇌ 2 Hg + 2 Cl</u> <sup>−</sup> <u>Satd. KCl</u> <u>242 mV</u> As an example, the H <sup>+</sup> /H2 reaction is set to 0.000 V for NHE, the ideal measured potential for the reaction versus SCE in 1 M HCl (pH = 0) electrolyte should be -0.242 V to give 0.000 V vs. NHE by the addition of +0.242 V. Ideal is not possible, but a nearly ideal reference electrode should be housed in the same ionic solution as the experiment electrolyte, which minimizes issues with the junction potentials of the electrolyte separator-electrolyte interfaces and differences of ion types (KCl vs. H2SO4) to carry charge. When the reduction potentials are reported versus the NHE, the electrolytes are at pH = 0, not only are conversions to standard reference electrode reactions required, but also the potential shifts for situations when the pH is not zero. One method for conversion is the reversible hydrogen electrode (RHE). 1.3. The Reversible Hydrogen Electrode (RHE) As mentioned above, and as shown in Table 1.6, a multitude of electrolytes are used in electrochemical reactions, all at different concentrations and pH values. Electrode potentials are typically based off of the normal hydrogen electrode (NHE). The NHE arbitrarily sets the potential for the reduction of 2 H <sup>+</sup> (aq) to H2 (g) as E <sup>o</sup> ref = 0.000 V in 1.0 M HCl at 25°C and all other reaction potentials are based off of this potential. <sup>2</sup> The NHE reference potential does not provide a direct comparison when considering the pH of a solution and therefore the reference electrode potential must be adjusted based on the pH of the experiment electrolyte. 12 1.1 1.2 In Equation 1.1, the conversion of the working electrode potential, Eworking, to the NHE potential, ENHE, is performed simply by adding the standard reduction potential, E <sup>o</sup> ref, of the reference electrode reaction to Eworking. The NHE conversion is only used when the pH = 0. The reversible hydrogen electrode (RHE) is commonly used as a quick conversion to NHE values at any pH value. The RHE conversion also matches the NHE at pH equal to zero. <sup>3</sup> When using the RHE conversion of Equation 1.2, the potentiostat measures the potential of the working electrode, Eworking and to convert to ERHE, one adds the standard reduction potential of the reference electrode reaction and 59 mV x pH. The 59 mV is divided by one as one electron is transferred to each H <sup>+</sup> . The conversion potentials listed in Table 1.6 are examples of the potentials that should be added to Eworking to convert to ERHE. The electrolytes, concentrations, and pH values in Table 1.6 were the most commonly used electrolytes throughout this thesis. Capacitance (CAP) is the charge that is stored and built up by pushing potential through an electrode (non faradaic) or an electroactive species on an electrode surface (faradaic) and will be explained further in Section 1.6.3 . 13 Table 1.6: RHE Potential Conversions <sup>a</sup> <u>[Electrolyte]</u> <u>pH</u> <u>Ref, E</u> <sup>o</sup> <u>REF</u> <u>RHE Potential</u> <u>Conversion</u> <u>0.5 M H2SO4</u> <u>0.29</u> SCE, 242 mV <u>1.0 M PBS</u> <u>6.50</u> HER <u>0.1 M KOH</u> <u>13.00</u> (0.000 V) <u>0.5 M H2SO4</u> <u>0.29</u> <u>-259 mV</u> SCE, 242 mV <u>1.0 M PBS</u> <u>6.50</u> HER <u>-626 mV</u> <u>0.1 M KOH</u> <u>13.00</u> <u>0.1 M KOH</u> <u>13.00</u> (0.000 V) <u>-865 mV</u> <u>1.0 M KOH</u> <u>14.00</u> <u>-924 mV</u> <u>0.1 M KOH</u> <u>13.00</u> OER HgHgO, 98 mV <u>1.0 M KOH</u> <u>14.00</u> <u>(1.229 V)</u> <u>0.1 M KOH</u> <u>13.00</u> OER <u>+358 mV</u> HgHgO, 98 mV <u>1.0 M KOH</u> <u>14.00</u> <u>(1.229 V)</u> <u>+299 mV</u> <u>3.0 M KOH</u> <u>14.48</u> CAP <u>-952 mV</u> <u>6.0 M KOH</u> <u>14.78</u> <u>(0.000 V)</u> <u>-970 mV</u> HgHgO, 98 mV <u>3.0 M KOH</u> <u>14.48</u> CAP <u>6.0 M KOH</u> <u>14.78</u> <u>(0.000 V)</u> a Based on Ideal Electrolyte pH Values 1.4. Loading Methods for Working Electrodes Electrochemical cells, number of compartments, purge gases, electrolytes, and electrode materials have all been discussed to this point. The working electrodes were presented only in terms of the bare, inert materials without any mention of adding insoluble electroactive solid samples to the surface of the electrode. As shown in Figure 1.6, several methods exist for either adhering materials (particles) to electrode surfaces or preparing paste or pellet matrices that are then adhered to a current collector. There are advantages and disadvantages to each loading method. 14 Particle/Film Suspension Film Capped Particles Paste/Pellet Annealed Metal/Particles Figure 1.6: The four images represent examples of working electrode preparations. The top left image shows a film suspending particles throughout to prepare a particle/film matrix. The top right image displays particles adhered to the surface of an electrode by a film. Paste and pellet electrodes utilize mixtures of particles with either viscous liquids such as mineral oil or with other solids including carbon and PTFE that are pressed into a housing with a current collector. Annealed electrodes require the sample and the current collector to bond through annealing at high temperatures and then the bare current collector is covered with an inert epoxy (represented in yellow) to seal all but the sampled surface from the electrolyte. The solutions used to prepare the particle film suspensions must have a high enough viscosity to suspend the particles until fully cured, and the film must be composed of a material that is not destructive or corrosive to the electroactive material being tested. Typical suspensions are prepared by adding the particles into a diluted Nafion/alcohol ink or slurry that is cast onto a polished electrode surface. Nafion is considered a superacid, which could alter samples that may be pH sensitive. <sup>4</sup> The film capped particles suffer the same downfalls as the suspensions, but also with the chance of sealing the particles from the electrolyte presenting electrochemical activity and reproducibility issues. As an advantage, both methods provide good particle adherence to smooth surfaced working electrodes. <sup>5</sup> Annealed particles are either first grown directly onto a current collector material, for example, Ni Foamcurrent collector → NiO, and then annealed, <sup>6</sup> or the materials are 15 synthesized elsewhere followed by annealing to bond the particles onto the current collector material. These methods provide strong adherence of the particles to the electrode surface. However, two immediate issues are presented by these methods: (1) the particles must be able to withstand the high temperatures required for annealing, and (2) the particles must have an affinity to bond or stay bonded to anneal to the current collector material. Another issue with this method is controlling the electrode area, the yellow box in the lower right image of Figure 1.6 shows how an inert epoxy is used to cover all but the particle covered area of the current collector or electrode, but this can be challenging to reproduce the same areas from electrode to electrode. <sup>7</sup> Paste or pellet electrode types suffer similar drawbacks to the thin film electrodes as particles can be buried behind non-electroactive particles, such as binders, or insulating oil when mineral oil is used to generate the paste to hold the samples in the housing. Mixing inconsistencies (heterogenous mixing) could alter the measured electrochemical activity as most paste or pellet electrodes require additives to function. Conductive materials such as graphite or carbon black are added to overcome the percolation limits, the minimum amount of conductive material uniformly distributed in a non-conductive matrix (17% - 20%) <sup>8</sup> required for conductivity. Insulating binders, including PTFE and mineral oil, are used as the ‘glue’ to hold particles and the electrode together in the housing. <sup>9</sup> While these pastes and pellets are adequate at holding the material, they present issues with mixture uniformity. Each of the aforementioned loading methods require rather large amounts of sample that can also present issues when: (1) the electroactive material is highly active and therefore it is desired to load very small amounts onto the electrode surface, (2) 16 reactions do not produce large amounts of sample, necessitating very use of small current collectors, or (3) the samples are rare and expensive. The issues presented, sample amount, uncontrollable surface area, film reactivity with the materials, and activity insulation or blockage, all led us to the pursuit of a different inert electrode material, carbon wax. 1.5. Carbon Wax as A Working Electrode Carbon powders physically mixed with hydrocarbon waxes present a wide range of workable, conductive, semisolid electrode surfaces that can flow or be pushed into preformed housings. These housings provide controllable surface areas that can be made into a variety of sizes, including those that are smaller than most commercially available electrodes. The semisolid surfaces are soft enough for direct particle adhesion without the use of additives. The smaller electrode surface areas along with the adherable surface can significantly reduce the amount of electroactive sample needed for electrochemical analysis. A slight introduction to carbon wax electrodes is detailed here, while a thorough investigation is presented in Chapter 2 of this thesis. In 2002, carbon wax as an electrode material for electrochemically testing insoluble pyruvate particles was investigated, and the composition effects of weight percent (wt %) C:wax for several carbon wax electrode mixtures were investigated. <sup>10</sup> At the time of data collection for Chapter 2, the Almeida and Giannetti reference was used as the primary focus for developing and designing the new electrode, and their chosen formulation of 45 wt% graphite : 55 wt% paraffin wax was the key composition used for electrochemical studies in Chapter 2 and throughout this thesis. 17 Loaded Electrode Current Collector Melted Graphite-Paraffin Wax Mixture Loading Sample Completed Electrode Figure 1.7: Graphite-wax electrode loading and design. A metal (current collector such as copper, brass, or aluminum is dipped into a melted previously prepared homogenous mixture of graphite and paraffin wax, the coated current collector is quickly pressed into a pile of sample, and then the electrode is wrapped with Teflon tape to seal all but the sample covered part of the electrode. In Figure 1.7, the graphic represents the loading method used by Almeida and Giannetti. A current collector was dipped into a melted pool of 45 wt% graphite : 55 wt% paraffin wax mixture and then quickly pressed into a preprepared mound of sample before the wax can harden, and upon cooling, is wrapped with Teflon tape to seal all but the loaded surface area of the electrode. Several issues are present with this method as the amount of carbon wax as well as the amount of sample loaded onto the current collector is hard to control, and sealing the electrode with Teflon tape is difficult, if not impossible. These issues provided evidence that a new approach and design was necessary described in Chapter 2. The carbon wax adaptation employed by the Rolison group led to our more recent and furthered studies on the wt % composition of the electrode tips. <sup>11</sup> Further experimentation on the effects of the composition on carbon wax is being carried out by the Gillan laboratory and will be briefly discussed in Chapter 2. 18 1.6. Electrochemical Methods for the Analysis of Electroactive Materials The following subsections provide the layout of electrochemical methods used for measuring different electrochemical behaviors using techniques that vary applied potentials and measure current flow to or from the working electrode, techniques that vary potential scan rates to assess catalyst surface charge, and methods to interrogate catalyst stability over time at applied potentials. 1.6.1. Linear Sweep Voltammetry (LSV) Linear sweep voltammetry (LSV) is an electrochemical analysis technique performed by applying a potential (voltage, V) to an electrode that is ramped linearly with time. The LSV technique is widely used to quickly determine electrocatalytic activity over a range of applied potentials. <sup>12</sup> It can identify highly active catalysts requiring low potentials for electrocatalytic oxidation and reduction events. It can also show temporal stability over multiple electrochemical experiments. LSV experiments provide the current _i_ (A) response measured as a function of the applied potential (V) being swept from an initial potential to a final potential at a fixed scan rate (V s <sup>-1</sup> ). In Figure 1.8, the images show the current density (mA cm <sup>-2</sup>, the current is divided by the area of the electrode surface) response measured as a function of the applied potential (mV). 19 -50 -45 -40 -35 -30 -25 -20 -15 -10 -5 Current Density (mA/cm2) vs. Potential (mV) 0 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 Potential (mV) : RHE Figure 1.8: Both images represent data collected by linear sweep voltammetry (LSV). The left image represents a reduction experiment (H2) where the potential is ramped from more positive to more negative potentials. The right image is an oxidation reaction (O2) where the potential is ramped from more negative to more positive potentials. Note: both plots are in IUPAC convention, where the x-axis is plotted with more positive to the right and the y-axis is negative above the x-axis. The standard potential _E_ <sup>_o_</sup> (V), is the thermodynamic minimum of applied potential that is required for current to begin to flow for a specific reaction under standard conditions. The experimental potential _E_ (V) is the measured potential in an electrochemical experiment required for a reaction to occur, often larger than the standard potential. The overpotential η (V) is the experimental voltage in excess, the energy price (tax) paid, over the standard potential ( _E_ <sup>_o_</sup> ) for all components of the electrochemical system to work together for a reaction to occur. Overpotential is calculated with Equation 1.3, and at pH = 0, the standard potential is 0.00 V for HER and 1.229 V for OER. <sup>12</sup> 1.3 Linear sweep voltammetry (LSV) was used extensively in Chapters 2, 3, and 4. In Chapters 2, 3, and 4, LSV was used to measure the activity of materials as possible 20 electrocatalysts in the hydrogen evolution reaction (HER, Section 1.6.5 ) and the oxygen evolution reaction (OER, Section 1.6.6 ). Also, exclusive to only Chapter 2, LSV was used to determine the limiting currents of a redox couple (Ru(bpy)3 <sup>2+</sup> ), as well as for the reduction of oxygen gas in basic solutions, which require rotation of the electrode: _2 H2O_ _+ O2 + 4 e_ _→_ _4 OH_ <sup>_-_</sup> . 1.6.2. Cyclic Voltammetry (CV) Cyclic voltammetry (CV) is a transient electrochemical technique for measuring short lived electrochemical processes such as electron transfer mechanisms of faradaic reactions. These CV techniques find use in corrosion studies and other redox reactions, as well as non-faradaic reactions including the double layer capacitance of an electrode, or faradaic reactions of a catalyst on an electrode surface, pseudocapacitance. <sup>12</sup> Cyclic voltammetry (CV) is performed by applying a ramped potential (voltage, V) to an electrode, essentially a cyclical LSV experiment ( Section 1.6.1 ) CV experiments provide the current _i_ (A) response measured as a function of the applied potential being swept from a forward initial potential, to a switching potential, and reversed to a final potential at a fixed scan rate ν (V s <sup>-1</sup> ). The final potential may be the same as the initial potential or a different potential as desired. In Figure 1.9, two conventions for plotting CV data are presented, US convention, a.k.a. the ‘Texas’ convention, is where the reduction process, the negative potential, is plotted to the right on the x-axis and the current, the y-axis is plotted with positive values above the x-axis. The IUPAC convention plots the potential with the negative potential of the x-axis on the left and the current data, the y-axis, is plotted with the negative above the x-axis. The peaks represent current flow during each of the redox 21 processes that occur at the applied potentials. The peak splitting potential, _ΔEp_ and the reductive, cathodic current ( _ip,red_ ) and oxidative, anodic ( _ip,ox_ ) current are the same for their respective peaks in both plots. The peak splitting is minimally bound, thermodynamically, by ~~,~~ where _n_ is equal to the number of electrons transferred during the redox reaction, and the peak currents are limited by the concentration of redox species in the solution along with the scan rate (V s <sup>-1</sup> ) by which the potential (V) is being applied. <sup>12</sup> The peak currents are calculated by subtracting the current determined from extending a straight line of the linear base lines (dots in Figure 1.9 ) from the maximum (or minimum) current found at the peak potentials. Current (A) vs. Potential (mV) -1.2E-04 -1.0E-04 -8.0E-05 -6.0E-05 -4.0E-05 -2.0E-05 0.0E+00 2.0E-05 4.0E-05 6.0E-05 8.0E-05 1050 1100 1150 1200 1250 1300 1350 1400 1450 1500 1550 Potential (mV) : RHE (IUPAC Convention) 8.0E-05 6.0E-05 4.0E-05 2.0E-05 0.0E+00 -2.0E-05 -4.0E-05 -6.0E-05 -8.0E-05 -1.0E-04 -1.2E-04 Current (A) vs. Potential (mV) 1550 1500 1450 1400 1350 1300 1250 1200 1150 1100 1050 Potential (mV) : RHE (US/Texas Convention) Figure 1.9: The two images represent one set of data collected by CV. The left image represents the US/Texas convention where the x-axis is plotted with negative values on the right and the y-axis is plotted as positive above the x-axis. The right image represents the same data but in the IUPAC convention where the x-axis is now plotted with positive values to the right and the y-axis is plotted as negative above the x-axis. The peak splitting potential, _ΔEp_, is the difference between the peak potentials and the peak current locations are shown but calculations are explained further in the text. Oxidative potential was applied first in this example, shown by the large arrow in each plot to represent the initial direction of applied potential. Cyclic voltammetry was used to compare differences in electrode performance with a redox couple (Ru(bpy)3 <sup>2+</sup> ) in Chapter 2, to determine the electrochemically active 22 surface area (ECSA, Section 1.6.4 ) of electrocatalysts in Chapters 3 and 4, and to measure the pseudocapacitance ( Section 1.6.3 ) of electroactive materials in Chapter 4. 1.6.3. Capacitance (Double Layer, Pseudo, and Super) Electrical capacitance is the buildup of charge at the interface between the ions of the electrolyte and an electrode or a solid phase attached to an electrode. <sup>13</sup> Cyclic voltammetry is an electrochemical method used to measure the electrical capacitance of different electrodes and solid materials. Electrical capacitance is explained by two different mechanisms: double layer (non-faradaic) and faradaic (chemical surface redox reactions). These two mechanisms can contribute to different extents into three broad capacitance types, A, B, and C. <sup>14</sup> Type A capacitance is electrical double layer capacitance (EDLC), Type B is pseudocapacitance (enhanced capacitance due to surface faradaic contributions), and Type C is faradaically dominated capacitance. Electrical capacitance measurements depend on several factors and conditions that include: (1) the applied potential, (2) the scan rate, (3) the electrolyte, (4) the electrode material, (5) the electrode size and (6) the attached materials (only relevant for Types B and C systems). Supercapacitance is the combined capacitance of both EDLC and faradaic capacitance leading to very high total capacitance. <sup>14</sup> When a potential is applied to an electrode in a solution, the electrode/solution interface builds up charge creating the double layer, shown by the green arrows in the left image of Figure 1.10 . The built up charge is due to the charged ions at the electrode surface pushing against the charge within the electrode. <sup>15</sup> This push results in a nanoscopically small insulating region, the double layer, where charge builds up (capacitance) at the interface due to the separation of these charges. This non-faradaic, 23 double layer capacitance (Type A) occurs only between the interface of the electrode and electrolyte solution and ideally results in a distinctive rectangular shaped potential envelope. Pseudocapacitance arises from a faradaic partial charge transfer immediately on the electrode solution interface that results from a surface redox reaction. <sup>14, 15</sup> As exemplified by the blue arrows in the center image of Figure 1.10, the MnO2 (EMD) sample on the electrode surface significantly raised the amount of charge buildup compared to the blank Cwax electrode. Pseudocapacitance is separate from double layer capacitance as it is measured in a potential region that includes a redox reaction. The Type C capacitance in the right image of Figure 1.10, is dominated by the faradaic reaction of the solid on the electrode surface. The use of Type C capacitance materials as battery materials is suggested versus capacitor materials as the faradaic reaction is not even, i.e., they do not evenly charge/discharge over the chosen potential window. <sup>14</sup> Figure 1.10: The three cyclic voltammograms represent three types of electrical capacitance as described above. Type A capacitance is double layer capacitance, which occurs between the electrode and electrolyte only and results from charge build up due to the charged ions at the electrode surface pushing against the charge within the electrode, for example a carbon wax (Cwax) electrode. Type B capacitance is pseudocapacitance, which arises from a faradaic partial charge transfer immediately on the electrode/solution interface that results from a surface redox reaction such as MnO2 (EMD). Type C capacitance is faradaically dominated as shown by the NiO redox reaction example. 24 As shown in Equation 1.4, the current for both the anodic and cathodic processes are converted into charge by multiplying the resulting current measured for each potential step (ΔEstep), by the potential step set by the user/instrument, and then divide the result by the scan rate (V s <sup>-1</sup> ). The capacitance, no matter the type, is calculated with Equation 1.5 by taking the sum of the calculated charges for each step, and then dividing that value by the chosen potential range where the charge was calculated. A second way is calculated by separately taking the sum of the absolute anodic and cathodic currents and then divide each sum by the scan rate, and finally take the average of the two results. The absolute values of the anodic and cathodic currents or charges are required for each step, then the average of the sums of the anodic and cathodic charges or currents are taken prior to dividing by the potential range with charge or scan rate with current. <sup>16</sup> 1.4 1.5 Typically, the specific capacitances (farads per gram) are used to compare the capacitance capability of a material. The theoretical specific capacitance maximum for a given material can be calculated by using Equation 1.6 . <sup>16</sup> 1.6 25 The double layer capacitance ( _C_ ) is determined by CV in the non-faradaic region, a region where no electron transfer processes occur in the voltammograms. In the case of capacitive materials, the faradaic regions usually mean chemical reactions are occurring on or within the capacitor material. The non-faradaic region was chosen as the capacitive current results only from the charging of the double layer. The total capacitive current ( _itot_, A) is the calculated difference between the anodic ( _ia_ ) and cathodic ( _ic_ ) currents at a single potential in the non-faradaic region. The _itot_ is plotted as a function of varied scan rates (ν, V s <sup>-1</sup> ), which results in a linear slope, and this subsequent slope is equal to twice the _C_ ( Equation 1.7 ). Capacitance via faradaic mechanisms is similarly measured and calculated with the same procedures and equations as used with double layer capacitance. 1.7 In Chapter 2, the Type B pseudocapacitance of electrolytic manganese dioxide (EMD, MnO2), a commercial standard, is measured and presented as proof of function for the novel electrode design. In Chapters 3 and 4, the capacitance of several electrocatalysts were measured by CV, and the resulting data was used to determine the electrochemically active surface areas (ECSA Section 1.6.4 ) of the metal phosphides (MPx) and metal thiophosphates (MPSx). In Chapter 5, several metal oxides (MyOx) were investigated for possible Type B and C faradaic capacitance and supercapacitance properties. 1.6.4. Electrochemically Active Surface Area (ECSA) Electrochemical surface area (ECSA) is a useful measurement because ECSA better accounts for surface area of embedded electrocatalyst particles. Geometric area is 26 useful when reaction is limited by reactant transport. Near current onset, current is limited by the ability of the electrocatalyst to deliver electrons, which is proportional to faradaic catalyst ECSA rather than geometric area of the current collector. ECSA is determined from capacitance measured where there is no electron transfer activity. The relative electrochemically active surface area (ECSA) is obtained from the ratio of the capacitance ( _C,_ Equation 1.5 ) and the specific capacitance ( _Cs_ ) of an atomically smooth, planar, 1 cm <sup>2</sup> electrode surface found for each specific electrolyte. <sup>17</sup> The relative roughness factor ( _RF_ ) of each surface is estimated from the ratio of the ECSA and the geometric surface area of the electrode (GSA) ( Equation 1.8 ). 1.8 One can use physical properties and particle sizes to compare and contrast external physical surface areas to experimental ECSA values for catalytic particles. Micrometer-sized particles embedded on a planar electrode are expected to have physical and EC surface areas that are greater than the flat geometric surface area of the electrode. The ECSA of certain metal phosphide (MPx) and metal thiophosphate (MPSx) electrocatalysts were determined by CV in Chapters 3 and 4. 1.6.5. Hydrogen Evolution Reaction (HER) Hydrogen (H2) is an extremely versatile diatomic gas with many industrial uses. The uses include but are not limited to, fertilizer production (NH3), metal alloying, electronics (carrier gas, deposition processes, cleaning, and etching, etc.), fuel production (methanol, crude oil refinery), a nonpolluting fuel source (combustion) and in electricity 27 generation (fuel cells). The production of high purity H2 is extremely desirable, however is commercially produced through the high cost, high energy steam reformation of natural gas (CH4). High purity H2 can be produced by the electrolysis of water, however the production is limited due to the use of expensive noble metals as electrodes or catalysts, for example platinum, and poor oxygen evolution kinetics. The half reaction for the electrochemical production of H2 in acidic electrolytes is rather simple, _2 H_ <sup>_+_</sup> _+ 2 e_ _H2_, _E_ <sup>_o_</sup> = 0.000 V, however the typical or practical process for the reduction of protons to molecular hydrogen at the cathode in an electrochemical cell greatly benefits from the presence a catalyst to assist the electron transfer process. Platinum is considered one of the best HER catalysts, however it is limited in source, expensive, and hindered by stability issues with long term use, therefore numerous studies focus on finding more abundant and less expensive metal-based catalysts effective in water splitting reactions. <sup>18, 19</sup> The mechanism for the hydrogen evolution reaction (HER) is likely different for each material, however one general proposed mechanism involves four steps: proton (H <sup>+</sup> ) adsorption, radical formation (H <sup>●</sup> ), radical combination to form H2, followed by the desorption of H2, Figure 1.11 . 28 Figure 1.11: A depiction of the mechanism for hydrogen evolution at an electrode surface in acidic solution. The electrode may contain a surface coating of a catalyst material to facilitate the HER process. First, protons (H <sup>+</sup> ) adsorb to the surface of the electrode, followed by electron transfer to form radicals (H <sup>●</sup> ) that combine to form covalent dihydrogen (H2), which finally desorb from the electrode surface. The protons must diffuse to the electrode surface to adsorb onto the electrode surface. Electrons are transferred from the electrode to the protons to form the absorbed free radicals, atomic hydrogen (H <sup>●</sup> ) ( Equation 1.9 ). A second proton must adhere to produce a second radical but are in competition with other protons and radicals for the electrode surface ( Equation 1.10 ). The radicals must combine on the electrode surface to generate hydrogen gas (H2) ( Equation 1.11 ) that will desorb from the electrode surface and diffuse into the solution. The names associated with Equations 1.9 – 1.11 are explained in more detail in Section 1.6.7 as they are used to explain the key steps in the electrocatalysis of H2. <sup>12</sup> 1.9 29 1.10 1.11 In Chapter 2, HER data on a commercial standard, 10% Pt-C, is used as proof of function for the novel electrode design. In Chapters 3 and 4, HER data on several metal phosphide (MPx) and metal thiophosphates (MPSx) are compared to the 10% Pt-C commercial standard and blank electrode to display their individual activity towards HER electrocatalysis. 1.6.6. Oxygen Evolution Reaction (OER) As stated earlier, the production of hydrogen (H2) via the electrolysis of water is highly desired, however one significant limiting factor is poor oxygen evolution kinetics at the anode in the electrochemical cell. The sluggish kinetics are largely attributed to the many intermediates required to carry out the multistep reactions for O2 production. The most direct oxygen evolution reaction is a four electron process shown in Equation 1.12 . <sup>12</sup> 1.12 The best reported OER catalysts still require applied voltages ( _η_ ) that are larger than the theoretical potential (1.229 V) expected to drive the reaction. Platinum along with metal oxides of expensive and rare metals, ruthenium (RuO2) and iridium (IrO2), are frequently reported as useful OER catalysts, displaying oxygen oxidation at some of the 30 lowest reported positive applied potentials. Recent studies have focused on oxides of highly abundant and inexpensive transition metals, including nickel (NiO) and cobalt (Co3O4). In Chapter 2, OER data on a commercial standard, RuO2, is used as proof of function for the novel electrode design. OER data on several Templated nickel and cobalt oxides prepared in the Gillan laboratory were experimentally evaluated in Chapter 4 of this thesis. 1.6.7. Tafel Analysis In electrochemical experiments, the current response from applied potentials is proportional to the reaction rate at the electrode. <sup>20</sup> Electrocatalytic reaction rates are potential dependent and result from a combination of elementary steps. It is generally accepted that the rate determining step is the slowest of these elementary steps and therefore the main mechanism of interest for an electrocatalytic reaction. Tafel analysis is a mathematical technique applied to the data obtained from LSV polarization curves, which leads to two important physical parameters: the Tafel slope, b and the exchange current density, _j0_ . <sup>20</sup> The Tafel Equation ( Equation 1.13 ) consists of several variables: _η_ is the applied overpotential of the experiment (V, Equation 1.3 ), _R_ is the gas constant 8.314 J K <sup>-1</sup> mol <sup>-1</sup>, _T_ is the temperature in Kelvin, _n_ is the mols of electrons transferred in the reaction (n = 2 for HER), _F_ is Faraday’s constant 96,485.3 C mol <sup>-1</sup>, _j0_ is the exchange current density (A cm <sup>-2</sup> ), and _j_ is the experimental current density (A cm <sup>-2</sup> ) produced from the applied potential. The exchange current density, _j0_ is used to describe the activity of an electrocatalyst and can be calculated from the Tafel equation when _η_ = 0, however it is 31 rarely reported in HER literature and therefore will not be utilized or detailed beyond this explanation. The slope of the Tafel analysis ( Equation 1.14 ) provides kinetic insight into the reaction rate and rate determining mechanism of the electrocatalytic reaction, by linking the overpotential ( _η_, Equation 1.4 ) and the current density ( _j_, A cm <sup>-2</sup> ) passing through the circuit during the reaction to the charge transfer coefficient, _α_ . <sup>21</sup> As shown in Equation 1.15, the charge transfer coefficient directly links the Tafel slope to the reaction rate constant, _k_ and the rate determining mechanism. Tafel slopes are more easily and quickly assessed from LSV polarization curves versus charge transfer coefficients, therefore charge transfer coefficients are largely unreported in HER literature and only Tafel slopes are reported, therefore only Tafel slopes and the possible rate determining HER mechanisms, see Figure 1.11, will be discussed hence forth. <sup>12</sup> 1.13 1.14 1.15 An LSV polarization curve obtained for 10% Pt-C in 0.5 M H2SO4 is displayed in the left image of Figure 1.12 . As shown, the initial steep transition of the LSV curve was the result of a low applied overpotential that generated a high current density (red, left image) producing a shallow Tafel slope (red, right image), indicative of a higher rate of 32 reaction. The more horizontal the Tafel line, the shallower the Tafel slope, the more current density that is produced from minimal applied overpotential, a highly desired trait of an electrocatalyst. The Tafel slope values reported for 10% Pt-C in this Chapter are from the initial (red line) slope ( Figure 1.12, right image ) as this region is consistent with literature reports. This region represents the initial stage of HER with lower H coverage on the catalyst surface (see Figure 1.11 ). Figure 1.12: A representative LSV polarization curve (left) for 10% Pt-C on 0.079 cm <sup>2</sup> carbon wax electrode in H2 purged 0.5 M H2SO4. The lower overpotential is in red and the higher overpotential in blue. The resulting Tafel plot (right) from the LSV polarization curve: shallow slope (red) -35 mV decade <sup>-1</sup> and steep slope (blue) -120 mV. Data was collected at 5 mV s <sup>-1</sup> with a Pt mesh counter electrode and SCE reference, converted to RHE. In HER electrocatalytic experiments, there are three commonly accepted Tafel slopes, 30 mV dec <sup>-1</sup>, 40 mV dec <sup>-1</sup>, and 120 mV dec <sup>-1</sup>, associated in order with the rate determining steps and mechanisms, Volmer, Heyrovsky, and Tafel, respectively ( Equations 1.9 – 1.11) . Electrocatalysts that produce small Tafel slopes are associated with the least amount of overpotential ( _η_ ) required for the highest amount of resulting current on a log scale. The best reported HER electrocatalyst, platinum, produces ~30 mV dec <sup>-1</sup> Tafel slope. 33 HER Tafel analysis was performed and presented on the commercial standard 10% Pt-C, along with several metal phosphide (MPx) and metal thiophosphate (MPSx) materials in Chapters 3, and 4, respectively. Also in Chapter 4, but with limited focus, OER Tafel analysis was performed and presented on the commercial standard RuO2 and several metal oxide (MyOx) materials. 1.6.8. Constant Potential Time Base Amperometry (CPTBA) Time based amperometry experiments are an important complement to the quick LSV experiments, as they provide a method for testing the long term stability of catalysts and can reveal any unique behavior resulting from extensive use of the catalysts under strenuous conditions, such as changes in material structure. Long term catalytic stability is studied by using constant potential time base amperometry (CPTBA) that is a potential step (chronoamperometric, (CA)) experiment where a potential (V) is set to a constant value (based on LSV data) and the current (A) is measured as a function of time (s). Images in Figure 1.13 show three examples where the electrocatalyst behavior decreased with time, remained stable, or increased with time. Ideal electrocatalysts should remain stable with long-term use. 34 Activity Stable with Time 0 3 6 9 12 15 18 Time (hr) 20 18 16 14 12 10 8 6 4 2 0 Activity Decreases with Time 0 3 6 9 12 15 18 Time (hr) 20 18 16 14 12 10 8 6 4 2 0 Activity Increases with Time 0 3 6 9 12 15 18 Time (hr) 20 18 16 14 12 10 8 6 4 2 0 Figure 1.13: Images showing a decrease in current density with time (left), stable current density with time (middle), and an increase in current density with time (right). Electrocatalytic stability is easily determined when CTPBA is performed as only the middle image represents stability. The decrease or increase in behavior may be the result of compositional changes occurring from the excessive demand over time. HER stability tests using CTPBA are presented in Chapters 3, and 4 on several metal phosphide (MPx) and metal thiophosphate (MPSx) materials, respectively. 1.7. Conclusions The overall purpose of this thesis is provide electrochemical insights involving several aspects of electrocatalysis including: (1) carbon wax working electrode design and development, (2) metal phosphides (MPx) and metal thiophosphates (MPSx) as electrocatalysts for the hydrogen evolution reaction (HER), (3) metal oxides (MyOx) as electrocatalysts for oxygen evolution reaction (OER), and pseudocapacitance, as well as (4) insight into measuring the magnetic properties of thin films similar to those cast onto electrode surfaces and (5) a set of several timesaving and useful Visual Basic programs for quick and systematic processing of a large number of electrochemical data sets to quickly and quantitatively identify important trends in catalytic materials. 1.8. References 1. McCreery, R. L. Advanced Carbon Electrode Materials for Molecular Electrochemistry. _Chemical Reviews_ 2008, _108_ (7), 2646-2687. DOI: 10.1021/cr068076m. 35 2. Harris, D. C. _Quantitative chemical analysis_ ; W.H. Freeman and Co., 2010. 3. Jerkiewicz, G. Standard and Reversible Hydrogen Electrodes: Theory, Design, Operation, and Applications. _ACS Catalysis_ 2020, _10_ (15), 8409-8417. DOI: 10.1021/acscatal.0c02046. 4. Dunwoody, D.; Leddy, J. Proton Exchange Membranes: The View Forward and Back. _The Electrochemical Society Interface_ 2005, _14_ (3), 37. DOI: 10.1149/2.F06053IF. 5. Desimoni, E.; Brunetti, B. Glassy Carbon Electrodes Film-Modified with Acidic Functionalities. A Review. _Electroanalysis_ 2012, _24_ (7), 1481-1500. DOI: <u>[https://doi.org/10.1002/elan.201200125 (acccessed 2022/12/16).](https://doi.org/10.1002/elan.201200125)</u> 6. Jadhav, V. V.; Kore, R. M.; Thorat, N. D.; Yun, J. m.; Kim, K. H.; Mane, R. S.; O’Dwyer, C. Annealing environment effects on the electrochemical behavior of supercapacitors using Ni foam current collectors. _Materials Research Express_ 2018, _5_ (12), 125004. DOI: 10.1088/2053-1591/aadedb. 7. Callejas, J. F.; Read, C. G.; Roske, C. W.; Lewis, N. S.; Schaak, R. E. Synthesis, Characterization, and Properties of Metal Phosphide Catalysts for the HydrogenEvolution Reaction. _Chemistry of Materials_ 2016, _28_ (17), 6017-6044. DOI: 10.1021/acs.chemmater.6b02148. 8. Papanikolaou, I.; Litina, C.; Zomorodian, A.; Al-Tabbaa, A. Effect of Natural Graphite Fineness on the Performance and Electrical Conductivity of Cement Paste Mixes for Self-Sensing Structures. _Materials (Basel)_ 2020, _13_ (24). From NLM. 9. Xiao, H.; Yao, S.; Liu, H.; Qu, F.; Zhang, X.; Wu, X. NiO nanosheet assembles for supercapacitor electrode materials. _Progress in Natural Science: Materials International_ 2016, _26_ [(3), 271-275. DOI: https://doi.org/10.1016/j.pnsc.2016.05.007.](https://doi.org/10.1016/j.pnsc.2016.05.007) 10. Almeida, C. M. V. B.; Giannetti, B. F. A new and practical carbon paste electrode for insoluble and ground samples. _Electrochemistry Communications_ 2002, _4_ (12), 985-988. DOI: 10.1016/s1388-2481(02)00511-8. 11. Long, J. W.; Ayers, K. E.; Rolison, D. R. Electrochemical characterization of highsurface-area catalysts and other nanoscale electroactive materials at sticky-carbon electrodes. _J Electroanal Chem_ 2002, _522_ (1), 58-65. DOI: Pii S0022-0728(02)00653-8 Doi 10.1016/S0022-0728(02)00653-8. 12. Bard, A. J. _Electrochemical methods : fundamentals and applications / Allen J. Bard,_ _Larry R. Faulkner_ ; New York : John Wiley, 2001. 13. Guan, L.; Yu, L.; Chen, G. Z. Capacitive and non-capacitive faradaic charge storage. _Electrochimica Acta_ 2016, _206_, 464-478. DOI: <u>[https://doi.org/10.1016/j.electacta.2016.01.213.](https://doi.org/10.1016/j.electacta.2016.01.213)</u> 36 14. Gogotsi, Y.; Penner, R. M. Energy Storage in Nanomaterials – Capacitive, Pseudocapacitive, or Battery-like? _ACS Nano_ 2018, _12_ (3), 2081-2083. DOI: 10.1021/acsnano.8b01914. 15. Brousse, T.; Bélanger, D.; Long, J. W. To Be or Not To Be Pseudocapacitive? _Journal of The Electrochemical Society_ 2015, _162_ (5), A5185. DOI: 10.1149/2.0201505jes. 16. Sankar, K. V.; Selvan, R. K. The preparation of MnFe2O4 decorated flexible graphene wrapped with PANI and its electrochemical performances for hybrid supercapacitors. _RSC Advances_ 2014, _4_ (34), 17555-17566, 10.1039/C3RA47681B. DOI: 10.1039/C3RA47681B. 17. McCrory, C. C. L.; Jung, S. H.; Peters, J. C.; Jaramillo, T. F. Benchmarking Heterogeneous Electrocatalysts for the Oxygen Evolution Reaction. _J. Am. Chem. Soc._ 2013, _135_ (45), 16977-16987, Article. DOI: 10.1021/ja407115p. 18. Roger, I.; Shipman, M. A.; Symes, M. D. Earth-abundant catalysts for electrochemical and photoelectrochemical water splitting. _Nat Rev Chem_ 2017, _1_ (1). DOI: UNSP 000310.1038/s41570-016-0003. 19. Nie, Y.; Li, L.; Wei, Z. Recent advancements in Pt and Pt-free catalysts for oxygen reduction reaction. _Chem Soc Rev_ 2015, _44_ (8), 2168-2201. DOI: 10.1039/c4cs00484a. 20. Shinagawa, T.; Garcia-Esparza, A. T.; Takanabe, K. Insight on Tafel slopes from a microkinetic analysis of aqueous electrocatalysis for energy conversion. _Sci Rep_ 2015, _5_, 13801. DOI: 10.1038/srep13801. 21. Guidelli, R.; Compton, R. G.; Feliu, J. M.; Gileadi, E.; Lipkowski, J.; Schmickler, W.; Trasatti, S. Defining the transfer coefficient in electrochemistry: An assessment (IUPAC Technical Report). _Pure and Applied Chemistry_ 2014, _86_ (2), 245-258. DOI: <u>[https://doi.org/10.1515/pac-2014-5026.](https://doi.org/10.1515/pac-2014-5026)</u> 37 CHAPTER 2: AN EMBEDDABLE ELECTRODE FOR ELECTROCHEMISTRY OF POWDERED SOLIDS Publication in Preparation: Lovander, M. D., Abeysinghe, J. P., Gillan, E. G., Leddy, J., “An Embeddable Electrode for Electrochemistry of Powdered Solids” 2.1. Introduction Chapter 1 described a wide range of experimental considerations in performing different electrochemical analyses, particularly on solid materials that facilitate chemical transformations on the electrode surface as electrocatalysts. A key consideration is the electrical and physical connectivity of a solid catalyst particle to the working electrode. With the use of several electrochemical techniques explained in Chapter 1, this chapter focuses on the novel design, manufacture, and tunability of a highly versatile working electrode using a graphite-wax mixture that provides an embeddable surface, shown in the center of Figure 2.1 . Figure 2.1: The image represents a variety of experimental conditions and expectations for a working electrode. The embeddable electrode design and function is the main focus of this chapter. HER and OER experiments are often performed in both acidic and basic aqueous solutions, OER in acidic electrolytes are less commonly reported, and ORR is commonly performed in only basic solutions. However, this reaction requires rotation of the working electrode, and the electrode surface must be highly sensitive to detect the electron transfer of reduction/oxidation (redox) reactions at low concentrations. 38 A range of materials have found utility as working electrodes in electrochemical experiments. These materials have desirable characteristics necessary for applications such as working electrodes. The characteristics include robust chemical, physical, and electrochemical stability over a wide applied potential range, as well as being easy to obtain, maintain, and clean to achieve a functional state that allows reproducible electrochemical measurements. <sup>1</sup> As shown in Figure 2.2, several popular commercially available working electrodes are platinum (Pt), palladium (Pd), gold (Au), and carbon (C). Also available, but not shown are the mercury drop (Hg) and additional carbon forms including graphite and vitreous carbon. <sup>2</sup> Several of these commonly used working electrodes for are chosen for their desirable electrical and chemical properties such as chemical stability, adaptability for surface modifications, and good electrical conductivity. Despite the high cost, platinum is a widely used working electrode owing to platinum’s chemical inertness under many electrochemical conditions. Platinum also shows diverse electrocatalytic properties with a moderate potential window for water oxidation and reduction, exhibits excellent corrosion resistance, and can be manufactured in different forms. <sup>1</sup> Both platinum and gold electrodes provide moderate, but different potential windows in aqueous electrolytes. Platinum electrodes provide a relatively large anodic potential window as the oxide film that forms on its surface occurs at relatively high positive potentials where gold is more oxidatively active and is limited by a lower positive potential. Gold electrodes however, provide a large negative cathodic potential window with low HER activity while platinum easily absorbs hydrogen atoms at low negative potentials even in the presence of low concentrations of acid or water in the electrolyte. <sup>1, 3</sup> 39 Figure 2.2: The images show a variety of working electrode inserts that are commercially available: gold (Au), platinum (Pt), and glassy carbon (GC). The surfaces of these electrodes are mirror polished prior to each use. Image: Pine Research 2022 https://pineresearch.com/shop/products/electrodes/disk-inserts/most-common/ Controlled, reliable, and reproducible surface cleaning and pre-treatment is required for metal electrode use. Otherwise, dissolution of hydrogen and metal oxide layer created in previous electrolysis experiments can yield erroneous and irreproducible outcomes and subsequent electrochemical experiments. <sup>1, 3</sup> With metal electrodes, thermal treatments may be required after the acid cleaning steps to remove molecular deposits because residual non-conducting surface species may impair or interfere with the electrochemical activity of the electrode. <sup>3</sup> Carbon electrodes are an alternative to noble metal electrodes because of carbon’s relatively low cost, thermal stability, chemical inertness in a range of electrolytes, wide working potential window, ease of chemical or mechanical surface cleaning for reuse, along with chemical and electrochemical stability. <sup>1</sup> Carbon electrodes are valuable as working electrodes in a diverse range of electrocatalytic redox reactions as carbon electrodes can be manufactured from very small to very large surface areas with tunable porosity, and the carbon electrodes can support a variety of surface modifications. <sup>4, 5</sup> 40 Pure carbon electrodes are available in a variety of structures and forms, including glassy carbon, vitreous carbon, carbon nanotubes, fullerenes, screen-printed, graphite, and diamond electrodes. <sup>4</sup> Additionally, carbon fibers can be woven into mats or cloths or formed into large paper-like structures for additional functional electrode geometries. <sup>6</sup> Carbon electrodes are used in applications such as metal production, catalyst support structures, electrodes for medical, agricultural, and food industries, as well as in energy storage in batteries and supercapacitors. <sup>5, 7</sup> Carbon materials are valuable working electrodes for electrochemical and electroanalytical studies and carbon materials have found use as sensors and detectors that significantly expand the scope and sensitivity of carbon-based electrochemistry in analytical and industrial domains. <sup>5, 8</sup> Potential disadvantages of carbon electrodes in sensing applications include low signal-to-noise, sluggish heterogeneous electron transfer rates, and high working potentials that may necessitate modifications of carbon-based electrodes for some applications. <sup>9</sup> Carbon-based working electrodes are frequently glassy carbon current collectors or graphitic carbon rods, plates, and carbon paper or cloth. Glassy carbon (GC) is a homogeneous monolithic carbon structure produced by pyrolyzing molecular precursors at high temperatures and pressures in an inert atmosphere. An example of a GC electrode (GCE) is shown in the middle image of Figure 2.3 . GC has many desirable properties for a stable working electrode material, such as uniform electrical properties in all directions, strong abrasion resistance and hardness, chemical inertness and stability over a wide potential and pH range, impermeability to gases, and electrode reusability for many experiments after cleaning and pre-treating the electrode surface. <sup>1, 4, 5, 7, 9</sup> Disadvantages with glassy carbon electrodes include small size, fragility, difficulty with 41 mass production, slower electron transfer than noble metals, and required mechanical and chemical electrode surface cleaning. <sup>4, 10</sup> The polishing of glassy carbon electrodes may initiate undesirable surface reactions with air and water. <sup>5</sup> Significant work and multiple chemical steps may be required for surface cleaning and electrocatalyst adhesion. <sup>10</sup> Other popular pure carbon electrode materials include the layered graphite structure. As shown in the left image of Figure 2.3, the graphite is pressed into ‘solid’ rod electrodes. However, the two-dimensional nature of graphite, makes graphite electrodes more porous than glassy carbon and as a result the graphite electrodes can transport gases and uptake liquid electrolytes as small molecules can travel along the graphite interlayer regions. The graphite layers also facilitate charge storage and high charging currents, but can suffer from low signal-to-noise ratio, diminishing sensitivity over time, and unintended wicking of the electrolyte into the graphite layers can transfer electrolyte to the connection leads of the potentiostat causing corrosion, possible metal ion formation with copper leads, and the stored electrolyte can be delivered into other cells when reused. <sup>9</sup> The right image of Figure 2.3 represents another pure carbon electrode produced in fiber or flake form. These carbon electrodes can be made into free-standing cloth and paper. The free-standing cloth is highly flexible, while the paper is quite rigid and fragile. These relatively inexpensive materials have the advantages of being cut to desired working electrode shapes and sizes and being integrated into complex electrochemical structures such as fuel cell assemblies. In many applications, carbon is a very chemically inert support material, though under some experimental situations, metals from other parts of an electrochemical cell, such as a platinum from a counter 42 electrode, may migrate onto the carbon working electrodes during long cycling experiments. This can cause difficulties in interpreting experimental results and lead to false catalytic results. <sup>11</sup> Graphite rods are porous and wick electrolyte, GCEs require precleaning prior to each use, carbon paper is rigid, and connecting to the cloth is difficult as the threads split breaking connection to the potentiostat leads. Each of these carbon electrode types require distinct methods for adhering solid samples for electrochemical analysis. Figure 2.3: The images represent examples of carbon electrodes: a graphite rod (left), a glassy carbon electrode, GCE (middle), and carbon cloth or paper (right). One key experimental challenge in using solid carbon and noble metal working electrodes arises when investigating the electrochemical properties of a powdered solid, such as a heterogeneous catalyst that requires the powder to be securely adhered and in strong electrical contact with the working electrode surface. As noted in <mark>Cha</mark> pter 1, adhering particles to an electrode surface usually requires a polymer encapsulant and binder such as Nafion. Nafion is a commercially available, ionically conducting polymer that is suspended in water/alcohol solutions and is mixed with a desired particulate sample and the resulting slurry is typically deposited onto GC, carbon cloth, or platinum disk 43 electrodes, and then dried to form a porous composite coating. Figure 2.4 shows several graphical images of the conventional method for Nafion composite adhesion to current collectors. As displayed, some cases require additional carbon black powder added to the slurry to improve electrical conduction through the Nafion surface layer. Suspensions and films produced with Nafion work quite well for adhering samples to an electrode surface. However, Nafion is expensive, corrosive, and the film density varies with electrolyte. The Nafion films are intentionally very thin to minimize covering the catalyst and any of the catalyst’s activity. Proper removal of the film for post electrochemical analyses is difficult and the films are single use as they cannot be re adhered once removed from the working electrode. Improper preparation of Nafion films can result in nonuniform particle suspensions where bubbles trapped in film castings lead to inconsistencies in reproducibility of experiments and analyses. Issues with electrochemical analysis through a Nafion polymer include particle stability in the acidic polymer matrix, whether gases can sufficiently travel through the membrane during redox events and whether gas evolution on the working electrode surface may delaminate and push the composite structure from the electrode surface to break connectivity of catalyst to electrode. 44 Epoxy Resin Figure 2.4: The image represents drop casting or film deposition of a sample (red dots), graphite or AC black (black dots) for increased conductivity, and Nafion suspension (blue liquid) to produce a composite film on the electrodes, graphite rod, glassy carbon electrode (GCE), and carbon cloth or paper. Reproducibility is difficult with this method as suspensions are assumed homogeneous with the suspended particles remaining evenly distributed post drying. An alternative method for direct and strong adhesion of select thermally stable particles onto a metal current collector is to fuse particles to the metal by thermal heating. Annealing requires high temperature to be supplied for a length of time, which can lead to instability, changes in surface area, and a nonuniform particle dispersion. Once the sample is loaded onto the electrode, epoxy resin is used to isolate all parts of the electrode from the electrolyte except for the desired active area. The controlled application of epoxy resin is difficult and electrolyte leakage is possible if not applied correctly. <sup>12</sup> Another alternative to polymer film-based particle structures on working electrodes is heterogeneous carbon paste electrodes, which are usually a combination of carbon powder (carbon black or graphite) and organic liquid binders. These electrodes can be used directly as the working electrode or can include an electroactive particle additive, such as a heterogeneous catalyst. The implementation of these paste electrodes 45 is a useful advance that overcomes some of the limitations of graphite electrodes while providing several practical advantages over glassy carbon electrodes. <sup>5</sup> Aside from the low cost and ease of electrode preparation, the versatility of graphite electrodes is enhanced by the ability to prepare carbon paste electrodes in various configurations with different electrochemical, chemical, and mechanical properties through different combinations of carbon with organic binders. <sup>3, 8, 13, 14</sup> Carbon paste electrodes have grown in popularity as carbon pastes electrodes have a wide operating potential range, environmental friendliness, low cost, simple and easy mass production, low ohmic resistance and reduced background current, easy surface modification and renewal, and feasibility of mixing modifiers and electrocatalysts with paste. <sup>4, 5, 9, 14</sup> Pastes and related composite pellets are produced by mixing 75-80 wt% of the sample of interest, 5 wt% of an inert binder, such as polytetrafluoroethylene (PTFE, Teflon brand name) powder or mineral oil, and 15-20 wt% carbon (graphite or activated) to overcome the percolation factor to guarantee adequate conductivity. <sup>15</sup> Difficulties exist with pastes and pellets that include nonuniform mixtures, loss of material due to paste or pellet sluffing, and connection of the paste or pellet to a current collector. Some experimental challenges with carbon pastes are that the organic binders may be expensive or unstable in non aqueous electrolytes. The often viscous and fluid nature of pastes can impact electrode homogeneity and reproducibility of interfacial redox reactions. The volatility of components in the paste can lead to performance changes over time. Some of these performance issues can lead to frequent calibration of electrodes. <sup>4, 5, 9, 14, 16, 17</sup> This chapter describes our success in the development of a low-volatility solid carbon wax alternative to liquid binders for carbon paste electrodes. The advantages of 46 the wax electrodes include more durable and flexible electrodes with simple sample preparation, reproducible performance, inexpensive cost, reuse at a later time, and post electrochemical analyses. Carbon composite electrodes from graphite powder and solid binders, typically paraffin waxes, have been shown to enable fabrication of heterogeneous conducting carbon composite materials, but have only been sparingly used in electrochemical studies. <sup>14, 16, 18, 19</sup> At high temperatures, paraffin wax melts, resulting in a homogeneous mixture of liquid paraffin and graphite. As the paraffin cools, the paraffin compacts, resulting in a flexible and conductive solid electrode. <sup>16, 19</sup> The possible or realized advantages of solid graphite-paraffin wax electrodes over conventional carbon paste analogs include a lower cost preparation with good electrode to electrode reproducibility, lower binder volatility and degradation, simpler preparation and surface cleaning, and a wide potential window and tunable electrical conductivity. <sup>20,</sup> 21 Most importantly are the adhesive properties of paraffin waxes that can adhere microcrystalline particles to the electrode surface and maintain intimate electrical contact between the catalyst particle and the conducting carbon components of the electrode. This sticky conducting wax solution was mentioned in Chapter 1, with several groups exploring the utility of the conducting wax in a range of direct solution electrochemistry studies and surface bound catalyst experiments. Prior electrochemical and electroanalysis studies have used a variety of pure carbon sources (usually carbon black or graphite) along with meltable waxy polymers that form a sticky conducting working electrode surface. Electrodes made from carbon sources and paraffin wax are generally referred to as carbon wax (Cwax) electrodes and will be throughout this thesis. In prior work, Cwax electrodes were utilized in wide variety 47 of electroanalytical studies including electrochemical stability of solid minerals, <sup>20</sup> mercaptothiadiazoles, <sup>22</sup> voltametric measurements of ascorbic acid and acetaminophen. <sup>23</sup> Cwax plated with Pt has also been studied for electrochemical methanol oxidation, <sup>21</sup> and Cwax electrodes with Pt black, MnO2, or RuO2 embedded were used for electrochemical behavior comparisons to commercial electrodes. <sup>24</sup> There are also several examples of variations on carbon wax electrode variants used as electrochemical biosensors such as in dopamine detection using tyrosinase, <sup>25, 26</sup> H2O2 and clozapine monitoring via horseradish peroxidase, <sup>27-29</sup> and glucose oxidase and choline oxidase, <sup>30</sup> and hydroquinone detection in cosmetic creams from peroxidase. <sup>31</sup> The Cwax working electrodes have also been employed for metal ion detection (Ni <sup>2+</sup>, Cu <sup>2+</sup>, Pb <sup>2+</sup>, As <sup>3+</sup> ) in water and ethanol fuel samples, <sup>32-35</sup> iodide detection in iron chromatography, <sup>36</sup> and ascorbic acid determination. <sup>37</sup> The electrochemically controlled dissolution of pyrite on a Cwax working electrode has also been investigated. <sup>17, 38</sup> Zeolite-modified Cwax electrodes have been utilized in electroanalytical flow injection analysis for voltametric detection of Cu <sup>2+</sup> ions and amperometric detection of non-electroactive species. <sup>39</sup> Despite the various examples of paraffin wax alternatives to Nafion, specifically carbon paste current collectors and working electrodes, there is little work on carbon wax mixture modifications or adaptations of the carbon wax to small electrodes. Modifications and adaptions to the carbon wax into small electrodes allow reproducible analysis of catalytic solid materials that facilitate energy relevant electrochemical transformations such as HER and OER noted in Chapter 1 and ORR, which is described in Section 2.2.7.4.3 . The comparisons found in Table 2.1 highlight some of the advantages and disadvantages of Cwax electrodes over more conventional structures. 48 Table 2.1: Advantages and Disadvantages of Carbon Electrode Materials <sup>2, 40</sup> <u>Electrode Type</u> <u>Advantages</u> <u>Disadvantages</u> Cwax Commercial Carbons (Conventional) Embeddable surface/no additional Lower conductivity/higher resistance (can <u>adhesion methods required</u> <u>be improved by tuning)</u> Simple manufacture/easily molded into Wax/organic solvent issues <u>shapes/forms</u> <u>Reusable/post electrochemical analyses</u> <u>Wax/high concentration base issues</u> <u>Highly conductive/low resistance</u> <u>Solids have to be attached with films</u> Immediate purchase/use/accepted by Polishing/cleaning required after each use <u>researchers</u> Ease of comparison to reported values <u>with similar electrodes</u> Once films are removed, they cannot be <u>retested/post analyses is difficult</u> This Chapter describes the design, production, compositional tunability, and function of lab produced solid graphite-wax materials that serve as working electrodes in electrochemical and electrocatalytic experiments. This work describes the properties of a metal-free working electrode with useful direct adhesion character and highlights some possible advantages over conventional glassy carbon and carbon paste electrodes, such as cost, electrode preparation, and long-term storage of electrodes with catalyst powders bound to the surface. These conducting wax electrode structures are simple and inexpensive to fabricate in a lab environment and are functionally flexible working electrodes for a range of aqueous electrochemistry and electrocatalysis studies. In addition to a description of the Cwax design and development process, the utility of these sticky conducting wax electrodes is demonstrated through the use of several standard reference materials for electrochemical analysis and electrocatalysis, which are gravimetrically loaded onto the Cwax electrode tips similar to the method shown in Figure 2.5 . Later, Chapters 3 and 4 illustrate the Cwax use in several electrocatalytic HER, OER, and capacitance studies. 49 Mass of ~65oC Mass of Blank Electrode Loaded Electrode Figure 2.5: The image displays the simple processes of preparing a carbon wax electrode. The mass of the bare Cwax electrode tip is first obtained, then warmed solid particles (red dots) are adhered by using the PTFE with brass connector to press the particles into the ‘soft’ conductive surface provided by the carbon wax. The loaded tip is then reweighed and ready for use. The particles will directly interface with the electrolyte as the particles are not bound behind a film or in a paste and the mass can be used for future gravimetric and extensive property comparisons. 2.2. Experimental 2.2.1. Safety Considerations for Hydrogen Gas and Electrochemistry <u>Safety Warning: Careful attention must be paid to experiments that utilize and/or</u> produce explosive gases including hydrogen gas. Hydrogen is explosive in air at concentrations as low as 4%. A fume hood or snorkel along with adequate ventilation is required to minimize hydrogen gas from concentrating to dangerous levels. Electrochemistry involves moving electrons through electrical circuits that can result in electrical shock and generate sparks. Extra caution such as proper electrode connection and cell setup must be used. 50 2.2.2. Materials The graphite-wax electrodes were constructed of synthetic graphite powder (< 20 µm, Sigma-Aldrich), carbon black (VXC-72, CABOT), paraffin wax (mp ≥ 65°C and mp between 53 - 58°C, Sigma-Aldrich) supported in 1/4” o.d. polytetrafluoroethylene (PTFE) tubing with 1/8” i.d. hole (0.079 cm <sup>2</sup> cross sectional area). The lower melting temperature paraffin wax provides a softer and stickier electrode surface, but consistent results were difficult to obtain with the lower melting temperature wax in the Cwax mixtures. Additional electrode designs used inexpensive and common glass tubes of various diameters. Two Pine Research rotating disk electrodes (RDE) both with ASR style rotator shafts were modified for Cwax introduction: (1) 7.5 mm diameter (0.442 cm <sup>2</sup> ) glassy carbon electrode (GCE), and (2) a modified RDE housing that was designed to hold a graphite-wax tip, as shown in the images in Figure 2.11 . Electrolyte solutions were made with 18 MΩ-cm purified water (Thermo Scientific Barnstead GenPure water purification system) with the following acids or bases: concentrated H2SO4 (Certified ACS Plus 95-98%, Fisher Scientific) to prepare 0.5 M solutions, concentrated HNO3 (Certified ACS Plus, Fisher Scientific) to prepare a 1.0 M solution, and 0.1 M HNO3, granular anhydrous Na2SO4 (ACS reagent, ≥ 99.0%, Sigma) for a 1.0 M solution, and certified ACS pellets of KOH (Fisher Scientific) to prepare 0.1 M to 3.0 M KOH solutions. Electroactive materials were tris (2,2’-bipyridyl) ruthenium (II) chloride (98% Ru(bpy)3 <sup>2+</sup>, Acros Organics), manganese dioxide (EMD, capacitance, Wako), 10% Pt (HER) and 20% Pt (ORR) on Vulcan XC-72 carbon (C1-10 fuel cell grade, E-Tek) and ruthenium (IV) oxide (99.95% RuO2, anhydrous, Alfa Aesar) (OER). 51 2.2.3. Carbon-Wax Electrode Preparation Carbon wax mixtures were initially prepared using a hotplate with a low-profile beaker as a water bath to control the temperature while melting, shown in Figure 2.6A . While the hotplate method was successful, the melting process was better maintained using a constant temperature water bath as shown in Figure 2.6B . Only graphite is shown in Figure 2.6B, however similar mixtures were prepared with carbon black, but difficulties persisted. The difficulties with carbon black are explained further in Section 2.3.1 and graphite was chosen to be the main carbon source for Cwax electrodes in this Chapter. Conveniently, large batches of carbon wax can be produced at one time and then used later to fill many electrodes. Figure 2.6: Apparatus used to form bulk carbon waxes using 45 wt% graphite : 55 wt% wax (> 65°C mp paraffin) mixtures prepared (A) original setup: a Corning hotplate, a thermometer, a water bath (~80°C) consisting of a low profile beaker, and a 250 mL beaker to hold the mixture, and (B) an updated setup: a Buchi B-490 heating bath set to 80°C with any beaker of choice to hold the mixture. 52 Early iterations of carbon wax electrode holders (shrouds) consisted of one of three types of shroud materials: PTFE tubing, glass tubing, or a plastic syringe see Figures 2.17A and B . The different shroud materials provide great versatility in design, experiment specific capabilities, and consistent electrode diameter. Small amounts of the previously made Cwax needed to be taken up into each of these tubular shrouds. Initial experiments used a large (60 mL) syringe to suction up the melted carbon wax mixture into the desired shroud around a previously inserted copper wire current collector, see Figure 2.7C . Several issues resulted in the manufacturing process of these electrodes which include wax fracture issues, wax flow difficulties, no gravimetric control, and the electrodes were single use or only certain parts (shroud and wire) could be recovered by dismantling and cleaning, a slow and time intensive process to use in making a new electrode. Figure 2.7: The images are the original housing and loading methods used for carbon wax electrode production. (A) Coiled copper wire inserted into a PTFE tube awaiting graphite-wax mixture, along with a variety of electrode housing materials. (B) A variety of the electrode diameters afforded by PTFE tubing sizes. (C) A syringe apparatus designed to pull the graphite-wax mixture up and around the inserted metal current collector. 53 An improved and more reproducible tube filling strategy was developed using the heating element of a commercial hot glue gun to melt pieces of solidified Cwax and press the molten wax mixture into pre-cut polymer tubes that are cut from a length of PTFE tubing (3.2 mm ID, 6.4 mm OD). Small pieces of the conducting graphite-wax mixture were loaded into the heating element of the modified hot melt glue gun apparatus, shown in Figure 2.8, to enhance melting speeds and thus flow through the heating unit. The heating element was Variac controlled (~80%) to melt the graphite-wax so to free flow into 1.4 cm long polytetrafluoroethylene (PTFE) tubes. These PTFE working electrode tips provided a 0.079 cm <sup>2</sup> geometric surface area. Figure 2.8: Graphite-wax electrode tip filling apparatus: (A) a disassembled hot melt glue gun apparatus connected to (B) a Variac variable transformer set to 60-80% to fill electrode tips with a graphite-wax mixture, and a plunger rod to press the mixture through the apparatus into the empty tips, (C) a jar of pre-threaded and precut PTFE tips, and (D) a jar of graphite-wax chunks cut to a size to fit in hot melt filling hole. 54 Prior to wax loading, the interior walls of the PTFE tips were threaded with a steel tapping bit, size 6-32, as shown in Figure 2.9A, to increase contact with the inserted graphite-wax, thus preventing the cooled wax plug from easily slipping out of the tubing due to the lubricating properties of the wax and the graphite. During the production of these Cwax electrode tips, the modified BASi electrode shown in Figure 2.9C was inserted into the back of the Cwax electrode tip, and then it was used to firmly compress the still warm graphite-wax mixture onto a clean and smooth surface, such as a clean PTFE sheet. The insertion procedure is to ensure two things, (1) the graphite-wax plug is well connected throughout, and (2) the inverse shape of the modified BASi electrode is formed in the back of the Cwax plug of the tip for ease of reattachment when used, shown in Figure 2.9A . Figure 2.9: In this figure are several images of PTFE graphite-wax (Cwax) electrode tips: (A) A sliced view of a PTFE graphite-wax tip with threaded wall added to grip mixture. (B) PTFE carbon wax tip attached to modified BASi electrode for hand pressing to compress graphite-wax mixture. (C) Modified BASi electrode with rubber septum awaiting tip. (D) A graphite-wax tip attached to brass current collector (a small amount of powdered graphite is added to the back of the tip before the brass rod is inserted to increase connectivity) and then the tip is sealed with Parafilm. Particle powder catalysts were evaluated with carbon wax current collectors. Powdered samples were embedded onto the graphite-wax surface of the PTFE tips using 55 a heated aluminum stub, shown in Figure 2.10, with 0.079 cm <sup>2</sup> surface area. Samples, typically less than 1 mg, were loaded onto the aluminum stub, which was then placed on a pre-heated (~250 ℃) hot plate for one minute to allow the powder and stub to heat to near the 65 ℃ wax melting point. Local softening of the wax with heating ensures that the sample embeds into the graphite-wax surface of the electrode tip. The heated powder sample was embedded into the softened wax of the PTFE tip with light hand pressure using a modified commercial BASi MF-2015 mCPE electrode, see Figure 2.9B . When a blank or loaded tip was used, a minute amount of graphite powder is added to the back of the loaded tip to ensure strong connectivity with the electrode insert, then the assembly is once again firmly pressed to guarantee sound connection is made throughout prior to experimentation. Figure 2.10: The image is a hexagon shaped, aluminum base with height adjustable stub and PTFE cushion for loading powdered samples onto the improved PTFE Cwax tips. The screw, at the right of the base in the image, allows the height of the center stub to be adjusted when needed as well as removal for cleaning and replacement purposes. The centralized stub is size matched to the PTFE Cwax tips providing an ideally sized surface to add sample for electrode loading. The aluminum transfer stub was manufactured by Frank Turner (resident machinist for the Department of Chemistry at the University of Iowa). 56 The modified BASi electrode is basically a PTFE encased brass rod (3 mm OD) and the PTFE tips with 3 mm ID securely fit over the end of the electrode. The gravimetric mass of the loaded samples was determined by the mass difference between the unloaded and loaded tip. Sample loadings ranged from ~0.1 to 0.6 mg which gave sample area coverages of 1.25 – 7.50 mg cm <sup>-2</sup> . The modified commercial electrode was fitted with a rubber septum, shown in Figure 2.9C, and the PTFE electrode tips were tightly affixed to the BASi electrode and wrapped with Parafilm to provide a seal between the septum and the affixed tip, see Figure 2.9D . And as previously mentioned, increased electrical contact between the wax and brass rod was aided by placing a small amount of powdered graphite into the rear opening of the tip before securing it onto the brass rod electrode and a final press to secure connection. In addition to serving as a static electrode with an insulating outer shell, these small PTFE shrouded Cwax electrodes can be mounted on a rotating disk electrode assembly and placed in the center of a commercial RDE as shown in Figure 2.11 . This can permit Cwax to be utilized in a rotating disk electrode experiment. 57 Figure 2.11: The images are of a modified Pine Research rotating disk electrode with a removable PTFE shroud. (A) shows the modification and shroud adapted to securely mount a graphite-wax tip. (B) a graphite-wax tip loaded with a powdered sample affixed to the modified RDE. (C) the PTFE shroud around the graphite-wax tip ready for rotating electrochemical experiments. The small PTFE shroud was manufactured by Frank Turner (resident machinist for the Department of Chemistry at the University of Iowa). 2.2.4. Electrochemical Cell Setup Overview <mark>As explained in Chapter 1, to study electron transfer processes, electrodes must</mark> <mark>be submersed into an electrolyte solution. An electrolyte solution consists of two</mark> <mark>parts: a solvent and a highly soluble salt. The electrolyte solution closes the electrical</mark> <mark>circuit between the electrodes: the working, the counter, and if used, the reference.</mark> <mark>When electron transfer occurs in an aqueous solvent, hydrated ions decrease solution</mark> <mark>resistance and migrate to balance charge. Several electrolytes were utilized in the</mark> <mark>carbon wax (C</mark> wax <mark>) experiments which include: 1.0 M HNO</mark> 3 <mark>, 0.5 M H</mark> 2 <mark>SO</mark> 4 <mark>, 1.0 M</mark> <mark>Na</mark> 2 <mark>SO</mark> 4 <mark>, and 0.1 - 3.0 M KOH.</mark> <mark>While gases are typically slightly soluble in most solvents, unwanted reactions</mark> <mark>may occur with dissolved gases, such as oxygen. To remove the interferents, an inert</mark> 58 <mark>gas is pumped into the electrolyte solution to purge the cell of these unwanted gaseous</mark> <mark>reactants. In some cases, a dissolved gas such as hydrogen or oxygen is pumped into</mark> <mark>the cell because the gas serves as the redox species. Common purge gases include:</mark> N2, H2, O2, CO2, and CO. <mark>Commercial gas supplies are typically anhydrous, and therefore</mark> <mark>it is often necessary to hydrate the purge gases to minimize electrolyte evaporation</mark> <mark>during long term electrochemical experiments, see</mark> <mark>F</mark> igure 2.12 . Figure 2.12: The left image displays a gas purging through a PTFE tube that was inserted into water, within a vacuum flask, to hydrate the purge gas to prevent evaporation of electrolyte solution in the electrochemical cell (inserted image). Inset image shows a typical three electrode cell (working electrode (graphite wax, or glassy carbon (GCE)), a counter (auxiliary) electrode (graphite rod, platinum wire or mesh), and a reference electrode (SCE, AgCl, or Hg/HgO). Glass ‘beaker’ cell was manufactured by Benj Revis (resident scientific glassblower for the Department of Chemistry at the University of Iowa). 2.2.5. Double Layer Capacitance - Chronoamperometry: GCE and Cwax Electrodes The double layer capacitance is the charge that builds between the interface of the electrode surface and a specific electrolyte, the magnitude of which is both electrode and electrolyte dependent. The electrode and electrolyte interface charges when a potential is applied to the electrode and the electrolyte ions, of opposite polarity to the applied 59 potential, align in a double layer. The double layer must be substantially formed to establish the interfacial potential that drives the electron transfer of faradaic processes. While several devices benefit from double layer capacitance, for example capacitors in electric car accelerators, tasers, and potentiostats, a low or minimized capacitance is ideal for working electrodes used to study electrochemical behavior of samples in electrolytes. In this Chapter, the double layer capacitance of GCE and Cwax electrodes in H2SO4 and KOH solutions are compared. <mark>For charge and discharge (double layer capacitance) chronoamperometry (CA)</mark> <mark>experiments, a three electrode electrochemical cell was used: (1) GCE or C</mark> wax <mark>working</mark> <mark>electrode, (2) Pt mesh counter electrode, and (3) an SCE reference electrode, for acidic</mark> <mark>electrolytes, or a Hg/HgO reference electrode for basic electrolytes. The GCE was</mark> <mark>polished prior, the procedure is explained in</mark> <mark>Section 2.2.6.1</mark> <mark>. The C</mark> wax <mark>tip was wiped</mark> <mark>with a lint free tissue until a consistent black coating was transferred to the tissue. With a</mark> <mark>spatula, a small amount of p</mark> owdered graphite was added to the back of the Cwax tip to increase connectivity to the current collector that was firmly inserted with pressing to ensure solid connection with the Cwax. <mark>The electrolytes were 0.5 M H</mark> 2 <mark>SO</mark> 4 <mark>, 0.1 M KOH,</mark> <mark>and 3.0 M KOH and for all CA experiments, the electrolytes were directly purged for 15</mark> <mark>minutes with N</mark> 2 <mark>. During measurements, the electrolyte solution was blanketed with N</mark> 2 <mark>.</mark> <mark>The CA experiments are quick. After initial setup, the experiments are performed in tens</mark> <mark>of microseconds.</mark> 60 Figure 2.13: The left image represents example parameters for the CA method of the CHI 760b potentiostat to collect charge/discharge amperograms of the electrodes in N2 purged then blanketed H2SO4 and KOH solutions. The right image is a representative charge/discharge curve for a bare 0.079 cm <sup>2</sup> Cwax electrode in N2 purged then blanketed 0.1 M KOH solution. A platinum mesh counter electrode and Hg/HgO reference electrode was used to produce the plot that resulted from the applied parameters. The chronoamperometric experiment was performed in a 100 µs charge/discharge cycle. <mark>Each charge/discharge curve was measured in 100 µs. The initial current rise in</mark> <mark>the first ~10 µs results from the rise time of the instrument charging a bare electrode. To</mark> <mark>avoid any instrument influence, the reported double layer capacitance values for each</mark> <mark>electrode, in each electrolyte, were measured and determined in the linear range of the</mark> <mark>discharge event taken between 15 µs to 20 µs. The reported data was preliminary testing,</mark> <mark>where averages and deviations were for replicate experiments with the same electrode, in</mark> <mark>the same electrolyte, therefore future experiments may be necessary to confirm the results</mark> <mark>reported.</mark> 2.2.6. <mark>Cyclic Voltammetry (CV) of a Ru(bpy)</mark> 3 <sup>2+</sup> <mark>Redox Probe</mark> <mark>As described in Chapter 1, cyclic voltammetry (CV) is an electrochemical</mark> <mark>analysis technique performed by applying a ramped potential (V) across the working</mark> <mark>and counter electrode. CV experiments provide the current ? (A) response measured as</mark> <mark>a function of the applied potential (V) being swept from a forward initial potential,</mark> 61 <mark>until a specified switching potential is reached, and then swept back to a final</mark> <mark>potential. The potential is swept at different scan rates (?, V s</mark> <sup>-1</sup> <mark>). The final potential</mark> <mark>may be the same as the initial potential or a different potential as desired. CV is a</mark> <mark>transient technique for measuring time varying electrochemical processes. This</mark> <mark>includes electron transfer mechanisms of faradaic reactions that includes corrosion and</mark> <mark>other redox reactions. CV is also used to measure non-faradaic reactions that include</mark> <mark>the electrode capacitance and a catalyst surface area on the electrode surface by</mark> <mark>charging the double layer. CV is used to measure this capacitance.</mark> <mark>In this Chapter, C</mark> wax <mark>electrodes were used to examine the CV electrochemistry</mark> of 1 mM tris(2,2’-bipyridyl) dichlororuthenium (II) hexahydrate (Ru(bpy)3 <sup>2+</sup> ) in 0.1 M nitric acid. In Chapters 3, 4, and 5, CV techniques were applied to determine the electrochemically active surface area of loaded samples or for possible pseudocapacitive behavior. The 1.00 mM Ru(bpy)3 <sup>2+</sup> solution was prepared by adding 0.187 g Ru(bpy)3 <sup>2+</sup> into a 250 mL volumetric flask that was half filled with 18 MΩ water. To this solution, 1.58 mL of concentrated nitric acid was added, followed by the addition of water to the calibrated line. Approximately 45 mL of the solution was poured into the glass cell, and the cell was capped with a PTFE cover with precut holes for the electrodes and the purge gas line, similar, but not exactly, to the insert image of Figure 2.12 . 2.2.6.1. <mark>Three Electrode Electrochemical Cell Setup for A Ru(bpy)</mark> 3 <sup>2+</sup> <mark>Solution</mark> The electrochemical cell setup was comprised of a three electrode system, glassy carbon (GC) or Cwax as the working electrode, Pt mesh for the counter electrode, silver chloride (Ag/AgCl in satd. KCl) as the reference electrode. The Cwax tip was loaded into 62 the modified Pine rotating disk electrode, shown in Figure 2.11, when rotation was required. The GC electrode was first polished with three sequential polishings using different sized (1.0 µm, 0.3 µm, and 0.05 µm) alumina polishing compounds along with water on a microcloth, followed by 5 minutes in an ultrasonic water bath to remove any remaining alumina particles. The Cwax tip was ‘cleaned’ with a lint free tissue until even colored black streaks were transferred to the wipe. To increase conductivity, powdered graphite was added to the back of the Cwax tip with a metal spatula and the current collector was firmly inserted with pressing to establish sound connection with the Cwax. With the electrodes and electrolyte in place, the electrolyte solution was directly purged with nitrogen (N2) gas for 10 to 15 minutes via a glass tube, with a fritted glass end for higher gas dispersion, which was completely submersed in the solution. After 10 to 15 minutes, the electrolyte solution was indirectly purged by suspending the purge line above the solution using a ring stand clamp to firmly hold the line in place for the remainder of the experiment run times. 2.2.6.2. <mark>Collecting Cyclic Voltammograms of a Ru(bpy)</mark> 3 <sup>2+</sup> <mark>Solution</mark> The linear relationship between the peak currents versus the square root of the scan rate for the 1.00 mM Ru(bpy)3 <sup>2+</sup> solution is shown by collecting cyclic voltammograms at different scan rates. Four different scan rates were randomly chosen for the experiments, 25, 50, 100, and 150 mVs <sup>-1</sup> . The CV experiments were run in a nonsequential order of 25, 150, 50, 100 mVs <sup>-1</sup> to flag any irregularities in the current that may result from the systematic increase or decrease of the scan rate. The left image of Figure 2.14 displays example parameters used to collect cyclic voltammograms of the 1.00 mM Ru(bpy)3 <sup>2+</sup> solutions versus a silver/silver chloride (Ag/AgCl in satd. KCl) 63 reference electrode. The right image of Figure 2.14 displays an example of a cyclic voltammogram of the Ru(bpy)3 <sup>2+</sup> solution collected at 100 mVs <sup>-1</sup> . The combination of all of the varied scan rate cyclic voltammetric experiments take about 90 seconds to complete. Figure 2.14: The left image represents example parameters used for the CV method of the BASi potentiostat to collect cyclic voltammograms of 1.00 mM Ru(bpy)3 <sup>2+</sup> dissolved in N2 purged then blanketed 0.1 M HNO3 with a 0.44 cm <sup>2</sup> glassy carbon electrode. The initial direction was positive as the oxidation, the loss of an electron, must first occur. The anodic peak at ~1.18 V vs. Ag/AgCl in the right image is the potential where the oxidation reaction is most favored, while the cathodic peak at ~1.11 V vs. Ag/AgCl is the potential where the reduction reaction is most favored. The peak currents increase linearly with increased scan rate. The ideal potential peak splitting for a one electron transfer redox reaction is 59 mV. The 70 mV peak splitting of the right image signifies a slightly slower charge transfer rate than the ideal. The sensitivity is chosen based on the maximum current (peak heights) and the number of segments is chosen by the user based on the number of desired cycles. Two segments are the minimum number necessary to produce one cyclic voltammogram. The linear relationship of limiting currents vs. rotation in the 1 mM Ru(bpy)3 <sup>2+</sup> solution was shown by collecting cyclic voltammograms at a single, fixed scan rate of 5 mV s <sup>-1</sup>, but at different rotation rates. Five different rotation rates were chosen for the experiment, 200, 400, 600, 800, and 1,000 revolutions per minute (RPM), which were converted to radians s <sup>-1</sup> using 1 RPM = 0.1047 radians s <sup>-1</sup> . The rotation rates were 64 randomly chosen with an order of 200, 1,000, 400, 800, and 600 RPM to minimize any irregularities in the limiting currents that may result from the systematic increase or decrease of the rotation rate. The image in Figure 2.15 displays an example of a cyclic voltammogram of the Ru(bpy)3 <sup>2+</sup> solution collected at 800 RPM. At a scan rate of 5 mVs <sup>-1</sup>, the potential was swept from 700 mV to 1.500 V then switched and returned to 700 mV. Electron transfer, oxidation in Figure 2.15 example, is witnessed as the significant increase in anodic current between 900 mV and 1.000 V. The plateau is the limiting current that starts around 1.150 V. The plateau results from the limited delivery and mass transport of the redox species in solution being delivered to the electrode surface. The mass transport of Ru(bpy)3 <sup>2+</sup> is dependent on the rotation rate. The higher the rotation rate, the more redox species that are delivered to the electrode. The cyclic voltammetric experiments with rotation take about 6 minutes per run or about 30 minutes for the 4-5 different rotations. 65 Figure 2.15: The image represents a cyclic voltammogram of 1.00 mM Ru(bpy)3 <sup>2+</sup> dissolved in N2 purged then blanketed 0.1 M HNO3 with a 0.44 cm <sup>2</sup> glassy carbon electrode at a rotation rate of 800 RPMs. The initial direction is positive, and the scan rate is 5 mVs <sup>-1</sup> to slowly move through the redox reaction to measure the plateau current, the limiting current. The current limits due to the mass transport of the redox species being delivered to the electrode at a specific rotation rate. The limiting currents increase linearly with increasing rotation rate due to the increase of redox species delivered to the electrode. The potentials in this cyclic voltammogram are versus an Ag/AgCl reference electrode and the remaining parameters match those in Figure 2.14. 2.2.7. <mark>Electrocatalytic Reactions of Solids Embedded on C</mark> wax <mark>Electrodes</mark> Chapter 1 described the principles of double layer capacitance along with the various water splitting electrochemical reactions. Another focus of this chapter is the examination of the Cwax materials as catalyst supports for capacitance, HER, OER, and oxygen reduction reactions (ORR) using standard reference materials. The experiments within this chapter will provide the foundation for electrochemical experiments in Chapters 3 and 4 of this thesis. 2.2.7.1. Cwax Working Electrode Preparation for Embedded Samples Powders of electrolytic manganese dioxide (EMD) for Type B pseudocapacitance measurements, platinum on carbon support for HER:10% Pt-C, ORR: 20% Pt-C, and ruthenium (IV) oxide (RuO2) for OER were evaluated with carbon wax (Cwax) current collectors. Powdered samples were embedded onto the graphite-wax surface of the PTFE 66 tips using a heated aluminum stub with 0.079 cm <sup>2</sup> surface area, shown in Figure 2.10 . Samples, typically less than 1 mg, were loaded onto the aluminum stub, which was then placed on a pre-heated (~250 ℃) hot plate for one minute to allow the powder and stub to heat to near the 65℃ wax melting point. Local softening of the wax with heating ensures that sample embedment into the graphite-wax surface of the electrode tip. The heated powder sample was embedded into the softened wax of the PTFE tip with light hand pressure using a modified commercial BASi MF-2015 mCPE electrode, see Figure 2.9B . This electrode is basically a PTFE encased brass rod (3 mm OD) and the PTFE tips with 3 mm ID securely fit over the end of the electrode. The gravimetric mass of the loaded samples was determined with a balance that provides the mass down to 10 <sup>-5</sup> grams, and by taking the mass difference between the unloaded and loaded tip. Sample loadings ranged from ~0.1 to 0.6 mg which gave sample area coverages of 1.25 – 7.50 mg cm <sup>-2</sup> . The modified commercial electrode was fitted with a rubber septum, as shown in the top image of Figure 2.9C, and the PTFE electrode tips were tightly affixed to the BASi electrode and wrapped with Parafilm to provide a seal between the septum and the affixed tip. See the bottom image of Figure 2.9C . Increased electrical contact between the wax and brass rod was aided by dusting powdered graphite into the rear opening of the tip before securing it onto the brass rod electrode. 2.2.7.2. Three Electrode Electrochemical Cell Setup for Embedded Samples The electrochemical experiments on embedded samples in this chapter utilize a three electrode single compartment cell, a Bioanalytical Systems (BASi) 100b potentiostat, and were guided by literature best practices. <sup>41-43</sup> The beaker shaped electrochemical cell has a diameter of 5.75 cm and a height of 4.0 cm, typically filled 67 with ~45 mL of electrolyte solution leaving a headspace of ~0.5 cm which was covered with a PTFE cover, cut-to-fit, and sealed with Parafilm that is secured with electrical tape, see Figure 2.16A . Feedthrough holes were cut into the PTFE covers as needed for the electrodes and purge gas tube. Two covers were used for electrochemical experiments, one made for HER and OER experiments, and one made for a rotating disk electrode for ORR experiments (the same cover as used with the rotating Ru(bpy)3 <sup>2+</sup> experiments). The completed cell consisted of a modified BASi electrode-tip assembly or modified Pine Research rotating disk with Cwax tip as working electrodes, a saturated calomel (SCE; Fisher Accumet) reference electrode for acidic solutions or a mercury/mercury oxide (Hg/HgO) reference electrode for basic solutions, and a high surface area platinum mesh counter electrode, along with a fritted glass tube for purge gases. Figure 2.16: The images are different angles of the same electrochemical cell. (A) Glass electrochemical cell with PTFE cover sealed with parafilm and secured with electrical tape. (B) a three electrode cell consisting of carbon wax (working), saturated calomel electrode, SCE (reference), and Pt mesh (counter) along with a fritted glass tube to disperse purge gases. (C) A cross-shaped magnetic stir bar within smaller glass beaker at ~6 mm distance from working electrode to aid in bubble removal (only for HER and OER experiments). Glass ‘beakers’ were manufactured by Benj Revis (resident scientific glassblower for the Department of Chemistry at the University of Iowa). 68 For HER and OER experiments, a magnetic cross stir bar within a small 10 mL beaker (2.5 cm diameter by 2.0 cm high) was placed directly under the working electrode, see Figure 2.16B . When used, the stir bar was placed ~6 mm from the working electrode to aid gas removal from the electrode surface and minimize surface adhesion of bubbles, see Figure 2.16C . All of the items placed in the feedthrough holes of the covers were loosely sealed with Parafilm to minimize electrolyte evaporation, with the rotating disk electrode used for ORR experiments being the one exception. The covers were not sealed too tightly to minimize pressure from the gases building within the cell. The cells were degassed with N2 (double layer experiments), H2 (HER experiments), or O2 (OER and ORR experiments) for 5-10 minutes prior to starting experiments and were continuously bubbled into the cell for the entirety of the experiments. 2.2.7.3. Capacitance by Cyclic Voltammetry: Cwax and EMD As detailed in Chapter 1, the Type A double layer capacitance of any electrode, or Type B and C pseudocapacitances of an electrode with particles adhered can be electrochemically determined by cyclic voltammetry (CV). Electrolytic manganese dioxide (EMD) is a widely used inorganic material found in many electrochemical storage applications including batteries, but more commonly in electrochemical capacitors. <sup>44-46</sup> Pseudocapacitance values for EMD samples are found in literature, therefore cyclic voltammetric measurements of commercially available EMD loaded onto a Cwax electrode was investigated for comparisons with the literature, and for proof of concept CV methods for future capacitance measurement of possible electroactive substances embedded onto Cwax electrode surfaces. 69 A three electrode electrochemical setup was used for measuring the capacitance of a blank Cwax electrode and a Cwax electrode with embedded EMD in N2 purged then blanketed, aqueous 1.0 M Na2SO4 electrolyte. Cwax was used as the working electrode, Pt-mesh as the counter electrode, and SCE as the reference electrode. The Cwax electrodes were first wiped with a lint free tissue until even black streaks were transferred to the tissue. The EMD was embedded into the Cwax surface (tip) by inserting the brass current collector, shown in Figure 2.9C, into the back of the tip and firmly pressing the tip, with aid of the inserted current collector, onto the aluminum stub, shown in Figure 2.10, which was preloaded with EMD by spatula, and then heated to ~65°C with a hotplate. Any excess and loose EMD was lightly brushed off with a lint free tissue. The current collector was removed from the tip, then a small amount of powdered graphite was added to the back of the Cwax tip, to increase conductivity, and the current collector was reinserted with firm pressing to guarantee solid connection with the Cwax, completing working electrode setup. The blank Cwax electrode also had powdered graphite added in the back of the tip. 70 Figure 2.17: The left image represents example parameters for the CV method of the BASi 100W potentiostat to collect cyclic voltammograms. The right image is a representative cyclic voltammogram that resulted from the applied parameters. As 10 was chosen for the number of segments, 5 cycles (1 forward and 1 backward) will be performed by the potentiostat. This plot shows the rectangular current envelope, highlighted by the (red rectangle) between ~0.1 V and ~0.7 V, and the plotted data is an example of Type B pseudocapacitance of MnO2 (EMD) on a 0.079 cm <sup>2</sup> Cwax electrode in N2 purged then blanketed 1.0 M Na2SO4. Typically, Type A double layer capacitance of an electrode will provide a similar rectangular potential window, but with a smaller current envelope. Capacitance, no matter the type, is determined by integrating the area of the current envelope, in the chosen potential range, to give the charge, which is divided by the chosen potential window in volts to give the capacitance unit of farads. The EMD data was collected and discussed further in Section 2.3.5.1. The current is converted to charge as the current is directly proportional to the charge/discharge rate of an electrode in an electrolyte. The charge (coulombs, C) for each step of the potential region is defined by the non-faradaic (rectangular) region of the CV experiment. An example of this experiment is shown in Figure 2.17 . The charge is determined by multiplying the anodic and cathodic currents (amps, A) by the time it took for the potential to step, the Sample Interval (mV) shown in Figure 2.18, and then divided by the scan rate (mV s <sup>-1</sup> ). The potentials of the Sample Interval and scan rate cancel and the charge (C) results from the time (s) multiplied by the current (A) that resulted for the potential step. To calculate the overall average charge, the average is taken of the sums of the absolute value of the anodic and cathodic charges for each step. 71 To convert the charge into farads, the calculated average charge is divided by the potential window defined by the non-faradaic (rectangular) region of the CV. Figure 2.18 : The image represents the CV Specific Parameters for the CV method of the BASi 100W potentiostat used to collect cyclic voltammograms of the N2 purged 1.0 M Na2SO4. Set the Sample Interval to add or subtract data points, set a large Sample Interval for large data sets. In the example, the potential will step by 2 mV towards the set potentials and the time per step is easily calculated from the scan rate. For example, a 2 mV step at 5 mV s <sup>-1</sup> will take 0.40 s. The time multiplied by the current (A) for that step returns the charge in coulombs (C). The Quiet Time is the time the potentiostat sits at the initial potential before beginning the experiment, the Quiet Time was set by the program default settings. 2.2.7.4. Electrocatalytic Water Splitting Electrocatalytic water splitting is an ever expansive area of research for global energy applications such as fuel cell technology that uses H2 as a renewable fuel. The following section of this chapter will focus on commercially available electrocatalytic standards (Pt-C and RuO2) that are embedded into the novel Cwax electrode tips, which will lay the foundation for future electrochemical experiments and techniques performed on materials produced in the Gillan laboratory for electrocatalytic water splitting (Chapters 3 and 4 of this thesis). Unless otherwise indicated, the applied voltages for electrocatalytic water splitting are converted to RHE values, see Section 1.3 . In acidic electrolytes, an SCE reference electrode is used ( _EREF_ = +242 mV vs. NHE), and in basic electrolytes, a 72 Hg/HgO reference ( _EREF_ = +98 mV vs. NHE) is used. These reference electrode potentials were calibrated against reversible hydrogen electrode (RHE) values for each electrolyte solution using the established conversion: _ERHE_ = _Einst_ + _EREF_ + _59 mV_ x _pH_ . The instrument potential, _Einst_, is the potential applied by the potentiostat, set by the user in the instrument parameters. An example of the RHE potential conversion is to set the RHE potential ( _ERHE_ ) to 0.0 mV for the following electrolytes, 0.5 M H2SO4 (pH = 0.30), 0.10 M KOH (pH = 13), and 1.00 M KOH (pH = 14) by applying the following conversions: _ERHE_ = 0 @ -259.3 mV for pH = 0.30 (SCE), +865.0 mV for pH = 13 (Hg/HgO), or +924.0 mV for pH = 14 (Hg/HgO) respectively. 2.2.7.4.1 Hydrogen Evolution Reaction (HER) Chapter 1 detailed the electrochemical production of diatomic hydrogen ( _2 H_ <sup>_+_</sup> _(aq)_ + _2_ _e_ _H2 (g),_ _E_ <sup>_o_</sup> = 0.0 mV)in aqueous solutions measured by linear sweep voltammetry (LSV). Commercially available 10% Pt on Vulcan XC-72 carbon (Pt-C) is considered to be one of the most active HER electrocatalysts, due to the low applied potential required for hydrogen evolution. The Pt-C was used for two main purposes throughout this thesis: (1) in this chapter for literature comparison of embedded Pt-C into the new Cwax electrode tips, and (2) in Chapter 3 for comparison with possible HER electrocatalysts synthesized by the Gillan Laboratory. The left plot of Figure 1.8 is an example of a linear sweep voltammogram for the electrochemical examination of electrocatalysts for HER activity. The voltammograms were obtained by LSV method with the BASi 100b potentiostat. The LSV parameters were chosen for the applied potentials to start or go through 0.0 mV (versus RHE) toward higher negative potentials for HER at a scan rate of 5 mV s <sup>-1</sup> . The LSV parameters used 73 to obtain the left plot of Figure 1.8, were set to an initial potential of +100 mV and a final potential of -300 mV versus RHE, however an SCE reference electrode was used for the experiment, therefore the parameters entered into the BASi program for those applied potentials were, initial potential -159.3 mV, and final potential -559.3 mV versus SCE. The very finely divided 10% Pt-C powder, < 74 µm, was embedded into the Cwax electrode surface following procedures explained in Section 2.2.7.1 and a three electrode electrochemical cell was used, as detailed in Section 2.2.7.2 . Acidic electrolytes are often chosen for HER experiments as they provide fully dissociated protons (H <sup>+</sup> ) that more easily facilitate hydrogen production. In literature, 0.5 M H2SO4 is a widely used electrolyte for HER experiments, therefore 0.5 M H2SO4 was used in the majority of HER experiments within this thesis, including this chapter. In recent follow-up studies by the Gillan Group, HER using the Cwax electrode can also be conducted under basic (1 M KOH, pH = 14) conditions. Five minutes prior and throughout the entirety of the HER experiments, high purity H2 gas was continually purged through the sulfuric acid electrolyte to maintain Nernstian (reversible) behavior. 2.2.7.4.2 Oxygen Evolution Reaction (OER) As described in Chapter 1, the electrochemical production of diatomic oxygen ( _4_ _OH_ <sup>_-_</sup> _(aq)_ _→_ _O2 (g) + 2 H2O (l) + 4 e,_ _E_ <sup>_o_</sup> = 1.229 V) in aqueous solutions can be measured by linear sweep voltammetry (LSV). The three most commonly used commercially catalysts for OER are platinum on carbon (Pt-C), iridium oxide (IrO2), and ruthenium (IV) oxide (RuO2). For OER in basic solutions, IrO2 and RuO2 are the most active and used for comparisons. As basic electrolytes were used for OER in this thesis, RuO2 was chosen for OER experiments as IrO2 is far more expensive. The RuO2 was 74 used for literature comparison of embedded RuO2 on the new Cwax electrode tips, and for comparison with possible OER electrocatalysts synthesized by the Gillan Laboratory. An example voltammogram from LSV measurements for the electrochemical examination of OER activity of electrocatalysts are shown in the right plot of Figure 1.8 . All voltammograms were obtained by LSV method with the BASi 100b potentiostat. The LSV parameters were chosen for the applied potentials to start at or go through +1.000 V (versus RHE) toward higher positive potentials for OER at a scan rate of 5 mV s <sup>-1</sup> . An example of the LSV parameters for OER are found in the right plot of Figure 1.8, the parameters were set to an initial potential of +1.000 V and a final potential of +2.000 V versus RHE, however an Hg/HgO reference electrode was used for the experiment, therefore the parameters entered into the BASi program for those applied potentials were, initial potential +135 mV and final potential +1.135 V versus Hg/HgO. The RuO2 powder was embedded into the Cwax electrode surface following procedures explained in Section 2.2.7.1, and a three electrode electrochemical cell was used, as detailed in Section 2.2.7.2 . Basic electrolytes for OER experiments provide hydroxide ions (OH <sup>-</sup> ) that facilitate oxygen production. In literature, potassium hydroxide is commonly used as an electrolyte for OER experiments, and the concentrations typically range from 0.1 M to 1.0 M. In this thesis, aqueous 0.1 M KOH was used as the electrolyte for OER experiments. Five minutes prior, and throughout the entirety of the OER experiments, high purity O2 gas was continually purged through the 0.1 M KOH electrolyte solution to maintain Nernstian (reversible) behavior. 75 2.2.7.4.3 Oxygen Reduction Reaction (ORR) While the electrochemical evolution of H2 and O2 gases at low applied potentials is highly desirable, especially for application in fuel cells, these reactions only represent half of the fuel cell reactions. The reverse reactions, hydrogen oxidation reactions (HOR) and oxygen reduction reactions (ORR), at low applied potentials is also a growing energy focus as these are the main actions in an H2/O2 fuel cell for production of electrical current. Electrochemical experiments for the measurement of HOR and ORR are similar in that they both require rotation. The ORR experiments were only investigated as a way to test the application of the new modified rotating Cwax electrode design, see Figure 2.11 . As previously mentioned, iridium oxide (IrO2), and ruthenium (IV) oxide (RuO2) are common electrocatalysts for OER, however commercially available 20% Pt-C is reported as one of the most efficient ORR electrocatalysts for aqueous electrolytes. ORR is only covered in this Chapter, and 20% Pt-C was used as a standard for comparisons to literature of a standard embedded onto the modified rotating Cwax electrode surface. Linear sweep voltammetry (LSV) was used for the electrochemical examination of ORR activity for the 20% Pt-C electrocatalyst was utilized with the BASi 100b potentiostat. The LSV parameters were chosen for the applied potentials to start near a current density near ~0 mA cm <sup>-2</sup> and move toward more negative potentials for ORR at a scan rate of 5 mV s <sup>-1</sup> . The parameters were set to an initial potential of +1.050 V, to a final potential of +550 mV, all versus RHE. A Hg/HgO reference electrode was used for the 0.1 M KOH electrolyte. The parameters entered into the BASi program for the 76 applied potentials were, initial and final potentials of +185 mV and -315 mV versus Hg/HgO, respectively. The very finely divided 20% Pt-C powder was embedded into the Cwax electrode surface following procedures explained in Section 2.2.7.1 and a three electrode electrochemical cell was used, as detailed in Section 2.2.7.2 . Basic aqueous electrolytes are often used for ORR experiments as they provide hydroxide ions (OH <sup>-</sup> ) for the counter electrode to oxidize, via OER, thus providing a continual flow of O2 (g) reagent back into the electrolyte for the working electrode to reduce. In literature, aqueous solutions of potassium hydroxide are commonly used as electrolytes for ORR experiments, and 0.1 M concentrations are common in literature and will be used in this thesis for comparison. To guarantee a constant flow of the necessary O2 (g) reagent for reduction to OH <sup>-</sup> (aq) at the working electrode, five minutes prior, and throughout the entirety of the ORR experiments, high purity O2 gas was continually purged through the 0.1 M KOH electrolyte solution. Note about rotating disk experiments: cyclic voltammetry (CV) is often used with rotating disk experiments to determine the limiting current along with the reversibility of a reaction, how well the return sweep overlays with the initial sweep. Linear sweep voltammetry (LSV) can be used as an alternative when only the limiting current is to be obtained from the experiment as detailed in the ORR experiments. 77 2.3. Results and Discussion 2.3.1. Design and Production of Functional Sticky Carbon Wax Electrodes Carbon wax (Cwax) electrodes offer flexibility in design and as an embeddable surface for adhering solid samples. Proper carbon-to-wax mixtures are required for the best performance as an electrode. The Cwax mixture must be composed of a sufficient amount of carbon for proper conductivity, as well as a sufficient amount of wax to provide structure and ‘stickiness’ for proper sample adhesion. The work of Almeida and Giannetti provided a functional electrode composition of 45 wt% graphite and 55 wt% paraffin wax. <sup>20</sup> Advantages of the Cwax electrodes include: high conductivity, easy preparation, particle adhesion without additional binders, a stable potential window, and both materials, graphite and the paraffin wax, are inexpensive. The disadvantages of Almeida and Giannetti’s Cwax electrodes were possible wax overflow when making the electrode, inconsistent electrode areas, the electrodes are single use. Other disadvantages include the leakage of the Teflon sealant wrap giving the electrolyte access to more of the electrode and the wire current collector, and the Teflon wrap does not provide a solid structure for the brittle Cwax increasing the fragility of the electrode, see Figure 1.7 . 78 Table 2.2: Carbon Wax Electrode Composition Advantages and Disadvantages. <u>Wax Composition</u> <u>Advantages</u> <u>Disadvantages</u> > 40 wt % Graphite < 40 wt % Graphite Low melting point 53 <sup>o</sup> C to 58 <sup>o</sup> C High melting point <u>> 65</u> <sup>o</sup> <u>C</u> Less sticky, detachment of Higher conductivity/lower resistance <u>materials</u> Electrochemical behavior closer to Mixture is more brittle/fragile from <u>commercial electrodes</u> <u>concentrated pockets of carbon</u> Produces hard/firm surfaces that hold <u>their shape</u> Stickier surface stronger hold of <u>materials</u> Lower conductivity/higher <u>resistance</u> Wax encapsulated carbon/fractured More malleable/hold different shapes <u>connections</u> Softer surface for pressing/embedding <u>materials</u> Larger resistance compared to the <u>higher melting wax</u> Lower melting temperature limits Increased flowability for molds/shapes <u>application in warmer solutions</u> Lower adhesion capability due to <u>harder surfaces</u> Certain design considerations are very important for a reproducible, versatile, and embeddable working electrode. The active material(s) for an effective and functioning electrode must be inert and have good conductivity. The electrode material(s) must also make and keep good connectivity to the current collector for maintained connection to a potentiostat. Furthermore, an embeddable electrode material must provide a conductive semi-solid surface that is soft enough to embed particles but firm enough to keep from encapsulating the particles. Ideally, the electrode shroud should provide solid structural support for the active material and also be chemically and electrically inert to not react with the electrode material or the harsh environment of the experiment. The shroud must also be electrically insulating and provide a controlled geometric surface area along with a tight seal around the electrode material to minimize leakage of the electrolyte and to guarantee that all current flows out of the exposed electrode area. Each of these design considerations were examined in this study to provide an improved Cwax electrode design for electrochemical experiments. 79 Powdered graphite and carbon black are two sources of carbon that may be used in the construction of embeddable electrodes. The two carbons are highly conductive and available in micrometer and nanometer sizes providing close connectivity when dispersed in the paraffin wax. Our initial studies with mixtures of 45% graphite or carbon black powder with melted paraffin wax showed clear differences in the wax-carbon surface interactions. The graphite flake particles resulted in a smooth, flowable, and visibly homogenous mixture while the carbon black powder gave a clumpy heterogenous mixture that resisted mixing into a homogeneous liquid melt. Based on this result, all subsequent studies used synthetic graphite powder (45 wt%) as the conducting additive in Cwax formulations. A variety of paraffin waxes are available based on their individual melting temperatures. The different melting temperatures of the waxes offer variability in electrode hardness and particle adherence. The higher melting point wax is harder, but less sticky, while the lower melting point is softer but ‘stickier’. Early experiments were performed on the Cwax mixture to see if the mixture dissolved in a number of electrolytes, the Cwax mixture displayed stability in a variety of organic solvents including alcohols, DMSO, DMF, and acetonitrile. The paraffin wax component will dissolve in aliphatic hydrocarbons, hexanes were used for cleaning and removing the wax when and where it was unwanted. As a side note, solutions of paraffin wax dissolved in hexanes can be pipette cast to produce wax films, but it was not a focus of this thesis. In this study, we examined two paraffin waxes with different melting points (65°C and 53°C to 58°C). Both waxes formed homogeneous mixes with graphite, however the lower wax proved more difficult to reproducibly produce monolithic electrodes with adherent powders, 80 therefore the higher melting 65°C wax was used for the electrochemical experiments in this chapter. One possible issue that may result from the use of lower melting temperature waxes in Cwax electrodes is if the surface temperatures during an electrochemical reaction rise to near or above the wax melting point, which may cause wax to flow and encase particles embedded on the electrode surface. The Cwax mixture is extremely versatile as an electrode material as it can be heated to a liquid at moderately low temperatures and molded into any shape, thus providing controllable electrode surface areas. Glass and PTFE are common materials used as electrode shrouds. Glass tubes are very inexpensive and available in multiple shapes and sizes. The disadvantages of glass are that it is fragile, brittle, sharp, rigid, and it is not hydrophobic to resist leakage nor is it inert in all solutions. Glass is fragile and glass is susceptible to etching in basic solutions. PTFE is chemically inert, flexible, and hydrophobic. PTFE can be easily cut into different shapes, and PTFE is the material of choice for many commercial working electrodes, including Pine Research rotating disk electrodes (RDE), which was used for all GCE comparisons in this Chapter. PTFE does have some disadvantages as it is relatively expensive when compared to glass and it is not available in as many shapes and sizes. As described in the experimental section, a wide range of glass and PTFE tubes were successfully filled with Cwax and these generally exhibited appropriate electrical connections to facilitate electron transfer at their surface. The design used for the electrochemical studies reported below are tips shown in Figure 2.9B that have a 0.079 cm <sup>2</sup> geometric electrode area surrounded by an insulating and hydrophobic PTFE shroud. This functional structure provides sufficient area for electrochemical studies but with modest current flow due to its relatively small 81 electrode area. One key advantage with these small PTFE filled Cwax working electrodes is that the PTFE electrodes can be made in large batches, saved after use with catalyst particles (if applicable) attached to its surface, and reused later for further analyses or electrochemical experiments. The particle ends of the electrodes can also be cut off (with some conducting wax) and used for surface analysis such as powder X-ray diffraction and electron microscopy. This very useful property of these Cwax electrodes was recently demonstrated by collaborators in the Gillan group. <sup>47</sup> In discovery work that explores the use new catalysts, typically synthesized in very small lab scale amounts, these small electrodes can facilitate multiple electrochemical experiments using milligram amounts of samples. 2.3.2. Electrochemical Potential Windows of Different Electrolytes Prior to utilizing the 45 wt% Cwax electrodes in electrochemical studies with adhered catalysts, it is important to identify their stability and lack of electrochemical events in a wide voltage window within different acidic and basic electrolytes purged with N2. As shown in Figure 2.19, the potential windows provided by the Cwax electrodes show no faradaic signal originating from the Cwax electrodes. These plots show reduction to the right at negative potentials and oxidation to the left at positive potentials. Water reduction in the lower concentration acid and base electrolytes only achieves 10 mA cm <sup>-2</sup> current densities near -1.000 V of applied potential and similar water oxidation around +2.000 V. Also shown in Figure 2.19 are comparisons between a commercial Pine Research glassy carbon electrode (GCE) and the Cwax electrode. The commercially available GCE was at most equally active in each electrolyte versus the Cwax electrode. The higher 82 activity of the Cwax electrodes is likely due to the differences in the electrochemical behavior of glassy carbon versus graphite. Graphite displays some activity towards the water splitting reactions, however the activity is at potentials higher than materials studied as possible water splitting catalysts. Generally, the Cwax electrodes show at least a ~1.500 V range with little or no electrochemical activity. This means that the Cwax electrodes provide a fairly wide potential window in several electrolytes where other electrochemical processes may be investigated using these Cwax electrodes. It should be noted that the potential window of the nitric acid electrolyte displayed a large double layer capacitance compared to the other electrolytes measured by the Cwax electrode, but nitric acid was not investigated further. Figure 2.19: Overlay plots of three different electrolyte windows obtained with a 0.079 cm <sup>2</sup> carbon wax tip electrode (45% graphite) and a Pine Research 0.44 cm <sup>2</sup> glassy carbon electrode (GCE). Bottom right graph is an overlay of four different electrolyte windows obtained with a graphite wax electrode. The electrolytes were N2 purged and the data was collected at 5 mV s <sup>-1</sup> with a Pt mesh counter electrode and either a Hg/HgO (basic solutions) or a SCE (acidic solutions) reference electrode in O2 purged 0.1 M KOH. 83 2.3.3. Capacitance by Chronoamperometry (Charge/Discharge) In addition to the low electrochemical activity in the electrolyte, the effect of the wax surface on surface charge accumulation via charging of the double layer (capacitance) was examined using a charge/discharge experiment via chronoamperometry. As with the electrolyte experiments above, this study compares the bare Cwax electrode to a commercial glassy carbon electrode (GCE). Chronoamperometry (CA) is a potential step technique used to measure the double layer capacitance by initially charging the double layer and then measuring the charge decay of the double layer over time. A galvanostat is required to perform this chronoamperometry technique, a CHI760b potentiostat/galvanostat used for these measurements. The left and right images of Figure 2.13 are examples of the CA parameters, and the resulting amperogram of a charge and discharge experiment, respectively. Figure 2.20: A plot displaying charge/discharge curves for a Pine Research 0.44 cm <sup>2</sup> glassy carbon electrode (GCE) and a 0.079 cm <sup>2</sup> graphite-wax tip (left) in N2 purged then blanketed 0.1 M KOH. A plot of the linear range of the initial current drop of the discharge region (right). 84 The double layer capacitance ( _C_ ) for each electrode, in C V <sup>-1</sup> (farads), in each electrolyte can be determined by plotting the natural log of the current ( _ln(i)_ ) in amps versus time ( _t_ ) in seconds, as shown in the right image of Figure 2.20 . When the plotted electrochemical data is processed with Equation 2.1, the double layer capacitance can be extracted. The double layer capacitance is calculated from the resulting slope ( ~~)~~ of the linear region immediately after the peak (the initial discharge) post _Rs_ determination from the y-intercept ( ), where _E_ is the potential change in volts (V) and _Rs_ is the solution resistance in ohms (Ω). <sup>2</sup> 2.1 A summary of the double layer capacitance density (µF cm <sup>-2</sup> ) and solution resistance values that resulted from charge/discharge experiments on the two compared electrodes is shown in Table 2.3 . These results estimate that the Cwax electrodes show lower charge accumulation and higher resistance than the GCE reference. This is not surprising as the Cwax electrode is composed of 45 wt% conducting graphite and the remainder, 55 wt%, is hydrophobic wax, an insulating wax binder. This composition should be reflected on the surface of the Cwax electrode. Recent and ongoing collaborative studies conducted by Janaka Abeysinghe in the Gillan group show that the resistance of the Cwax electrodes can be tuned by controlling the wt% of graphite in the Cwax mixture. Early results suggest that increased wt% of graphite improves the conductivity by lowering the resistance of the Cwax mixture, however a well-controlled 85 balance is needed as the adhesive capability of the surface is lowered by the decrease of wax in the mixture, some of this data will be presented at the end of this Chapter. Table 2.3: Capacitance Results for Glassy Carbon and Carbon Wax Electrodes Electrode Material Electrolyte <u>(Geometric Area)</u> C <u>(µF cm</u> <sup>-2</sup> <u>)</u> Rs <u>(Ω)</u> <u>Carbon wax (0.079 cm</u> <sup>2</sup> <u>)</u> <u>7</u> <u>±</u> <u>3</u> <u>30</u> <u>±</u> <u>16</u> 3.0 M KOH <u>Glassy Carbon (0.44 cm</u> <sup>2</sup> <u>)</u> <u>27</u> <u>±</u> <u>4</u> <u>3.1</u> <u>±</u> <u>0.5</u> <u>Carbon wax (0.079 cm</u> <sup>2</sup> <u>)</u> <u>8.0</u> <u>±</u> <u>0.4</u> <u>15</u> <u>±</u> <u>3</u> 0.1 M KOH <u>Glassy Carbon (0.44 cm</u> <sup>2</sup> <u>)</u> <u>4.1</u> <u>±</u> <u>0.6</u> <u>13.6</u> <u>±</u> <u>0.1</u> <u>Carbon wax (0.079 cm</u> <sup>2</sup> <u>)</u> <u>7.5</u> <u>±</u> <u>0.7</u> <u>10</u> <u>±</u> <u>4</u> 0.5 M H2SO4 <u>Glassy Carbon (0.44 cm</u> <sup>2</sup> <u>)</u> <u>9.4</u> <u>±</u> <u>0.4</u> <u>7.6</u> <u>±</u> <u>0.7</u> Double layer capacitance values were obtained in N2 purged then blanketed electrolytes. The initial charging in the first 10 µs is the potentiostat rise time, therefore all data for each experiment was taken between 15 µs and 20 µs. This data is reported on two to three consecutive experiments with the same electrode in the same electrolyte. Further research is needed, especially for the 3 M KOH, before officially reporting the values. The capacitance values for the carbon wax electrodes were very close in value to each other and the capacitance of the Cwax electrode by CV in 1.0 M Na2SO4 in Section 2.3.5.1 was ~ 4 times higher, but the values were within reported expectations carbon electrode capacitance values. <sup>40</sup> The resistance values measured for the Cwax electrodes correlate very well with the resistance values measured with a multimeter in Section 2.3.6 . The large capacitance of the GCE in 3.0 M KOH appears to be an outlier and further experiments are justified to solidify the capacitance results for the Cwax electrodes. 2.3.4. Investigation of Cwax electrodes for Interfacial Redox Reactions After examining the electrolyte windows and surface charge properties of the 45 wt% graphite Cwax electrodes, the electrodes were investigated for facilitating and measuring the oxidation-reduction (redox) reactions of a molecular metal ion complex dissolved in an acidic electrolyte. This experiment will provide information on how well 86 solvated species can interact with the Cwax electrode surface and thus allow for the transfer of charge to and from the solution and the Cwax surface. As with the two previous experiments, the electrochemical data collected with the bare Cwax electrode is compared to a commercial GCE. The metal ion complex (redox probe) used in these studies is tris(2,2’ bipridyl)dichlororuthenium(II) (Ru(bpy)3 <sup>2+</sup> ) and the Ru(bpy)3 <sup>2+</sup> was dissolved into 0.1 M HNO3. The applied potential range was chosen to include both electrochemical events the oxidation of Ru <sup>2+/3+</sup> and its reverse, the reduction of Ru <sup>3+/2+</sup>, using CV. Additional experiments were run using different electrode rotation speeds with the assistance of a Pine ASR Rotator along with the modified Pine Research Cwax-RDE shown in Figure 2.11A . Variations in scan rate and rotation allow one to utilize the combination of the Randles-Sevcik and Levich equations, to calculate the diffusion coefficient through a system of equations. The diffusion coefficient is utilized to calculate the effective electrode surface area based on the electrochemical activity of the electrode/Ru(bpy)3 <sup>2+</sup> solution interface. Typically experiments of this sort using a glassy carbon electrode (GCE) result in electrochemically determined electrode surface areas that are close, within 5 - 10% of the actual physical geometric surface areas. Cyclic voltammograms of reversible redox reactions, which include aqueous Ru(bpy)3 <sup>2+</sup> solutions, display linear relationships between the peak currents ( _ip_, A), anodic or cathodic, and the square root of the scan rate (ν, V s <sup>-1</sup> ). The diffusion coefficient ( _D0_ ) of the redox species in solution can be determined if the temperature (T <sup>-1/2</sup>, K), the initial concentration (C0 <sup>*</sup> ) of the redox species (mol cm <sup>-3</sup> ), the number of electrons transferred ( _n_ ), and the area of the electrode (A, cm <sup>2</sup> ) are known. The slope of 87 the _ip_ vs. ν <sup>1/2</sup> line along with the Randles-Sevcik equation ( Equation 2.2 ) allows for any single unknown variable within the slope; R is the gas constant: 8.3145 J K <sup>-1</sup> mol <sup>-1</sup> . The Randles-Sevcik equation can only be applied to cyclic voltammograms for redox reactions with reversible electron transfers. <sup>2</sup> Randles-Sevcik Equation 2.2 The cyclic voltammograms of reversible redox reactions produce linear relationships between the limiting currents ( _iL_, A) and the square root of the rotation rate (ω <sup>1/2</sup>, radians s <sup>-1</sup> ). The limiting anodic or cathodic current is chosen based on the initial and final oxidations states of the redox species. The Ru(bpy)3 <sup>2+</sup> solutions begin with only Ru <sup>2+</sup>, therefore the limiting anodic current is measured as the redox reaction as it involves the loss of electrons to produce Ru <sup>3+</sup> . Similar to Equation 2.2, the Levich equation, Equation 2.3, can be used to determine any one unknown variable from the slope of the equation, typically the diffusion coefficient ( _D0_ ) of the redox species, as the others are typically known and controlled. The kinematic viscosity (ν) for aqueous solutions is 0.01 cm <sup>2</sup> s <sup>-1</sup> . <sup>2</sup> Levich Equation 2.3 The combination of the slopes of the linear relationships of both the Randles Sevcik (0.4463 n <sup>3/2</sup> F <sup>3/2</sup> A D0 <sup>1/2</sup> C0 <sup>*</sup> (RT) <sup>-1/2</sup> ) and the Levich (0.62 _n_ A D0 <sup>3/2</sup> C0 <sup>*</sup> ν <sup>-1/6</sup> ) equations, from Equations 2.2 and 2.3 respectively, allow for the diffusion coefficient ( _D0_, cm <sup>2</sup> s <sup>-1</sup>, Equation 2.4 of a redox species, such as Ru(bpy)3 <sup>2+</sup>, to be accurately 88 determined through the combination of transient (varied scan rate) and steady-state (varied rotation rate) methods, and without first knowing the area of the electrode as it is cancelled by the system of equations. Once the coefficient is determined, it may be entered into either Equation 2.2 or 2.3 to return the unknown area of the working electrode (cm <sup>2</sup> ). The raising of the ratio to the sixth power can introduce substantial uncertainty into the determination of the _D0_ when the uncertainties in the slope are high. Diffusion Coefficient from slopes 2.4 Initial data from CV experiments, with and without rotation, run with a commercial GCE with a listed electrode surface area of 0.44 cm <sup>2</sup> are shown in Figure 2.21 . The calculated diffusion coefficient, solved by the combination of the Randles Sevcik and Levich equations, provides an electrochemical area of 0.42 cm <sup>2</sup>, which agrees very well with the 0.44 cm <sup>2</sup> geometric area for this GCE (lower by 5%). 89 + + P P P P P + + + + Figure 2.21: Glassy carbon electrode (GCE): transient measurement of the one electron transfer for 1.0 mM tris(2,2’-bipyridyl) dichlororuthenium (II) hexahydrate (Ru(bpy)3 <sup>2+</sup> ) in N2 blanketed 0.1 M HNO3 after an initial 15 minutes of direct N2 purge. The peak splitting, determined by methods explained in Chapter 1, was 64 mV at 100 mV s <sup>-1</sup> (top left). Plot of peak current versus (scan rate) <sup>1/2</sup> obtained from transient measurements (top right). Steady state measurement of Ru(bpy)3 <sup>2+</sup>, at 1.550 V, using rotation (bottom left). Plot of Levich current versus (rotation rate) <sup>1/2</sup> obtained from steady state measurements (bottom right). Given the lower content of conducting material expected to be on the surface of the Cwax electrode, it was anticipated that its measured electrochemical surface area should be lower than its physical geometric surface area. The same CV experimental techniques used for the GCE were employed for a Cwax electrode tip alone, shown in Figure 2.9D, and then later by inserting the same Cwax electrode tip into the modified RDE housing, shown in Figure 2.11A, for rotating electrode studies. The CV data shown in Figure 2.22 is the result of experiments preformed with the 45 wt% Cwax 90 electrode in the Ru(bpy)3 <sup>2+</sup> solution, with and without rotation. There are respectable similarities between the Cwax data with the data obtained earlier for the commercial GCE. It should be noted that the maximum currents obtained for the Cwax electrode are about 15% the values obtained for the GCE, which is similar to the differences in their physical surface areas of 18%. Solving the diffusion coefficient by combining both the Randles-Sevcik and Levich equations provides an electrochemical area of 0.060 cm <sup>2</sup> for the Cwax electrode compared to the 0.079 cm <sup>2</sup> geometric area expected for the electrode, which is a larger variation (lower by 25%) than observed for the GCE. This likely reflects the larger amount of non-conductive wax regions on the Cwax electrode surface. This experiment shows that despite the lower conductivity and electron transfer as compared to conventional GCEs, these inexpensive homebuilt Cwax structures can be effectively used as working electrodes in a variety of electrochemical experiments. 91 + + + + + + Figure 2.22: Graphite wax electrode: transient measurement of the one electron transfer for 1 mM tris(2,2’-bipridyl)dichlororuthenium(II) hexahydrate (Ru(bpy)3 <sup>2+</sup> ) in N2 blanketed 0.1 M HNO3 after an initial 15 minutes of direct N2 purge. The peak splitting, determined by methods explained in Chapter 1, was 85 mV at 100 mV s <sup>-1</sup> (top left). Plot of peak current versus (scan rate) <sup>1/2</sup> obtained from transient measurements (top right). Steady state measurement of Ru(bpy)3 <sup>2+</sup>, at 1.550 V, using modified RDE apparatus (bottom left). Plot of Levich current versus (rotation rate) <sup>1/2</sup> obtained from steady state measurements (bottom right). As a final note, while not specifically investigated for electroplating capabilities, these Cwax electrodes can function in this capacity. In several unexpected experiments, acid corrosion of the copper connection attached to the Pt counter electrode allowed copper ions to enter the electrolyte, and during LSV reduction experiments it was observed that current flowed and soon the Cwax surface was coated with a dark red-orange reflective film, an example of this happenstance is shown in Figure 2.23 . This film was identified as copper metal by powder X-ray diffraction. Because the wax can be easily 92 dissolved by aliphatic organic solvents, a thin film coating on these Cwax electrodes can be readily removed by floating it off into solution. Figure 2.23: The image is of a 0.079 cm <sup>2</sup> Cwax electrode tip with copper plated while in an H2 purged 0.5 M H2SO4 electrolyte solution. The dissolved copper ions leaked into the electrochemical cell from the copper lead attached to the platinum counter electrode. 2.3.5. Graphite-Wax as A Working Electrode with Embedded Catalyst Powders The experiments described in the earlier sections show that the metal-free Cwax electrodes provide large potential windows for several common electrolytes. The Cwax electrodes display sound chemical and electrochemical stability, along with reproducible production, and reasonable comparative behavior to commercial glassy carbon electrodes (GCE). The Cwax electrodes will find use in a plethora of electrochemical experiments. As detailed in Chapter 1, film and/or binder materials are required to successfully adhere solids onto GCEs and other commercially available electrodes. The key reason we pursued the Cwax electrode development was to enable direct adhesion of polycrystalline powders to be investigated alone, without additional adherents or binders, as 93 heterogeneous electrocatalysts in reactions relevant to capacitive materials and/or electrocatalysis in water splitting and fuel cell reactions, specifically HER and OER reactions as described in Chapter 1, along with oxygen reduction reactions (ORR) described further below in Section 2.3.5.4 . 2.3.5.1. Capacitance Measurments on Commercially Available MnO2 (EMD) A key difference between a capacitor and a battery is the rate of discharge. Capacitors rapidly release charge, while batteries slowly release charge. Materials that can quickly uptake and store substantial amounts of charge may also be valuable as capacitor materials as long as the materials can also rapidly release the stored charge upon demand. The theoretical specific capacitance for any material is the thermodynamic maximum capacitance per gram (farads per gram, F g <sup>-1</sup> ). The theoretical specific capacitance of a material can be calculated using Equation 2.5, where _n_ is the number of electrons transferred in the reaction, _F_ is Faraday’s constant (96,485.3 C mol <sup>-1</sup> e), is the potential range, and _MM_ is the molar mass of the material; the molar mass for anhydrous MnO2 is 86.94 g mol <sup>-1</sup> . <sup>48</sup> When one mol of material is considered, the output units are specific capacitance, farads per gram (F g <sup>-1</sup> ). Theoretical Specific Capacitance 2.5 One of the most popular materials used in capacitor applications is MnO2, as anhydrous forms have large theoretical specific charge storage capacity, with calculations ranging from 1,110 to 2,220 F g <sup>-1</sup> for the applied potential ranges of 1.0 V to 0.5 V respectively. Actual reported specific capacitance values for MnO2 range greatly, as low 94 as ~5 F g <sup>-1</sup>, <sup>45</sup> and the highest reported values around 700 F g <sup>-1</sup>, <sup>46</sup> all fall short of the theoretical maximum. The mechanism for the charge and discharge behavior of MnO2 is associated with the one electron transfer reaction between Mn <sup>4+/3+</sup>, the reaction between MnO2/MnOOH. The reaction, _MnO2_ + _e_ → _MnOOH_ + _OH_ <sup>_-_</sup>, is based on the interaction between either the protons of acidic electrolytes (H <sup>+</sup> ) or the cations of basic electrolytes (Li <sup>+</sup>, Na <sup>+</sup>, K <sup>+</sup>, etc.). <sup>49</sup> The wide ranging specific capacitance values for MnO2 result from dependencies on the electrolyte, specifically the cation concentration, the pH, the morphology of the crystalline structure, and the chosen scan rate (V s <sup>-1</sup> ). <sup>44, 46</sup> In this experiment, commercially available electrolytic MnO2 (EMD) was chosen as a electrocatalyst for a proof of concept capacitance experiment with the Cwax electrode, and comparisons are made between a bare Cwax electrode and a Cwax electrode with EMD embedded. The powdered EMD was embedded onto the Cwax electrode, in accordance with the loading method explained in Section 2.2.7.1, and its capacitive properties were investigated by cyclic voltammetry (CV). The mass of the EMD loaded onto the Cwax electrode was 0.28 mg. No sample was embedded onto the bare Cwax electrode, the same 0.28 mg mass was also used to emulate a mass for farad per gram comparisons between the two electrodes. When masses cannot be obtained, the best comparisons between the two electrodes are the capacitance (F) values alone, or the capacitance density (F cm <sup>-2</sup> ) based on the surface area of each electrode. Further details for capacitance calculations and value determination are found in Chapter 1. Carbon itself can act in a capacitive manner, 94 F g <sup>-1</sup> @ 10 mV s <sup>-1</sup> in 1.0 M Na2SO4, <sup>50</sup> therefore prior to testing any adhered samples, the bare Cwax electrode was first investigated to measure the Cwax electrode’s ability to uptake charge over a 0.5 V 95 potential range in aqueous 1.0 M Na2SO4. As shown in Figure 2.24, the Cwax electrode satisfactorily took up very little charge when compared to the EMD in the same potential range. Based on the measured current data in the double layer region, between 0.1 to 0.6 V, the Cwax electrode has very low capacitance and capacitance density values, 2.2 x 10 <sup>-6</sup> F, and 3.1 x 10 <sup>-5</sup> F cm <sup>-2</sup> respectfully, as well as a low emulated specific capacitance of 7.8 x 10 <sup>-3</sup> F g <sup>-1</sup> . Figure 2.24: Cyclic voltammograms of a bare Cwax electrode, and MnO2 (EMD) embedded onto a Cwax electrode. The electrode areas were 0.079 cm <sup>2</sup> and the CVs were collected between -100 and 800 mV (vs. SCE) at 5 mV s <sup>-1</sup> in N2 purged 1.0 M Na2SO4. The plot is in US/Texas convention. In contrast, when EMD was affixed to a Cwax electrode surface, the charge uptake greatly increased as shown in Figure 2.24, resulting in a capacitance, capacitance density, and specific capacitance of 1.6 x 10 <sup>-2</sup> F, 2.0 x 10 <sup>-1</sup> F cm <sup>-2</sup>, and 56.5 F g <sup>-1</sup> respectively; the 0.5 V applied potential range was between 0.1 to 0.6 V vs. SCE. As the analyzed data within Table 2.4 shows, the overall charge uptake of the EMD embedded onto the Cwax electrode is about 10 <sup>4</sup> times larger than the bare Cwax electrode alone. The specific capacitance of 56.5 F g <sup>-1</sup> for the embedded EMD is in good agreement with the 96 50 F g <sup>-1</sup> specific capacitance reported for an MnO2/carbon paste electrode at 10 mV s <sup>-1</sup> in 1.0 M Na2SO4. <sup>50</sup> These capacitive results help display the Cwax electrode materials ability to function as an electrocatalyst support to measure the electrochemical behavior of the samples without significant background from the Cwax electrode. Table 2.4: Capacitance Results for Bare Cwax and EMD-Cwax Electrodes <u>Material</u> <u>Capacitance (F)</u> <u>Capacitance Density (F cm</u> <sup>-2</sup> <u>)</u> <u>Specific Capacitance (F g</u> <sup>-1</sup> <u>)</u> <u>Bare Cwax</u> <u>2.2 x 10</u> <sup>-6</sup> <u>3.1 x 10</u> <sup>-5</sup> *7.8 x 10-3 <u>EMD</u> <u>1.6 x 10</u> <sup>-2</sup> <u>2.0 x 10</u> <sup>-1</sup> <u>56.5</u> - The mass for the bare Cwax electrode was emulated using the same mass of the loaded EMD (0.28 mg). The capacitance data was collected in N2 purged then blanketed 1.0 M Na2SO4 with a platinum mesh counter electrode and SCE reference electrode 2.3.5.2. Heterogeneous Hydrogen Evolution Reaction (HER) Using A Cwax Electrode The hydrogen evolution reaction (HER) in acidic electrolyte, _2 H_ <sup>_+_</sup> _(aq) + 2 e_ ⇌ _H2 (g)_, was detailed in Chapter 1. The thermodynamic reductive potential is the minimum applied potential for HER is 0.0 mV versus RHE. The overpotential ( _η_ ) is calculated by subtracting the thermodynamic potential from the measured potential. The HER experiments were carried out with linear sweep voltammetry (LSV) in 0.5 M H2SO4 with a constant H2 purge at 5 mVs <sup>-1</sup> scan rate. Platinum metal is considered a standard for electrocatalytic HER, therefore commercial 10% Pt-C was used to test the viability of the Cwax electrode for HER experiments and measurements. Filmed electrodes were not a focus of this thesis, so the measured HER activity with the Pt catalyst was compared to literature values. 97 Figure 2.25: The image shows voltammograms of a 0.079 cm <sup>2</sup> blank Cwax electrode (black) and a 0.079 cm <sup>2</sup> Cwax electrode tip with commercial 10% Pt-C embedded (red) in 0.5 M H2SO4 at 5 mV s <sup>-1</sup> with constant H2 purge. As shown, the blank Cwax electrode provides a large reductive window in the acidic electrolyte, which is ideal for studying HER electrocatalysts, as less than 5 mA cm <sup>-2</sup> current density was passed in the 600 mV potential window. The Pt-C catalyst began H2 production at ~ -10 mV, or at an overpotential ( _η_ ) of 10 mV over the thermodynamic reduction potential for HER of 0.0 mV, and the catalyst was passing 10 mA cm <sup>-2</sup> current density at ~ -50 mV, both versus RHE. As shown in Figure 2.25, the bare Cwax electrode provides a large reductive window in the acidic electrolyte for testing electrocatalysts for HER activity as it never surpassed a current density of 5 mA cm <sup>-2</sup> in the 600 mV (versus RHE) potential window. The Pt catalyst first displayed HER electron transfer at an applied (onset) potential of around -10 mV, and the Pt catalyst was producing a current density of -10 mA cm <sup>-2</sup> by ~ -50 mV, all versus RHE. The Tafel analysis on the 10% Pt-C sample, explained in Chapter 1, produced a Tafel slope of -36 mV decade <sup>-1</sup> . These HER values agree well with reported HER activity for commercial Pt-C electrocatalysts in aqueous 0.5 M H2SO4, which report onset and 10 mA cm <sup>-2</sup> current density potentials (versus RHE) of -5 ± 5 mV, and -49 ± 9 mV, respectively when supported on either glassy carbon (GC) or carbon paper electrodes. <sup>51-53</sup> These results provide further evidence of the viability of the 98 Cwax electrodes, and why the Cwax electrodes were chosen to study metal phosphides synthesized in the Gillan laboratory for electrocatalytic HER presented in Chapter 3. 2.3.5.3. Heterogeneous Oxygen Evolution Reaction (OER) Using a Cwax Electrode The oxygen evolution reaction (OER) in basic electrolyte, _4 OH_ <sup>_-_</sup> _(aq)_ ⇌ _4 e_ + _2_ _H2O (l)_ + _O2_ (g), was detailed in Chapter 1. The thermodynamic oxidative potential, 1.229 V versus RHE, is the minimum applied potential required for OER. The overpotential ( _η_ ) is calculated by subtracting the thermodynamic potential from the measured potential. The OER experiments were carried out with linear sweep voltammetry (LSV) in 0.1 M KOH with a constant O2 purge at 5 mVs <sup>-1</sup> . Ruthenium (IV) oxide is considered a standard for electrocatalytic OER, therefore commercial RuO2 was used to test the viability of the Cwax electrode for OER experiments and measurements. Filmed electrodes were not a focus of this thesis, so the measured OER by RuO2 was compared to literature values. 99 Figure 2.26: The image shows voltammograms of a 0.079 cm <sup>2</sup> blank Cwax electrode (black) and a 0.079 cm <sup>2</sup> Cwax electrode tip with embedded commercial RuO2 (red) measuring OER in 0.1 M KOH at 5 mV s <sup>-1</sup> with constant O2 purge. As shown, the blank Cwax electrode provides a large oxidative window in the basic electrolyte, which is ideal for studying OER electrocatalysts, as less than 5 mA cm <sup>-2</sup> current density was achieved at 1,800 mV vs RHE. The RuO2 began O2 production at ~1.445 V, or at an overpotential ( _η_ ) of 216 mV over the thermodynamic oxidation potential for OER of 1.229 V, and the catalyst was passing 10 mA cm <sup>-2</sup> current density at 1.550 V, both versus RHE. As shown in Figure 2.26, the Cwax electrode provides a large oxidative window in the basic electrolyte for electrocatalytic, never surpassing a current density of 5 mA cm <sup>-2</sup> by 1.800 V RHE. The RuO2 catalyst first displayed electron transfer for OER at an applied (onset) potential of around 1.445 V and the Ru catalyst was producing a current density of -10 mA cm <sup>-2</sup> by ~1.550 V, both versus RHE. These values agree well with reported OER activity for RuO2, versus RHE, for the onset and -10 mA cm <sup>-2</sup> current density, of ~1.450 V, and ~1.560 to 1.600 V respectively. <sup>54, 55</sup> These results provide even further evidence of the viability of the Cwax electrodes, and why the Cwax electrodes were chosen to study metal oxides synthesized in the Gillan laboratory for electrocatalytic OER presented in Chapter 5. 100 2.3.5.4. Heterogeneous Oxygen Reduction Reaction (ORR) Using A Cwax Electrode To provide a final proof of principle application of the Cwax electrode tip using the rotation modification shown in Figure 2.11, the oxygen reduction reaction (ORR) was measured electrochemically by LSV with a commercially available carbon supported platinum catalyst, 20% Pt-C. Similar to the OER and HER reactions described in Chapter 1, the ORR reaction follows a multi-electron process that converts molecular O2 into reduced oxide anions, O <sup>2-</sup> . The multi-electron transfer in ORR proceeds by one of two main mechanisms, indirectly via a two electron, peroxide intermediate (O <sup>-</sup> ) that is followed by another transfer of two electrons to form oxide anions (O <sup>2-</sup> ), or via a four electron transfer process directly to the oxide anions (O <sup>2-</sup> ). As mentioned in Section 2.2.7.4.3, basic electrolytes are often used when electrochemically measuring oxygen reduction properties, therefore in basic electrolytes the two aforementioned mechanisms for the reduction of O2 gas involve the formation of hydroxide anions (OH <sup>-</sup> ) as shown in Equations 2.6 and 2.7 . <sup>2</sup> _Indirect - peroxide intermediate with two, two electron transfer steps_ 2.6 _Direct – one four electron transfer step_ 2.7 101 In this study, the 20% Pt-C powder was embedded onto the Cwax electrode tips in accordance with the loading method explained in Section 2.2.7.1, and their ORR properties were measured by LSV at a scan rate of 5 mV s <sup>-1</sup> at different rotation rates in 0.1M KOH with a constant flow of O2 gas. The loaded mass of the Pt catalyst onto the electrode tips was ~0.1 mg. Similar to the rotating electrode experiment in Section 2.3.4 with the <mark>Ru(bpy)</mark> 3 <sup>2+</sup> solution, the rotation rate of the electrode limits the mass transport of O2 gas being delivered to the electrode surface through the electrolyte limiting the current that passes during the reduction of O2 gas. + Figure 2.27: The left image represents LSV data collected with the rotating apparatus presented in Figure 2.11 at different rotation rates using a 0.079 cm <sup>2</sup> Cwax tip with 20% Pt-C embedded in 0.1 M KOH with constant O2 bubbling @ 5 mVs <sup>-1</sup> . The vertical line represents the half-wave ( _E1/2_ ) potential at 1,600 RPM (925 mV vs. RHE). The right image represents the linear fit of the limited current values measured at 650 mV vs. RHE. The slope of this line allows for the number of electrons to be calculated. In this particular experiment the calculated electrons ( _n_ ) were ~3, which may be representative of the mixed kinetics of hydroxide and peroxide formation. The limiting currents for ORR are commonly evaluated in one of two ways, (1) the half-wave potential ( _E1/2_ ), the applied potential that results in half of the limiting current at a specific rotation rate, typically 1,600 RPM as represented by the vertical line in the left image of Figure 2.27, and (2) by determining the number of electrons 102 transferred during ORR through linear regression of the limiting current at a potential where the current is limited, plateaued, as shown in the right image of Figure 2.27 at 650 mV versus RHE. The limiting currents for oxygen reduction that resulted from an LSV experiment with 20% Pt-C and rotation of a Cwax electrode are shown in the left image of Figure 2.27 . Three replicate experiments, with different Cwax tips, were performed at the listed rotation rates. Filmed electrodes were not a focus of this thesis, therefore only literature comparisons are made for ORR values reported with 20% Pt-C on GCEs, these experiments are often performed similar to the experimental conditions herein, but at a scan rate of 10 mV s <sup>-1</sup> . <sup>56-58</sup> The average half-wave potential for the three ORR experiments with 20% Pt-C embedded onto Cwax electrodes was 927 ± 3 mV versus RHE, at 5 mV s <sup>-1</sup> . The average reported half-wave potential covering ~90% of ORR Pt data on GCEs is 840 ± 30 mV versus RHE at 10 mV s <sup>-1</sup> with a full range between 600 to 910 mV. <sup>56</sup> The 910 mV is ~20 mV different than the Pt embedded Cwax electrode, which could be the result of one or more of the following, the slower scan rate which lowers the limited current found at each specific rotation rate, differences in the carbon source, graphite versus GC, and the difference in activity of the electrode surface as the Cwax is 55% inert wax. The limiting currents for ORR collected by LSV were processed with the Koutecky-Levich Equation in Equation 2.8, along with the rearrangement of the defined variables in Equations 2.9 and 2.10 . The variables for all three equations are, the current density ( _j_, A cm <sup>-2</sup> ) measured by the instrument, the limiting current density ( _jL_, A cm <sup>-2</sup> ) that is limited by the mass transport of O2 gas to the electrode, the kinetic current density ( _jK_, A cm <sup>-2</sup> ) that results in the absence of any mass transport limitations, the rotation rate 103 (ω), radians s <sup>-1</sup> ), faraday’s constant ( _F_, 96,485 C mol e <sup>-1</sup> ), the bulk concentration of O2 gas ( _C0_, 1.20 x 10 <sup>-6</sup> mol cm <sup>-3</sup> ) in the electrolyte maintained by a continual flow of O2 into the solution, the diffusion coefficient of O2 gas in 0.1M KOH ( _D0_, 1.90 x 10 <sup>-5</sup> cm <sup>2</sup> s <sup>-1</sup> ), and the kinematic viscosity of the electrolyte (ν, 0.01 cm <sup>2</sup> s <sup>-1</sup> ). <sup>2</sup> 2.8 2.9 2.10 The slope of the line that results from the plot of the inverse of the measured current density versus the inverse of the square root of the rotation rate, see the example in the right image of Figure 2.27, was processed using Equation 2.9 . The number of electrons transferred ( _n_ ) during the reduction of molecular O2 gas during the rotation experiment can be determined by the rearrangement of the slope equation into the form shown in Equation 2.10 . The number of electrons transferred ( _n_ ) for ORR with the 20% Pt-C/Cwax electrode, as calculated by Equation 2.10, were 2.8 and 3.0 at 650 mV and 550 mV, vs. RHE respectively. The average number of electrons transferred for 104 the three ORR experiments with the Pt catalyst embedded onto the Cwax electrodes was 4 ± 2, this agrees with the direct four electron transfer mechanism detailed in the half reaction in Equation 2.7 . Several inconsistencies are reported with ORR using Pt catalysts. Examples include, identical Pt catalysts from one commercial source was reported with significant differences in ORR activity and behavior when studied by similar methods but by different laboratories, and depending on the laboratory, the activity was either as expected, or over or under estimated, which can lead to a fluctuation in the limiting currents and thus the calculated number of electrons transferred. <sup>56</sup> 2.3.6. Impact of Cwax Electrical Resistance on Electrochemical Measurments The data and results described above demonstrate the utility of a 45 wt% graphite in paraffin wax as a conductive material with a sticky surface that enables useful electrochemical and electrocatalytic investigations. After these studies were completed, subsequent investigations by Gillan group members (primarily Janaka Abeysinghe) identified areas for improvement over these initial Cwax electrode designs. Several important considerations were identified that are important to briefly highlight here to better inform future readers of this thesis. Once further developed, these data will be included in a paper describing these Cwax tip design strategies and their electrochemical use. As is clear from the earlier discussion, these Cwax electrodes contain only 45% conducting materials in an insulating matrix of paraffin wax. It is expected that their overall resistance should be higher than that for pure carbon structures. Janaka Abesinghe investigated several different Cwax compositions (20 – 60 wt% graphite). 105 During this study, several challenges were revealed, namely the 60 wt% graphite mixture is difficult to consistently prepare as a homogeneous mixture (uneven mixing and clumps are present), and at very low graphite content (20 wt%) the overall resistance is very high (thousands of Ohms) as this percentage of graphite is at or near the electrical percolation threshold of ~20 wt% for electrical conduction of very fine graphite particles in a non conducting medium. Coarse sized particles are reported to require a mixture with a minimum of 30-40 wt% graphite to overcome the electrical percolation threshold for electrical conductivity. <sup>15</sup> Figure 2.28: The large image is a plot of the resistance (Ω) versus the weight percent (wt%) of graphite for different Cwax mixtures at a distance of 1.0 cm between the multimeter probes. The 20, 25, or 30 wt% graphite mixtures were not shown as the measured resistances were much larger and off the scale for this plot. The inset image is a zoomed image of the 45 to 60 wt% graphite range of the plot. Surprisingly, the 50 and 55 wt% Cwax mixtures display nearly identical resistances, while the 45 wt% exhibits ~3 times the resistance. The resistance for the 60 wt% mixture was 20 Ω, which was the lowest resistance for the explored Cwax mixtures, however homogenous mixtures are difficult to produce at 60 wt% and was not used for any electrodes. The 100 wt% is for a graphite rod. 106 The resistance, in ohms (Ω), of several weight percent Cwax mixtures was measured via a multimeter with fine pointed test probes. The measurements were collected with the probes separated at a distance of 1.0 cm. As shown in Figure 2.28, and more explicitly in Table 2.5, there is significant resistance in the Cwax mixtures when the graphite wt% is below 45 wt%, and the 60 wt% graphite displayed the lowest resistance of the explored Cwax mixtures. Unfortunately, the 60 wt% mixture does not homogenously mix, producing a clumpy mixture with residual graphite powder sluffing off, both are undesirable electrode traits and no further attempts were made at 60 wt%. The resistance of the 50 wt% and 55 wt% was determined to be nearly identical, and the ‘stickiness’ of the electrode improves by increasing the amount of paraffin wax in the mixture, the 50 wt% Cwax mixture is now transitioning into the primary mixture utilized by the Gillan group. Table 2.5: Resistance and Conductivity Data for Graphite Weight Percentages <u>Wt% Graphite</u> <u>Resistance (Ω)</u> <u>Conductivity (S cm</u> <sup>-1</sup> <u>)</u> <u>20 wt%</u> <u>1.3 x 10</u> <sup>5</sup> <u>9.8 x 10</u> <sup>-5</sup> <u>25 wt%</u> <u>3.0</u> <u>±</u> <u>0.6 x 10</u> <sup><u>4</u></sup> <u>4.2</u> <u>±</u> <u>0.7 x 10</u> <sup><u>-4</u></sup> <u>30 wt%</u> <u>3.8</u> <u>±</u> <u>0.3 x 10</u> <sup><u>3</u></sup> <u>3.3</u> <u>±</u> <u>0.3 x 10</u> <sup><u>-3</u></sup> <u>35 wt%</u> <u>630</u> <u>±</u> <u>30</u> <u>1.98</u> <u>±</u> <u>0.9 x 10</u> <sup><u>-2</u></sup> <u>40 wt%</u> <u>360</u> <u>±</u> <u>40</u> <u>3.5</u> <u>±</u> <u>0.4 x 10</u> <sup><u>-2</u></sup> <u>45 wt%</u> <u>136</u> <u>±</u> <u>5</u> <u>9.2</u> <u>±</u> <u>0.3 x 10</u> <sup><u>-2</u></sup> <u>50 wt%</u> <u>40</u> <u>±</u> <u>10</u> <u>0.30</u> <u>±</u> <u>0.06</u> <u>55 wt%</u> <u>42</u> <u>±</u> <u>5</u> <u>0.30</u> <u>±</u> <u>0.03</u> <u>60 wt%</u> <u>20</u> <u>±</u> <u>1</u> <u>0.61</u> <u>±</u> <u>0.04</u> <u>100 wt% (graphite rod)</u> <u>0.13</u> <u>±</u> <u>0.01</u> <u>28</u> <u>±</u> <u>2</u> The resistance measurements were collected with a multimeter with the probes separated at a distance of 1.0 cm. 107 Figure 2.29: The large image is a plot of the conductivity (Ω <sup>-1</sup> cm <sup>-1</sup> ) versus the weight percent (wt%) of graphite for different Cwax mixtures at a distance of 1.0 cm between the multimeter probes. The data for 20, 25, or 30 wt% graphite mixtures is not shown as the three mixtures exhibited conductivities near zero. The inset image is a zoomed image of the 45 to 60 wt% graphite range of the plot. As with the resistance, the 50 and 55 wt% Cwax mixtures display nearly identical conductivities, while the 45 wt% exhibits ~3 times lower conductivity and the 60 wt% mixture was 0.61 Ω <sup>-1</sup> cm <sup>-1</sup>, which was the highest as expected from its lower resistance. The 100 wt% is for a graphite rod. The conductivity (Ω <sup>-1</sup> cm <sup>-1</sup>, which is equal to Siemens per cm, S cm <sup>-1</sup> ) of a material is calculated by Equation 2.11 . The length, in cm, is the distance between the measuring probes and was set to 1 cm for all measurements, the resistance, in ohms, is measured by the instrument, and the area, in cm <sup>2</sup>, is the cross sectional area of the end of the material. The cross sectional area of the Cwax electrode tips and the round graphite rod were 0.079 cm <sup>2</sup> and 0.28 cm <sup>2</sup>, respectively as the _area for a circle = πr_ <sup>_2_</sup>, and _r_ is the radius of the circular surface. For Cwax electrodes _r_ = 3 mm and for the round graphite rod _r_ = 6 mm. It was not surprising, based on the lower measured resistance, that the graphite rod had a significantly higher conductivity, 28 ± 2 S cm <sup>-1</sup>, than the Cwax mixtures, which ranged from 9.8 x 10 <sup>-5</sup> to 0.61 S cm <sup>-1</sup>, however it was surprising that the 108 28 S cm <sup>-1</sup> conductivity for the graphite rod was much lower than the reported conductivity for graphite, ~10 <sup>4</sup> S cm <sup>-1</sup> . <sup>59</sup> Further investigations of the Cwax mixtures are underway in the Gillan Group. 2.11 The impact of higher electrode resistance will be noted in later chapters, but it should be noted that higher resistance can lead to greater applied potentials measured for specific current densities in HER and OER electrochemical experiments. Resistance corrections of the applied potentials can be made manually, through calculation, or by using processes available in the potentiostat software. The manual correction is explained further in the Microsoft Visual Basic for Applications (VBA) program detailed in Appendix C, and care must be taken when applying resistance corrections to the I-V curves as some manipulations may overcorrect the data and can remove effects due to the catalyst being examined. 2.4. Conclusions The 45% graphite in paraffin wax (Cwax) electrode material presents a highly versatile electrode material as it is readily manipulated into nearly any shape and size. Alone, the Cwax has little electrochemical activity, and the Cwax creates a sticky surface that is sufficiently conductive to be integrated into a variety of electrochemical experiments. As was detailed throughout this Chapter, the Cwax electrode design functions well as a standalone, bare electrode in a variety of electrochemical experiments, comparing very well with commercial glassy carbon electrodes (GCE). The Cwax 109 electrode also functions well as an embeddable electrode to measure the electrochemical behavior of electrocatalysts without additional additives that may interfere or alter their measured behavior. Chapters 3 and 4 of this thesis utilized the Cwax electrode for electrocatalyst exploration and the Chapters also introduce additional benefits of the Cwax electrode, mainly post electrochemical analysis, including SEM and XRD, of samples embedded in the Cwax electrode surface. 2.5. References 1. _Electroanalysis in Biomedical and Pharmaceutical Sciences_ ; Scholz, F., Ed.; 2015. DOI: 10.1007/978-3-662-47138-8. 2. Bard, A. J. _Electrochemical methods : fundamentals and applications / Allen J. Bard,_ _Larry R. Faulkner_ ; New York : John Wiley, 2001. 3. Adams, R. N. _ELECTROCHEMISTRY AT SOLID ELECTRODES_ ; Marcel Dekker, inc, 1969. 4. Pisoschi, A. M.; Pop, A.; Iordache, F.; Stanca, L.; Bilteanu, L.; Serban, A. I. Antioxidant Determination with the Use of Carbon-Based Electrodes. _Chemosensors_ 2021, _9_ (4). DOI: 10.3390/chemosensors9040072. 5. McCreery, R. L. Advanced carbon electrode materials for molecular electrochemistry. _Chem Rev_ 2008, _108_ (7), 2646-2687. DOI: 10.1021/cr068076m. 6. Maheshwari, P. H. Developing the processing stages of carbon fiber composite paper as efficient materials for energy conversion, storage, and conservation. _Materials Science_ _for Energy Technologies_ 2019, _2_ (3), 490-502. DOI: 10.1016/j.mset.2019.04.004. 7. Redivo, L.; Stredansky, M.; De Angelis, E.; Navarini, L.; Resmini, M.; Svorc, L. Bare carbon electrodes as simple and efficient sensors for the quantification of caffeine in commercial beverages. _R Soc Open Sci_ 2018, _5_ (5), 172146. DOI: 10.1098/rsos.172146. 8. Stozhko, N. Y.; Malakhova, N. A.; Fyodorov, M. V.; Brainina, K. Z. Modified carbon-containing electrodes in stripping voltammetry of metals. Part II. Composite and microelectrodes. _Journal of Solid State Electrochemistry_ 2007, _12_ (10), 1219-1230. DOI: 10.1007/s10008-007-0474-2. 9. Nesakumar, N.; Berchmans, S.; Alwarappan, S. Chemically modified carbon based electrodes for the detection of reduced glutathione. _Sensors and Actuators B: Chemical_ 2018, _264_, 448-466. DOI: 10.1016/j.snb.2018.01.224. 110 10. Garsany, Y.; Baturina, O. A.; Swider-Lyons, K. E.; Kocha, S. S. Experimental methods for quantifying the activity of platinum electrocatalysts for the oxygen reduction reaction. _Anal Chem_ 2010, _82_ (15), 6321-6328. DOI: 10.1021/ac100306c. 11. Dong, G.; Fang, M.; Wang, H.; Yip, S.; Cheung, H.-Y.; Wang, F.; Wong, C.-Y.; Chu, S. T.; Ho, J. C. Insight into the electrochemical activation of carbon-based cathodes for hydrogen evolution reaction. _Journal of Materials Chemistry A_ 2015, _3_ (24), 1308013086, 10.1039/C5TA02551F. DOI: 10.1039/C5TA02551F. 12. Popczun, E. J.; Read, C. G.; Roske, C. W.; Lewis, N. S.; Schaak, R. E. Highly Active Electrocatalysis of the Hydrogen Evolution Reaction by Cobalt Phosphide Nanoparticles. 2014, _53_ (21), 5427-5430. DOI: doi:10.1002/anie.201402646. 13. Domenech-Carbo, A.; Labuda, J.; Scholz, F. Electroanalytical chemistry for the analysis of solids: Characterization and classification (IUPAC Technical Report). _Pure_ _and Applied Chemistry_ 2013, _85_ (3), 609-631. DOI: 10.1351/Pac-Rep-11-11-13. 14. Bellido-Milla, D.; Cubillana-Aguilera, L. M.; El Kaoutit, M.; Hernandez-Artiga, M. P.; Hidalgo-Hidalgo de Cisneros, J. L.; Naranjo-Rodriguez, I.; Palacios-Santander, J. M. Recent advances in graphite powder-based electrodes. _Anal Bioanal Chem_ 2013, _405_ (11), 3525-3539. DOI: 10.1007/s00216-013-6816-2. 15. Papanikolaou, I.; Litina, C.; Zomorodian, A.; Al-Tabbaa, A. Effect of Natural Graphite Fineness on the Performance and Electrical Conductivity of Cement Paste Mixes for Self-Sensing Structures. _Materials (Basel)_ 2020, _13_ (24). From NLM. 16. Švancara, I.; Vytřas, K.; Kalcher, K.; Walcarius, A.; Wang, J. Carbon Paste Electrodes in Facts, Numbers, and Notes: A Review on the Occasion of the 50-Years Jubilee of Carbon Paste in Electrochemistry and Electroanalysis. _Electroanalysis_ 2009, _21_ (1), 7-28. DOI: 10.1002/elan.200804340. 17. Sauber, M.; Dixon, D. G. Electrochemical study of leached chalcopyrite using solid paraffin-based carbon paste electrodes. _Hydrometallurgy_ 2011, _110_ (1-4), 1-12. DOI: 10.1016/j.hydromet.2011.07.009. 18. Svancara, I.; Walcarius, A.; Kalcher, K.; Vytras, K. Carbon paste electrodes in the new millennium. _Cent Eur J Chem_ 2009, _7_ (4), 598-656. DOI: 10.2478/s11532-0090097-9. 19. Svancara, I.; Kalcher, K. Carbon Paste Electrodes. In _Electrochemistry of carbon_ _electrodes_, Alkire, R. C., Bartlett, P. N., Lipkowski, J. Eds.; JohnWiley & Sons, Incorporated, 2015. 111 20. Almeida, C. M. V. B.; Giannetti, B. F. A new and practical carbon paste electrode for insoluble and ground samples. _Electrochemistry Communications_ 2002, _4_ (12), 985-988. DOI: 10.1016/s1388-2481(02)00511-8. 21. Gao, H.; He, J. B.; Wang, Y.; Deng, N. Advantageous combination of solid carbon paste and a conducting polymer film as a support of platinum electrocatalyst for methanol fuel cell. _Journal of Power Sources_ 2012, _205_, 164-172. DOI: 10.1016/j.jpowsour.2012.01.062. 22. Mirel, S.; Sandulescu, R.; Kauffmann, J. M.; Roman, L. Electrochemical study of some 2-mercapto-5-R-ammino-1,3,4-thiadiazole derivatives using carbon paste electrodes. _J Pharmaceut Biomed_ 1998, _18_ (4-5), 535-544. DOI: Doi 10.1016/S07317085(98)00282-9. 23. Sandulescu, R.; Mirel, S.; Oprean, R. The development of spectrophotometric and electroanalytical methods for ascorbic acid and acetaminophen and their applications in the analysis of effervescent dosage forms. _J Pharmaceut Biomed_ 2000, _23_ (1), 77-87. DOI: Doi 10.1016/S0731-7085(00)00277-6. 24. Long, J. W.; Ayers, K. E.; Rolison, D. R. Electrochemical characterization of highsurface-area catalysts and other nanoscale electroactive materials at sticky-carbon electrodes. _J Electroanal Chem_ 2002, _522_ (1), 58-65. DOI: Pii S0022-0728(02)00653-8 Doi 10.1016/S0022-0728(02)00653-8. 25. Petit, C.; Kauffmann, J.-M. New Carbon Paste Electrode for the Development of Biosensors. _Analytical Proceedings Including Analytical Communications_ 1995, _32_ . 26. Petit, C.; Gonzalez-Cortes, A.; Kauffmann, J. M. Preparation and characterization of a new enzyme electrode based on solid paraffin and activated graphite particles. _Talanta_ 1995, _42_ (11), 1783-1789. DOI: 10.1016/0039-9140(95)01645-7. 27. Rajendran, V.; Csoregi, E.; Okamoto, Y.; Gorton, L. Amperometric peroxide sensor based on horseradish peroxidase and toluidine blue _O_ -acrylamide polymer in carbon paste. _Analytica Chimica Acta_ 1998, _373_ (2-3), 241-251. DOI: Doi 10.1016/S00032670(98)00397-3. 28. Blankert, B.; Dominguez, O.; El Ayyas, W.; Arcos, J.; Kauffmann, J. M. Horseradish peroxidase electrode for the analysis of clozapine. _Anal Lett_ 2004, _37_ (5), 903-913. DOI: 10.1081/Al-120030286. 29. Razola, S. S.; Aktas, E.; Vire, J. C.; Kauffmann, J. M. Reagentless enzyme electrode based on phenothiazine mediation of horseradish peroxidase for subnanomolar hydrogen peroxide determination. _Analyst_ 2000, _125_ (1), 79-85. DOI: 10.1039/a906623c. 112 30. Moscone, D.; D'Ottavi, D.; Compagnone, D.; Palleschi, G.; Amine, A. Construction and analytical characterization of Prussian Blue-based carbon paste electrodes and their assembly as oxidase enzyme sensors. _Analytical Chemistry_ 2001, _73_ (11), 2529-2535. DOI: DOI 10.1021/ac001245x. 31. Vieira, I. C.; Fatibello-Filho, O. Biosensor based om paraffin/graphite modified with sweet potato tissue for the determination of hydroquinone in cosmetic cream in organic phase. _Talanta_ 2000, _52_, 681-689. 32. Takeuchi, R. M.; Santos, A. L.; Padilha, P. M.; Stradiotto, N. R. A solid paraffinbased carbon paste electrode modified with 2-aminothiazole organofunctionalized silica for differential pulse adsorptive stripping analysis of nickel in ethanol fuel. _Anal Chim_ _Acta_ 2007, _584_ (2), 295-301. DOI: 10.1016/j.aca.2006.11.069. 33. Takeuchi, R. M.; Santos, A. L.; Padilha, P. M.; Stradiotto, N. R. Copper determination in ethanol fuel by differential pulse anodic stripping voltammetry at a solid paraffin-based carbon paste electrode modified with 2-aminothiazole organofunctionalized silica. _Talanta_ 2007, _71_ (2), 771-777. DOI: 10.1016/j.talanta.2006.05.035. 34. Silva, D. H.; Costa, D. A.; Takeuchi, R. M.; Santos, A. L. Fast and Simultaneous Determination of Pb2 <sup>+</sup> and Cu <sup>2+</sup> in Water Samples using a Solid Paraffin-Based Carbon Paste Electrode Chemically Modified with 2-Aminothiazole-Silica-Gel. _J Brazil Chem_ _Soc_ 2011, _22_ (9), 1727-1735. DOI: Doi 10.1590/S0103-50532011000900015. 35. Sakira, A. K.; Some, I. T.; Ziemons, E.; Dejaegher, B.; Mertens, D.; Hubert, P.; Kauffmann, J. M. Determination of Arsenic(III) at a Nanogold Modified Solid Carbon Paste Electrode. _Electroanalysis_ 2015, _27_ (2), 309-316. DOI: 10.1002/elan.201400485. 36. Malongo, T. K.; Patris, S.; Macours, P.; Cotton, F.; Nsangu, J.; Kauffmann, J. M. Highly sensitive determination of iodide by ion chromatography with amperometric detection at a silver-based carbon paste electrode. _Talanta_ 2008, _76_ (3), 540-547. DOI: 10.1016/j.talanta.2008.03.053. 37. Marian, I. O.; Sãndulescu, R.; Bonciocat, N. Diffusion coefficient (or concentration) determination of ascorbic acid using carbon paste electrodes in Fredholm alternative. _J_ _Pharmaceut Biomed_ 2000, _23_, 227-230. DOI: PII: S0731-7085(00)00273-9. 38. Liu, R.; Wolfe, A. L.; Dzombak, D. A.; Horwitz, C. P.; Stewart, B. W.; Capo, R. C. Controlled electrochemical dissolution of hydrothermal and sedimentary pyrite. _Appl_ _Geochem_ 2009, _24_ (5), 836-842. DOI: 10.1016/j.apgeochem.2009.01.012. 39. Walcarius, A.; Mariaulle, P.; Lamberts, L. Zeolite-modified solid carbon paste electrodes. _Journal of Solid State Electrochemistry_ 2003, _7_ (10), 671-677. DOI: 10.1007/s10008-003-0369-9. 113 40. McCreery, R. L. Advanced Carbon Electrode Materials for Molecular Electrochemistry. _Chemical Reviews_ 2008, _108_ (7), 2646-2687. DOI: 10.1021/cr068076m. 41. Callejas, J. F.; Read, C. G.; Roske, C. W.; Lewis, N. S.; Schaak, R. E. Synthesis, Characterization, and Properties of Metal Phosphide Catalysts for the HydrogenEvolution Reaction. _Chemistry of Materials_ 2016, _28_ (17), 6017-6044. DOI: 10.1021/acs.chemmater.6b02148. 42. Anantharaj, S.; Ede, S. R.; Karthick, K.; Sam Sankar, S.; Sangeetha, K.; Karthik, P. E.; Kundu, S. Precision and correctness in the evaluation of electrocatalytic water splitting: revisiting activity parameters with a critical assessment. _Energy &_ _Environmental Science_ 2018, _11_ (4), 744-771. DOI: 10.1039/c7ee03457a. 43. Chen, Z.; Dinh, H. N.; Miller, E. _Photoelectrochemical Water Splitting: Standards,_ _Experimental Methods, and Protocols_ ; Springer, 2013. DOI: 10.1007/978-1-4614-82987. 44. Devaraj, S.; Munichandraiah, N. Effect of Crystallographic Structure of MnO2 on Its Electrochemical Capacitance Properties. _The Journal of Physical Chemistry C_ 2008, _112_ (11), 4406-4417. DOI: 10.1021/jp7108785. 45. Dupont, M. F.; Donne, S. W. Electrolytic Manganese Dioxide Structural and Morphological Effects on Capacitive Performance. _Electrochimica Acta_ 2016, _191_, 479[490. DOI: https://doi.org/10.1016/j.electacta.2016.01.050.](https://doi.org/10.1016/j.electacta.2016.01.050) 46. Ghodbane, O.; Pascal, J.-L.; Favier, F. Microstructural Effects on Charge-Storage Properties in MnO2-Based Electrochemical Supercapacitors. _ACS Applied Materials &_ _Interfaces_ 2009, _1_ (5), 1130-1139. DOI: 10.1021/am900094e. 47. Abeysinghe, J. P.; Kölln, A. F.; Gillan, E. G. Rapid and Energetic Solid-State Metathesis Reactions for Iron, Cobalt, and Nickel Boride Formation and Their Investigation as Bifunctional Water Splitting Electrocatalysts. _ACS Materials Au_ 2022 . DOI: 10.1021/acsmaterialsau.1c00079. 48. Sankar, K. V.; Selvan, R. K. The preparation of MnFe2O4 decorated flexible graphene wrapped with PANI and its electrochemical performances for hybrid supercapacitors. _RSC Advances_ 2014, _4_ (34), 17555-17566, 10.1039/C3RA47681B. DOI: 10.1039/C3RA47681B. 49. Cao, Y. L.; Yang, H. X.; Ai, X. P.; Xiao, L. F. The mechanism of oxygen reduction on MnO2-catalyzed air cathode in alkaline solution. _J Electroanal Chem_ 2003, _557_, 127[134. DOI: https://doi.org/10.1016/S0022-0728(03)00355-3.](https://doi.org/10.1016/S0022-0728%0x2803%0x2900355-3) 114 50. Zhang, L.; Chi, Y.; Li, Z.; Sun, X.; Gu, H.; Zhang, H.; Chen, Y.; Chen, G. Z. Effects of Pore Widening vs Oxygenation on Capacitance of Activated Carbon in Aqueous Sodium Sulfate Electrolyte. _Journal of The Electrochemical Society_ 2020, _167_ (4), 040524. DOI: 10.1149/1945-7111/ab75c8. 51. Ma, L.; Ting, L. R. L.; Molinari, V.; Giordano, C.; Yeo, B. S. Efficient hydrogen evolution reaction catalyzed by molybdenum carbide and molybdenum nitride nanocatalysts synthesized via the urea glass route. _Journal of Materials Chemistry A_ 2015, _3_ (16), 8361-8368, 10.1039/C5TA00139K. DOI: 10.1039/C5TA00139K. 52. Tuo, Y.; Lu, Q.; Chen, C.; Liu, T.; Pan, Y.; Zhou, Y.; Zhang, J. The facile synthesis of core–shell PtCu nanoparticles with superior electrocatalytic activity and stability in the hydrogen evolution reaction. _RSC Advances_ 2021, _11_ (42), 26326-26335, 10.1039/D1RA04001D. DOI: 10.1039/D1RA04001D. 53. Zhang, H.; Ma, Z.; Liu, G.; Shi, L.; Tang, J.; Pang, H.; Wu, K.; Takei, T.; Zhang, J.; Yamauchi, Y.; et al. Highly active nonprecious metal hydrogen evolution electrocatalyst: ultrafine molybdenum carbide nanoparticles embedded into a 3D nitrogen-implanted carbon matrix. _NPG Asia Materials_ 2016, _8_ (7), e293-e293. DOI: 10.1038/am.2016.102. 54. Liu, M.; Hof, F.; Moro, M.; Valenti, G.; Paolucci, F.; Pénicaud, A. Carbon supported noble metal nanoparticles as efficient catalysts for electrochemical water splitting. _Nanoscale_ 2020, _12_ (39), 20165-20170, 10.1039/D0NR05659F. DOI: 10.1039/D0NR05659F. 55. Hu, Y.; Luo, X.; Wu, G.; Chao, T.; Li, Z.; Qu, Y.; Li, H.; Wu, Y.; Jiang, B.; Hong, X. Engineering the Atomic Layer of RuO2 on PdO Nanosheets Boosts Oxygen Evolution Catalysis. _ACS Applied Materials & Interfaces_ 2019, _11_ (45), 42298-42304. DOI: 10.1021/acsami.9b16492. 56. Ruan, M.; Liu, J.; Song, P.; Xu, W. Meta-analysis of commercial Pt/C measurements for oxygen reduction reactions via data mining. _Chinese Journal of Catalysis_ 2022, _43_ [(1), 116-121. DOI: https://doi.org/10.1016/S1872-2067(21)63854-8.](https://doi.org/10.1016/S1872-2067%0x2821%0x2963854-8) 57. Chung, D. Y.; Kim, M. J.; Kang, N.; Yoo, J. M.; Shin, H.; Kim, O.-H.; Sung, Y.-E. Low-Temperature and Gram-Scale Synthesis of Two-Dimensional Fe–N–C Carbon Sheets for Robust Electrochemical Oxygen Reduction Reaction. _Chemistry of Materials_ 2017, _29_ (7), 2890-2898. DOI: 10.1021/acs.chemmater.6b05113. 58. Xiao, C.; Chen, X.; Fan, Z.; Liang, J.; Zhang, B.; Ding, S. Surface-nitrogen-rich ordered mesoporous carbon as an efficient metal-free electrocatalyst for oxygen reduction reaction. _Nanotechnology_ 2016, _27_ (44), 445402. DOI: 10.1088/09574484/27/44/445402. 115 59. Yemata, T. A.; Ye, Q.; Zhou, H.; Kyaw, A. K. K.; Chin, W. S.; Xu, J. 6 - Conducting polymer-based thermoelectric composites: Principles, processing, and applications. In _Hybrid Polymer Composite Materials_, Thakur, V. K., Thakur, M. K., Pappu, A. Eds.; Woodhead Publishing, 2017; pp 169-195. 116 CHAPTER 3: ELECTROCATALYTIC PRODUCTION OF HYDROGEN FROM METAL PHOSPHIDES IN ACIDIC AND BUFFERED ELECTROLYTES Based on published work: Coleman, N., Lovander, M. D., Leddy, J. Gillan, E. “Phosphorus-Rich Metal Phosphides: Direct and Tin-Flux Assisted Synthesis and Evaluation as Hydrogen Evolution Electrocatalysts,” _Inorg. Chem_ ., 2019, 58 (8), pp 5013-5024. 3.1. Introduction Molecular hydrogen is widely promoted as a fuel in clean energy applications. Cost effective generation and storage of H2 are important technological challenges. Efficient H2 production from non-fossil fuel sources such as water remains a critical environmental and economic goal. <sup>1-4</sup> In particular, platinum on semiconducting TiO2 and conducting carbon facilitates H2 generation by water splitting photocatalysis and electrocatalysis, respectively. Because platinum is a scarce and expensive catalyst, numerous studies focus on finding more abundant and less expensive metal-based catalysts effective in water splitting reactions. <sup>5, 6</sup> As electrocatalysts, nanoscale structures of 3d metals such as Fe, Co, and Ni bonded with main group non-metals have shown intriguing and sometimes impressive electrocatalysis for the hydrogen evolution reaction (HER). <sup>2, 7</sup> Copper phosphides have displayed some electrocatalytic activity towards HER but lower activity and stability hinder its use as present later in this chapter. Hydrogen (H2) is an extremely versatile diatomic gas with many industrial uses. The uses include but are not limited to fertilizer production (NH3), metal alloying, electronics (carrier gas, deposition processes, cleaning, and etching, etc.), fuel production (methanol, crude oil refinery), a nonpolluting fuel source (combustion) and in electricity generation (fuel cells). The production of high purity H2 is extremely desirable, however 117 is commercially produced through the high cost, high energy steam reformation of natural gas (CH4). High purity H2 can be produced by the electrolysis of water, however the production is limited due to the use of expensive noble metals as electrodes or catalysts, such as platinum, and poor oxygen evolution kinetics. Metal-rich and monophosphide nanomaterials containing 3d or 4d metals are widely investigated as HER electrocatalysts. <sup>8-12</sup> Some exhibit impressive current densities at low applied potentials (10 mA cm <sup>-2</sup> current densities achieved near -100 mV vs. RHE): Ni2P, <sup>13</sup> FeP, <sup>14</sup> CoP, <sup>15</sup> and MoP. <sup>16</sup> Current densities are typically reported relative to the electrode’s geometric surface area (mA cm <sup>-2</sup> ). This complicates comparison of deposited catalysts with widely different surface areas. These metal-rich phosphide and monophosphide nanostructures are believed to have exposed surface metal atoms that provide energetically favorable sites for proton binding that leads to M-H bonds and eventually reduction to H2. Nearby phosphorus sites may assist by coordinating hydrogen. Metal-rich phosphides often have extended metal-metal bonded structures and metallic properties. Metal-rich phosphides exhibit moderate stability in acidic environments due to high metal content on the particle surface. Catalysts consisting of platinum supported on carbon (10% Pt-C) display the highest activity towards electrochemical H2 production with 10 mA cm <sup>-2</sup> and 20 mA cm <sup>-2</sup> current density potentials around -50 mV and -80 mV versus RHE, respectively. RHE potential conversions are explained in Section 1.6.5 . The carbon supported platinum catalysts exhibit Tafel slopes of ~30 mV decade <sup>-1</sup> which are associated with the Tafel rate determining step. Tafel slopes allow comparison of different electrocatalysts by revealing kinetic information that can aid in the determination of a possible mechanism 118 for electrocatalytic H2 production, for example the mechanism shown in Figure 3.1 . Tafel analysis is further explained in Sections 1.6.7 and 3.3.3.1 . Several nanoscale metal-rich or monophosphides with first row (3d) transition metals show impressive electrocatalytic HER at low to moderate negative applied potentials in aqueous solution, with activities approaching those of expensive supported platinum catalysts, see examples in Table 3.1 . <sup>8, 10, 17</sup> Metal-rich phosphide structures often have metal-metal bonding and may exhibit metal-rich surfaces that is believed to increase HER activity, however reported literature values including the data listed in Table 3.1 do not present any trends for the metal phosphide samples as both the metal rich and phosphorous-rich materials display wide ranging HER activity. The wide ranging HER activity of the reported materials is likely due to quality differences in sample composition, crystallinity, and size. When reported, Table 3.1 also includes the Tafel slopes and the electrochemically active surface area (ECSA) for each presented material. The ECSA allows for relevant comparisons of catalyst function across all surface dependent catalysts as it is related to the surface charge that accumulates on the surface area of a catalyst, which is exposed to the electrolyte and thus available for electron transfer reactions as in Section 3.3.2 . A larger ECSA is expected to result electrocatalysts with higher catalytic activity. 119 Table 3.1: Literature Comparison for MPx HER Activity in 0.5 M H2SO4. 20 mA cm <sup>-2</sup> <u>(mV)</u> Tafel slope ECSA (cm <sup>2</sup> ) Ref <u>(mV dec</u> <sup>-1</sup> <u>)</u> Material, Electrode, and <u>Geometric Area (cm</u> <sup>2</sup> <u>)</u> 10 mA cm <sup>-2</sup> <u>(mV)</u> <u>Fe2P film, Ti foil, 0.18</u> <u>-190</u> <sup>a</sup> <u>-216</u> <sup>a</sup> <u>n/a</u> <u>10.4</u> <sup>a</sup> 11 <u>FeP film, Ti foil, 0.18</u> <u>-218</u> <sup>a</sup> <u>-254</u> <sup>a</sup> <u>n/a</u> <u>9.4</u> <sup>a</sup> 11 <u>FeP nanoparticles, Ti foil, 0.2</u> <u>-50</u> <u>-63</u> <sup>a</sup> <u>37</u> <u>n/a</u> 14 <u>FeP nanoarrays, Ti plate</u> <u>-55</u> <u>-72</u> <u>38</u> <u>n/a</u> 18 <u>FeP nanowires, Fe foil, 1</u> <u>-96</u> <u>-134</u> <sup>a</sup> <u>39</u> <u>n/a</u> 19 <u>FeP2 nanowires, Fe foil, 1</u> <u>-61</u> <u>-92</u> <sup>a</sup> <u>37</u> <u>n/a</u> 19 <u>FeP2 on carbon, GCE, 0.07</u> <u>-115</u> <sup>a</sup> <u>-146</u> <sup>a</sup> <u>66</u> <u>n/a</u> 20 <u>Ni2P film, Ti foil, 0.18</u> <u>-208</u> <sup>a</sup> <u>-240</u> <sup>a</sup> <u>n/a</u> <u>9.1</u> <sup>a</sup> 11 <u>Ni2P nanoparticles, Ti, 0.20</u> <u>-116</u> <u>-130</u> <u>46</u> <u>n/a</u> 13 <u>Ni2P nanoparticles, GCE, 0.07</u> <u>-125</u> <u>-140</u> <u>87</u> <u>n/a</u> 21 <u>Ni2P nanoparticles, GCE, 0.126</u> <u>-137</u> <u>-181</u> <sup>a</sup> <u>49</u> <u>n/a</u> 22 <u>Ni5P4 nanoparticles, GCE, 0.126</u> <u>-118</u> <u>-157</u> <sup>a</sup> <u>42</u> <u>n/a</u> 22 <u>Ni12P5 nanoparticles, GCE, 0.126</u> <u>-208</u> <u>-262</u> <sup>a</sup> <u>75</u> <u>n/a</u> 22 <u>Ni2P nanoparticles, GCE, 0.07</u> <u>-170</u> <sup>a</sup> <u>-215a</u> <u>62</u> <u>n/a</u> 23 <u>Ni12P5 nanoparticles, Ti, 0.5</u> <u>-107</u> <u>-141</u> <sup>a</sup> <u>63</u> <u>n/a</u> 24 <u>NiP2 nanosheets, carbon cloth, 6</u> <u>-75</u> <u>-100</u> <sup>a</sup> <u>51</u> <u>n/a</u> 25 <u>Co2P nanoparticles, GCE, 0.126</u> <u>-406</u> <u>n/a</u> <u>101</u> <u>2.0</u> <sup>b</sup> 17 <u>Co2P film, Ti foil, 0.18</u> <u>-179</u> <sup>a</sup> <u>-201</u> <sup>a</sup> <u>n/a</u> <u>14.6</u> <sup>b</sup> 11 <u>Co2P nanoparticles, Ti foil, 0.2</u> <u>-95</u> <u>-109</u> <u>45</u> <u>n/a</u> 26 <u>CoP nanoparticles,</u> <u>GCE, 0.126</u> <u>-383</u> <u>n/a</u> <u>90</u> <u>13.7</u> <sup>b</sup> 17 <u>CoP film, Ti foil, 0.18</u> <u>-162</u> <sup>a</sup> <u>-185</u> <sup>a</sup> <u>n/a</u> <u>11.2</u> 11 <u>CoP nanoparticles, GCE, 0.07</u> <u>-221</u> <u>-272</u> <sup>a</sup> <u>61</u> <u>n/a</u> 27 <u>CoP2 nanoparticles, GCE, 0.070</u> <u>-122</u> <sup>a</sup> <u>-146</u> <sup>a</sup> <u>73</u> <u>n/a</u> 28 <u>CoP3 nanosheets, GCE, 0.070</u> <u>-247</u> <u>-302</u> <sup>a</sup> <u>100</u> <u>5.9</u> 29 <u>Cu3P nanobrushes, Cu mesh</u> <u>-117</u> <u>-147</u> <u>72</u> <u>n/a</u> 30 <u>Cu3P nanowires, Cu foam, 2</u> <u>-143</u> <u>-186*</u> <u>67</u> <u>n/a</u> 31 <u>Cu3P nanoparticles, GCE, 0.07</u> <u>-292</u> <u>-403</u> <u>117</u> <u>n/a</u> 32 All current densities are normalized for the geometric electrode area. a) values estimated from plots and graphical data in reference b) calculated from reported μF cm <sup>-2</sup> using ideal 35 μF cm <sup>-2</sup> conversion Sulfur-rich nanostructures, including FeS2, NiS2, and CoS2, also show HER activity (1 mA cm <sup>-2</sup> : Fe @ -217 mV, Ni @ -230 mV, and Co @ -128 mV and 10 mA cm <sup>-2</sup> for Co @ -145 to -192 mV), <sup>33, 34</sup> where polyanions bonded to metal centers allow electrocatalytic reactions. Recent reviews and theoretical studies suggest favorable HER activity is possible in phosphorus-rich systems. <sup>8-11</sup> In this work, an additional goal beyond analysis of P-rich materials was to make measurements on well-defined higher purity crystalline materials than is typically seen in recent literature. 120 Phosphorus-rich metal phosphides such as NiP2, CoP3, and FeP2 contain extensive P-P bonding motifs that can serve to envelop and bind M <sup>n+</sup> cations. Extended polyphosphide anion structures may improve catalyst chemical stability in corrosive acidic environments by protecting against transition-metal ion extraction. The P-rich MP2/MP3 surfaces may engage in significant P-H bond formation that facilitates electrocatalytic HER. <sup>8-11</sup> Phosphorus-rich phosphides with 3d metals such as FeP2, CoP3, NiP2, and CuP2 are _much less studied as electrocatalysts_ because they are less synthetically accessible and preparations usually require high temperatures near 1,000°C. The Gillan lab has successfully synthesized and characterized well-defined micrometer-sized crystallites of FeP2, CoP3, NiP2 (cubic and monoclinic), and CuP2 by a faster, more flexible route producing free-standing phosphorus-rich 3d metal phosphides (MP2/MP3 compositions) which enables the systematic study of their electrocatalytic HER activity and stability. <sup>35</sup> These well-defined crystalline MP2/MP3 materials were examined for their electrocatalytic HER activity under acidic and buffered conditions using the previously described novel carbon wax electrode design in Chapter 2. 3.2. Experimental 3.2.1. Safety Considerations for Hydrogen Gas and Electrochemistry <u>Safety Warning: Careful attention must be paid to experiments that utilize and/or</u> produce explosive gases including hydrogen gas. Hydrogen is explosive in air at concentrations as low as 4%. A fume hood or snorkel and adequate ventilation is required to minimize hydrogen gas concentrating to dangerous levels. 121 Electrochemistry involves moving electrons through electrical circuits which can result in electrical shock and generate sparks, extra caution such as proper electrode connection, and cell setup must be used to guarantee safety at all times. 3.2.2. Materials Electrochemical studies of the metal phosphide materials involved the use of the following materials: synthetic graphite powder (<20 µm, Sigma-Aldrich), paraffin wax (mp ≥ 65 °C, Sigma-Aldrich), concentrated H2SO4 (Certified ACS Plus 95-98%, Fisher Scientific) to prepare 0.5 M solutions, KH2PO4 (99+%, Acros Organics), K2HPO4•3H2O (99+%, Acros Organics) to prepare 1.0 M phosphate buffered solutions (PBS), and 10% Pt on Vulcan XC-72 carbon (C1-10 fuel cell grade, E-Tek). 3.2.3. Working Electrode Preparation Metal phosphides and Pt-C powder reference catalyst were evaluated with carbon wax (Cwax) current collectors as described in Chapter 2. Powdered samples were embedded onto the graphite-wax surface of the PTFE tips using a heated aluminum stub with 0.079 cm <sup>2</sup> surface area as detailed in Section 2.2.7.1 . Samples, typically less than 1 mg, were loaded onto the aluminum stub, which was then placed on a pre-heated (~250 ℃) hot plate for one minute to allow the powder and stub to heat to near the 65℃ wax melting point. Local softening of the wax with heating ensures that the sample embeds into the graphite-wax surface of the electrode tip. The heated powder sample was embedded into the softened wax of the PTFE tip with light hand pressure using a modified commercial BASi MF-2015 mCPE electrode shown in Figure 2.9B . This electrode is basically a PTFE encased brass rod (3 mm OD) and the PTFE tips with 3 mm ID securely fit over the end of the electrode. The gravimetric mass of the loaded samples 122 was determined by the mass difference between the unloaded and loaded tip. Sample loadings ranged from ~0.1 to 0.6 mg which gave sample area coverages of 1.25 – 7.50 mg cm <sup>-2</sup> . As shown in Figure 2.9C, the modified commercial electrode was fitted with a rubber septum and the PTFE electrode tips were tightly affixed to the BASi electrode and wrapped with Parafilm to provide a seal between the septum and the affixed tip to produce the final working electrode shown in Figure 2.9D . Increased electrical contact between the wax and brass rod was aided by dusting powdered graphite into the rear opening of the tip before securing it onto the brass rod electrode. Additional details and photos of carbon-wax electrode design and preparation are provided in Chapter 2. The Cwax electrode tips are reusable based on two conditions: (1) the tips may be removed and reconnected 1at a later time to the BASi electrode, and (2) the tips can be shaved with a clean razor blade to expose a clean, fresh graphite-wax surface which can be reloaded with a new sample. The end of a used wax electrode can be cut off to perform post-mortem XRD and SEM-EDS analysis of the embedded powder. 3.2.4. Electrochemical Setup The electrochemical experiments presented in this chapter utilize a three electrode single compartment cell, displayed in the right image of Figure 1.1, a Bioanalytical Systems (BASi) 100b potentiostat, and were guided by literature best practices. <sup>8, 36, 37</sup> The beaker shaped electrochemical cell has a diameter of 5.75 cm and a height of 4.0 cm, typically filled with ~45 mL of electrolyte solution leaving a headspace of ~0.5 cm which was covered with a PTFE lid, cut-to-fit, sealed with Parafilm and secured with electrical tape as shown in Figure 2.16A . Feedthrough holes were cut as needed for the 123 electrodes and purge gas tube. The completed cell consisting of a modified BASi electrode-tip assembly, a saturated calomel reference electrode (SCE; Fisher Accumet), a high surface area platinum mesh counter electrode, a fritted glass tube for purge gas, and a magnetic cross stir bar within a small 10 mL beaker (2.5 cm diameter by 2.0 cm high) placed directly under the working electrode as exampled in Figure 2.16B . All items placed in the feedthrough holes were loosely sealed with Parafilm to minimize electrolyte evaporation but not allow pressure to build in the cell. As is displayed in Figure 2.16C, the stir bar was placed ~6 mm from the working electrode to aid gas removal from the electrode surface and minimize surface adhesion of bubbles. The cell was degassed with H2 or N2 for 5 minutes prior to starting experiments and were continuously bubbled into the cell for the entire experiment. 3.2.5. Electrochemical Parameters and Experiments 3.2.5.1. Reversible Hydrogen Electrode (RHE) The saturated calomel (SCE) reference electrode was calibrated against reversible hydrogen electrode (RHE) values for each electrolyte solution using established conversions. RHE potentials (ERHE) are obtained with the use of Equation 1.2 by the sum of the potentiostatically measured SCE potential (ESCE), the standard electrode potential of SCE (241 mV), and the resultant shift of the standard hydrogen electrode (SHE) at any pH value (59 mV x pH), not just pH = 0. A 59 mV potential is specific to a one electron reaction, _H_ <sup>_+_</sup> _+ e → ½ H2_, at a temperature of 298.15 K. <sup>38</sup> RHE adjustments for 0.5 M H2SO4 (pH = 0.3) and 1.0 M PBS (pH = 6.5) solutions using an SCE reference are 258.7 mV and 624.5 mV, respectively. All experimental and literature potential values are reported versus RHE. 124 3.2.5.2. Electrochemically Active Surface Area (ECSA) The relative electrochemically active surface area (ECSA), as detailed in Section 1.6.4, was calculated using Equation 1.8 and the _C_ of each powder sample on the 0.079 cm <sup>2</sup> Cwax electrode, which was converted to an approximate area (cm <sup>2</sup> ) using literature precedence for the specific capacitance ( _Cs_ = 35 µF cm <sup>-2</sup> ) of an atomically smooth planar, 1 cm <sup>2</sup> electrode surface in 0.5 M H2SO4. <sup>39</sup> In Equation 1.8 the relative roughness factor (RF) of each surface is estimated from the ratio of the ECSA and the geometric surface area of the electrode (GSA). One can use physical properties and particle sizes to compare and contrast external physical surface areas to experimental ECSA values for the MPx particles. Micrometer-sized particles embedded on a planar electrode are expected to have physical and ECSA surface areas that are greater than the flat geometric surface area of the electrode. 3.2.5.3. Linear Sweep Voltammetry (LSV) Polarization curves were obtained using linear sweep voltammetry (LSV) at 5 mVs <sup>-1</sup> in acidic and near neutral pH buffered aqueous solutions. The LSV method is explained in deeper detail in Section 1.6.1 . Ultrapure water (18 MΩ, Thermo Scientific Barnstead GenPure water purification system) was used to make the electrolytes of 0.5 M H2SO4 (pH = 0.3) and 1.0 M phosphate buffer solution (PBS, pH = 6.5 prepared from equimolar amounts (0.5 M of each in a single volume) of KH2PO4 and K2HPO4). All electrolyte solutions were continually purged with H2 (6.0 ultra-high purity 99.999%, Praxair) to maintain a reversible (H <sup>+</sup> /H2) Nernstian potential in the solution and is recommended practice for the hydrogen evolution reaction (HER). <sup>37</sup> Several experiments 125 were run under N2 purge conditions for comparison and produced similar results to the H2 purged system. All current densities were calculated using the geometric surface area of the carbon wax electrode (0.079 cm <sup>2</sup> ). Typically for LSV in acidic media, potential was swept to negative values until either a current density of ~100 mA cm <sup>-2</sup> or applied potentials of about -700 mV are reached. Select samples were examined at higher applied potentials near -1.000 V. The estimated HER onset potentials, the potential where current flows due to electrochemical H2 production, were determined as the point where LSV current density reached ~0.5 mA cm <sup>-2</sup> relative to its baseline value. The potentials required for catalysts to achieve current densities of 10 and 20 mA cm <sup>-2</sup> are regularly reported literature values, therefore those potentials will also be presented for data collected on the MPx materials in this Chapter. Typically, 20-100 LSV scans were run to verify reproducible sample responses and short term sample stability. Selected samples were also examined for long term stability with up to 500 continuous LSV scans. 3.2.5.4. Constant Potential Time Base Amperometry (CPTBA) As explained in Section 1.6.8, constant potential time base amperometry (CPTBA) is an electrochemical technique that is used to test the extended stability of electrocatalysts, therefore CPTBA stability experiments were performed on the metal phosphide samples in 0.5 M H2SO4. The working electrode potential was set at a value that produced ~10-20 mA cm <sup>-2</sup> current density during LSV experiments and held at that potential for 18 hours. All experimental conditions were consistent to the LSV measurements: same three electrode cell setup, constant stirring, and H2 purging. 126 3.3. Results and Discussion 3.3.1. ECSA of Metal Phosphides (MPx) Electrochemical surface area (ECSA) is a useful measurement because ECSA better accounts for surface area of embedded electrocatalyst particles. Geometric area is useful when reaction is limited by reactant transport. Near current onset, current is limited by the ability of the electrocatalyst to deliver electrons, which is proportional to faradaic catalyst ECSA rather than geometric area of the current collector. ECSA is determined from capacitance measured where there is no electron transfer activity. The capacitance ( _C_ ) of each sample was determined by cyclic voltammetry (CV) in 0.5 M H2SO4 at scan rates from 5 to 75 mV s <sup>-1</sup> . The squared region in Figure 3.1 is an example of the non-faradaic region, a nonreactive region that is used to determine the _C_ of a material. The lines shown in Figure 3.2 resulted from the data picked from the dotted vertical line of Figure 3.1 . The _C_ of any material is one half of the linear slope that results from a plot of the average of the absolute current versus the scan rate, as shown in the right image example of Figure 3.2 . Using Equation 1.8, the ECSA is determined by multiplying the _C_ of a material and the ideal specific capacitance ( _Cs_, 35 µF cm <sup>-2</sup> ) of an atomically smooth planar electrode surface in 0.5 M H2SO4. <sup>39</sup> Embedded particles have greater surface area than the underlying electrode current collector and so their ECSA is underestimated by the geometric surface area. When different powders have similar crystal sizes (surface areas), normalization by geometric electrode areas allows relative electrochemical comparisons. 127 Figure 3.1: An overlay of cyclic voltammograms for CoP3 at five different scan rates (V s <sup>-1</sup> ) in H2 purged then blanketed 0.5 M H2SO4. The boxed region identifies the nonfaradaic region in the voltammogram and the plot points along the black dotted line represents the chosen (100 mV) region utilized to obtain the data in the right image of Figure 3.2 for the ECSA calculation. Data obtained using a three electrode cell with a 0.079 cm <sup>2</sup> Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. It is important to note that in most cases, _Cs_ for a Pt film is several folds higher than other materials, such as carbon, so using ideal planar electrode surface values likely leads to relatively low ECSA values for particulate materials. What is relevant here for ECSA use is the relative surface areas for the different MP2/MP3 materials. To the extent that the surface capacitance of each of the metal phosphides is the same, the _Cs_ value will not impact the relative surface areas. The roughness factor is also a relative term. ECSA is perhaps most important when it can be directly compared to the actual surface area of a solid versus as a relative surface area as it is invoked to describe some of the data here. 128 + Figure 3.2: The left image is a plot of the anodic (blue line) and cathodic (orange line) charging currents (at -100 mV vs RHE plotted) as a function of scan rate. The right image is a plot of the average of the absolute values of the anodic and cathodic charge currents from the left image. The capacitance ( _µF = µA s V_ <sup>_-1_</sup> ) is one half of the slope of the right image. Tables 3.2 and 3.3 summarize estimations of the electrochemically active catalyst surface areas (ECSA) from capacitance measurements performed on embedded MP2/MP3 in acid and PBS solutions, respectively. The unmodified 0.079 cm <sup>2</sup> carbon wax electrode (45 wt% conducting graphite with 55 wt% non-conducting wax) yields an ECSA of ~0.003 cm <sup>2</sup> . There is no apparent connection with SEM particle size and ECSA values for the MP2/MP3 materials, though more “active” electrocatalysts show higher ECSA values, for instance the CoP3 material versus the FeP2 material. ECSA values are consistent with literature reports for particulate metal phosphides as listed in Table 3.1 . As noted in Tables 3.2 and 3.3, after multiple LSV runs, ECSA values are essentially unchanged or show small decreases in acidic and PBS solutions. The negative applied potentials to achieve 10 mA cm <sup>-2</sup> current density are smaller as ECSA increases. The order of ECSA is: CoP3 > c-NiP2 > m-NiP2 > FeP2 ~ CuP2. 129 3.3.2. MPx Hydrogen Evolution (HER) The synthetic methods developed in the Gillan lab have produced micrometer sized crystallites of phosphorus-rich MP2 and MP3 phases not generally accessible via low-temperature syntheses. Their synthetic strategy involves a thermal reaction of anhydrous metal chlorides, specifically NiCl2, CoCl2 with elemental P4 vapor that is generated by heating polymeric red phosphorus above ~ 400 °C. In order to exclude air and moisture from this reaction, the starting materials were placed in an evacuated sealed Pyrex ampoule and heated to 500 °C in a tube furnace. These reactions are driven by the formation of a PCl3 byproduct, for example NiCl2 + 8/3 P → NiP2 + 2/3 PCl3. In some cases, tin powder (mp. 232 °C) was added to the ampoule to serve as a molten solvent or flux to aid in reaction completion and product crystallization. These MP2 and MP3 products appear fairly robust and resist dissolution in the 6 M HCl used to remove Sn after the reactions were finished. <sup>35</sup> The HER activity of these metal phosphide powders in direct contact with both near neutral, and acidic aqueous solutions was explored using the highly versatile, inexpensive, flexible, and easily formed into paraffin wax/graphite conducting electrode tips. The carbon-wax electrode serves as a current collector for surface embedded metal phosphide powders (typically < 1 mg). 3.3.3. HER in Acidic Electrolyte (0.5 M H2SO4) Polarization curves obtained by LSV are a vital electrochemical method used to identify and compare the HER activity of different catalysts. The curves provide the onset of H2 production for each catalyst as well as their activity beyond the onset with increasing potential. The HER onset potential is the voltage (mV) required for cathodic (reductive) current to begin to flow as electrons are being transferred to two protons (H <sup>+</sup> ) 130 generating hydrogen radicals (H <sup>⦁</sup> ), which then combine to produce H2 gas as detailed in Section 1.6.7 . The less negative potential required for a reaction corresponds to a catalyst requiring less energy to produce H2 gas. The lower applied HER potentials are even more important beyond the onset potentials as the more current that flows with lower applied potentials will result in a steeper slope of the polarization curve. A steep slope in a HER polarization curve signifies a catalyst with high activity toward H2 production. The Gibbs Equation is given in Equation 3.1, where _G = J mol_ <sup>_-1_</sup>, _n_ = the number of electrons required for the specific reaction ( _n_ = 2 for HER), _F_ is Faraday’s constant (96,485.3 C mol <sup>-1</sup> ), and _E_ is the applied potential in volts (V). <sup>40</sup> Using _n_ = 2 for HER, the Gibbs Equation shows that for every -0.100 V of applied potential, an additional 19.3 kJ mol <sup>-1</sup> of energy input is required by an HER electrocatalyst. 3.1 The cathodic currents measured in the LSV polarization curves are normalized by the geometric area (mA cm <sup>-2</sup> ) of the working electrode to aid in experiment to experiment comparisons as well as comparisons to reported literature values. Rigorous HER analysis, _not always seen in literature_, requires multiple LSV polarization curves to display the stability and reproducibility of each catalyst. Also, there are frequent questions about catalyst purity and structure from some recent nanoscale catalyst reports, including some entries in Table 1, which can call into question the reproducibility of some literature results. For the current research, chemically and structurally well-characterized single phase crystalline MP2 and MP3 materials were synthesized by Nate Coleman (Gillan 131 Group). These chemically robust phosphorus-rich materials were extensively studied here as HER electrocatalysts. Initial LSV scans of each metal phosphide (FeP2, CoP3, 2 phases of NiP2, and CuP2) identified relevant potential regions that showed some HER activity above background carbon wax activity. Each LSV polarization curve took ~3 minutes as each were run at 5 mV s <sup>-1</sup> to generate the data in Figures 3.5 - 3.9, therefore a 50 run set completed in ~150 minutes. While each experiment took ~150 minutes to complete, potentiostatic data exports into single x-y data files that require individual importing into a spreadsheet program such as Microsoft Excel. Proper analysis of a data set consisting of 50 LSV runs generally takes between 6-8 hours, and importing data can be a source of several random errors, computer slow downs, and crashes. A simpler method for data analysis, which not only reduces the time of importing data, but also removes possible errors and computer issues was developed using Visual Basic macros within Microsoft Excel. One key advance in this HER project involved the development of a new Excel macro, see Appendix C, that allowed facile and flexible processing of up to 100 LSV data sets in just minutes. Without this processing advance, much of the compilation and analysis of data in this thesis would not be practically possible. Several months, six to eight, were dedicated to identifying and writing Visual Basic macro codes to produce a highly efficient and effective data analysis program for processing large LSV data sets. The powerful program simultaneously imports up to 100 LSV data sets into Excel sheets, produces overlay plots to display trend behavior, and any data changes that occur over a large number of LSV scans all within 6 minutes. The automatic anlaysis provided by this program not only saves copious amounts of import and data processing time, but it also 132 quickly produces advanced visual displays which can show trends in stability and reproducibility which are highly difficult to visualize in only LSV polarization curve overlays. Later program modifications allowed input of different electrolyte solutions, reference electrodes, different potentiostat files, and OER electrocatalytic reactions. An example of the data analysis and visualization power of this Excel macro is shown in the analysis of electrochemical catalytic behavior of FeP2 displayed in Figure 3.3 . The LSV overlays for FeP2 display well grouped onset potentials for all 50 runs at -121 ± 6 mV, but display a broadening at greater current densities. The trend behavior of FeP2 is difficult to see in the overlay image, the left image of Figure 3.3, as it cannot be deterimined whether the broadening is in a linear direction, or if the current density is increasing or decreasing with each subsequent run. However, as shown in the right image of Figure 3.3, as generated by the previously mentioned macro, clearly shows that the catalytic behavior linearly improves with each increasing run. The negative potential required to produce each specified current density clearly trends downward, to less negative potentials from run 1 to 50 with the slight exception of the bump between runs 41 and 44. The potential required for the higher current densities displayed the greatest improvements as the applied potentials of each decreased by about 50 mV as the potential for 10 mA cm <sup>-2</sup> started near -300 mV and ended around -250 mV. The reasons for the systematic decrease in potential over subsequent scans is still under investigation, but the trend likely involves a change in the catalyst or at least its surface composition or structure. The noise that produced the jagged current density data above -500 mV of applied potential was largely caused by the produced H2 gas bubbles adhering to the electrode and catalyst surfaces before removal by the magnetic stir bar. 133 Figure 3.3: Overlay of 50 LSV polarization curves for FeP2 (left). Plot displaying the potential where the different current densities are achieved from the 50 LSV runs for FeP2 (right). Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). The electrochemical catalytic behavior of CoP3 is displayed in Figure 3.6 . The LSV overlays display well grouped onset potentials for all 50 runs at -29 ± 2 mV, and at greater current densities as compared to FeP2. The current density versus run number plot in the right image of Figure 3.6 shows that the catalytic behavior of CoP3 is smooth and steady from the initial run through all 49 consecutive runs. Only slight deviations were visible for the 20 and 50 mA cm <sup>-2</sup> as those potentials slightly increased from the earlier runs. 134 0 10 20 30 40 50 60 70 80 90 CoP3 - HER Current Density Overlays 100 -500 -400 -300 -200 -100 0 100 Potential (mV) : RHE Figure 3.4: Overlay of 50 LSV polarization curves for CoP3 (left). Plot displaying the potential where the different current densities are achieved from the 50 LSV runs for CoP3 (right). Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). The LSV overlays for NiP2 cubic displayed broad onset potentials for all 50 runs at -95 ± 17 mV while the overlays of the NiP2 monoclinic sample were well grouped at -134 ± 2 mV. The electroccatalytic behavior of both NiP2 samples were fairly similar at current densities greater than 5 mA cm <sup>-2</sup> as seen in Figure 3.7 and Figure 3.8 . 135 Figure 3.5: Overlay of 50 LSV polarization curves for cubic NiP2 (left). Plot displaying the potential where the different current densities are achieved from the 50 LSV runs for cubic NiP2 (right). Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). Figure 3.6: Overlay of 50 LSV polarization curves for monoclinic NiP2 (left). Plot displaying the potential where the different current densities are achieved from the 50 LSV runs for monoclinic NiP2 (right). Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). 136 The first ten runs for CuP2 displayed only slightly better activity than the carbon wax blank electrode ( Figure 3.9 ). The catalytic behavior of CuP2 significantly improved with each consecutive run and is discussed further in Section 3.3.4 . Figure 3.7: Overlay of 8 LSV polarization curves for CuP2 (left). Plot displaying the potential where the different current densities are achieved from the 8 LSV runs for CuP2 (right). Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). Figure 3.10 shows representative linear sweep voltammograms (LSV) for the carbon-wax blank, 10% Pt on carbon, and several MP2/MP3 samples. Carbon-wax electrodes show little HER activity below -700 mV and electrodes embedded with 10% Pt-C are highly active for HER at low negative applied potentials. While CuP2 showed current densities similar to carbon wax, electrocatalytic H2 generation was observed for CoP3, NiP2, and FeP2. CoP3 generated H2 at the lowest applied potential of all MP2/MP3 materials. The cubic and monoclinic NiP2 products show similar electrocatalytic behavior at ~100 mV more negative applied potential than CoP3. The FeP2 onsets at similar applied potentials to NiP2, but it but shows a gradual slope in its LSV curve and therefore a slower HER rate. 137 Figure 3.8: Representative LSV results for FeP2 (tin flux product), c-NiP2, m-NiP2 (tin flux product), CoP3, and CuP2. Plots for the carbon-wax alone and embedded 10% Pt on carbon powder are shown for comparison. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). Table 3.2 summarizes average data for multiple LSV runs for a given MP2/MP3 sample run in 0.5 M H2SO4. The results shown in Table 3.2 illustrate further value in the Excel macro analysis format as it produces the visual information shown in Figures 3.5 – 3.9 and produces average potentials with deviations for each desired current density. The Excel macro also allows Tafel slope analysis for each LSV (and deviations). All samples showed good reproducibility over multiple LSV runs. As shown in Figure 3.10 and Table 3.2, the magnitude of negative applied potentials for similar HER activity follows CoP3 < c-NiP2 ~ m-NiP2 < FeP2 << CuP2. Here, the most phosphorus-rich product, CoP3 requires the smallest negative applied potential for H2 evolution and it also has the largest electrochemically active surface area (ECSA, described in more detail below). 138 Table 3.2: HER Results for MPx Materials in Acidic Electrolyte <sup>a</sup> 20 mA cm <sup>-2</sup> <u>(mV)</u> Tafel Slope <u>(mV dec</u> <sup>-1</sup> <u>)</u> Catalyst <u>Material</u> Onset <u>(mV)</u> <sup>b</sup> 10 mA cm <sup>-2</sup> <u>(mV)</u> ECSA <u>(cm</u> <sup>2</sup> <u>)</u> <sup>c</sup> Extended <u>Stability</u> <sup>d</sup> FeP2 -121 ± 6 -312 ± 9 -397 ± 12 -129 ± 11 0.5/0.6 84% <u>(flux)</u> CoP3 -29 ± 2 -147 ± 1 -204 ± 1 -78 ± 2 24/21 98% c-NiP2 -95 ± 17 -241 ± 2 -312 ± 1 -91 ± 4 16/10 81% m-NiP2 -134 ± 2 -250 ± 1 -300 ± 1 -81 ± 2 4/4 105% <u>(flux)</u> CuP2 -376 ± 5 -830 ± 23 -960 ± 18 -341± 19 0.8/1.8 314% (dec) 10% Pt 6 ± 2 -47 ± 2 -87 ± 5 -34 ± 2 4/-- 76% <u>on C</u> a LSV results in H2 purged 0.5 M H2SO4 with SCE reference, Pt mesh counter, converted to RHE, on powders embedded on 0.079 cm <sup>2</sup> carbon-wax electrode. Average of LSV data from first 50 LSV runs (except CuP2 used runs 3-9) and current densities are scaled using the geometric electrode area. <sup>b</sup> Estimated as potential for 0.5 mA cm <sup>-2</sup> current density from baseline. <sup>c</sup> Values listed for before and after LSV runs and carbon wax electrode has a reproducibly low ECSA of ~0.003 cm <sup>2</sup> . <sup>d</sup> Percent current density change from 15 min to 18 hour mark for constant potential experiment targeting 10-20 mA cm <sup>-2</sup> . CuP2 experiment was run at a high 961 mV vs. RHE based in initial LSVs and significantly improved over the 18 hr stability run, due to partial decomposition, see text for details. Several metal phosphide HER literature results are summarized in Table 3.1 . The Gillan produced micrometer-sized MP2/MP3 HER results compare well to rare reports of phosphorus-rich products including CoP3 nanoparticles (10 mA cm <sup>-2</sup> at -122 mV), <sup>41</sup> CoP3 nanowires (10 mA cm <sup>-2</sup> near -250 mV), <sup>29</sup> and CoP3 nanoneedles (10 mA cm <sup>-2</sup> at -136 mV). <sup>42</sup> Nanosheets of nearly amorphous NiP2 on carbon cloth show 10 mA cm <sup>-2</sup> at -75 mV. <sup>25</sup> FeP2 nanoparticles on carbon nanorods require a -500 mV applied potential for 5 mA cm <sup>-2</sup> current density, <sup>20</sup> while FeP2/Fe3O4 composite nanowires exhibit 10 mA cm <sup>-2</sup> current density near -60 mV applied potential. <sup>19</sup> FeP, Fe2P, and Fe3P films achieve 10 mA cm <sup>-2</sup> at -116 mV, -83 mV, and -49 mV, respectively. Enhanced HER activity for the metal-rich structures was attributed to favorable Fe-H surface reactions. <sup>43</sup> Nanoscale FeP on carbon cloth shows 10 mA cm <sup>-2</sup> current densities at applied potentials near – 40 mV. <sup>44</sup> These potentials are much lower than results here for micron scale free-standing FeP2 139 particles. Various reports on CoP, Co2P, Ni2P, and Ni5P4 powders frequently show 10 mA cm <sup>-2</sup> current densities at -90 to -200 mV applied potential, shown in Table 3.1 . <sup>8, 10, 15,</sup> 17, 45 Higher external surface areas for nanostructured metal-rich and monophosphides should lead to higher current densities at smaller negative applied potentials versus micrometer-sized phosphides. 3.3.3.1. Tafel Slopes The average of Tafel slopes for LSV runs in Table 3.2 show good reproducibility (representative data in Figure 3.9 ). The 10% Pt-C with near 0 mV onset and a steep LSV curve with Tafel slope of -35 mV decade <sup>-1</sup> is similar to behavior described in the literature. <sup>46</sup> Tafel slopes can reflect possible mechanisms for H <sup>+</sup>, for example Figure 3.1, reduction on the catalyst surface, and are subject to changes with surface coverage and applied potential. <sup>36, 47</sup> Slopes near an ideal -120 mV decade <sup>-1</sup> indicate that the rate determining step for H2 formation is reduction of H <sup>+</sup> on the surface to form M-H (Volmer step). Lower values may indicate rate determining steps are formation of H2 from M-H reaction (Heyrovsky step). A Tafel slope of ~30 mV decade <sup>-1</sup>, found for catalysts such as Pt-C, are the result of absorbed hydrogen atoms on active sites combining to form H2 (Tafel step). For reactions between two adjacent M-H sites to form H2 + 2M, slopes transition from 30 mV decade <sup>-1</sup> to infinite as current density and surface coverage increase. For phosphorous-rich metal phosphides, surface adsorption of H <sup>+</sup> may be influenced by formation of P-H bonds versus M-H bonds postulated for metal-rich catalysts. 140 Figure 3.9: Representative Tafel curves for MP2/MP3 materials for HER electrocatalysis. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). The mV decade <sup>-1</sup> Tafel slopes for each material in Figure 3.9 are: -35 for 10% Pt C, -78 for CoP3, -81 for mono-NiP2, -91 for cubic-NiP2, and -129 for FeP2. The -35 mV decade <sup>-1</sup> for Pt-C suggests the Tafel step as rate determining, which is consistent with reported HER literature, the -129 slope for FeP2 suggests the Volmer step as rate determining, while CoP3 and the two NiP2 rates are likely the result of the Heyrovsky step or a combination of the steps as a 50:50 mix of the Tafel and Volmer step would result in a -75 mV decade <sup>-1</sup> slope. 3.3.3.2. HER Current Density Potentials vs. ECSA for MPx Materials In voltammetric measurements, current scales with electroactive surface area, ECSA. Because potentials are measured at current densities relative to the geometric area and ECSA varies with each metal phosphide, the ranking of metal phosphides as 141 effective HER catalysts is somewhat obscured. In contrast to currents at the geometric electrode surface area (geom), current density normalization by ECSA ranks the negative applied potential to reach a 0.1 mA cm <sup>-2</sup> ECSA current density as FeP2 (-86 mV) < m-NiP2 (-173 mV) < CoP3 (-224 mV) < c-NiP2 (-238 mV). To further evaluate whether the metal phosphides were of different catalytic efficiency or different ECSA, data in Table 3.2 for the HER applied potentials at three current densities 0.5, 10, and 20 mA cm <sup>-2</sup> geom were plotted against ECSA. Figure 3.10 shows that for each current density, the applied potential is more negative as ECSA decreases. The applied potential is roughly linear with relative ECSA, which suggests that the potential for 0.5, 10, and 20 mA cm <sup>-2</sup> geom is set by the ECSA. For each current density, extrapolation to zero relative ECSA yields the applied potential independent of surface area. This suggests that once corrected for relative electroactive surface area, these catalysts perform similarly with applied potentials of -139, -302, -374 mV for 0.5, 10, and 20 mA cm <sup>-2</sup> geom. 142 Figure 3.10: Plot of relative final ECSA values against average applied potential for 0.5 mA cm <sup>-2</sup>, 10 mA cm <sup>-2</sup>, and 20 mA cm <sup>-2</sup> averaged data (Table 3.2), current densities are scaled using geometric electrode area (0.079 cm <sup>2</sup> ). Error bars, shown for all points, are standard deviations of the averages. Similar, nearly linear correlations to those shown are also found when plotting average applied potentials versus initial ECSA values, yielding extrapolations that intersect y-axis near -140, -300, and -370 mV. The intercepts correspond to potentials at zero surface area. Data obtained using H2 purged then blanketed 0.5 M H2SO4 in a three electrode cell at different scan rates with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. If a 0.001 g MPx (MW = 100 g mol <sup>-1</sup> ) sample is assumed on a 0.079 cm <sup>2</sup> electrode, then 10 μmol of MPx is on the 0.079 cm <sup>2</sup> area. If ECSA is estimated as 1 cm <sup>2</sup> using the planar film approximation mentioned above, then the ECSA of the powder is 1/0.079 which is 12.5 times the electrode area. For a density of 5 g cm <sup>-3</sup> for 0.001 g of MPx, the total volume yield is 0.0002 cm <sup>3</sup> (actual structural densities (g cm <sup>-3</sup> ) are 5.1 for FeP2, 4.6 for m-NiP2, 4.4 for CoP3, and 4.3 for CuP2). To check whether the 1 cm <sup>2</sup> ECSA value is similar to a physical surface area (SA) of the powder, the particles are treated as ideally spherical which yields a ratio of SA/volume = (4πr <sup>2</sup> )/(1.33πr <sup>3</sup> )= 3/r so 3/r = 1 cm <sup>2</sup> /(0.0002 cm <sup>3</sup> ), i.e., r = 0.006 cm or 6 143 μm for particle radius. A similar system with a calculated ECSA of 10 cm <sup>2</sup> would yield a particle radius of 0.6 μm (600 nm). As noted, the ECSA values in cm <sup>2</sup> using the 35 µF cm <sup>-2</sup> conversion, are in the range of ~1 – 30 cm <sup>2</sup>, with the most “active” catalysts (highest current density at lowest applied potentials) having the highest ECSA values. In a qualitative sense, the physical shapes by SEM roughly track with the ECSA, with larger particles for CuP2 (~10 – 100 μm) and flux grown FeP2 (~2 – 5 μm) having smaller ECSA versus smaller NiP2 and CoP3 particles (aggregated particles near or below 1 μm) having higher ECSA values. Note also, the 35 µF cm <sup>-2</sup> value may overestimate charge on these MPx materials, for example the _Cs_ for carbon paste electrode surface ~ 4-8 μF cm <sup>-2</sup> is ~ 4.4 to 9 times smaller than that of a metal surface like Pt. <sup>48, 49</sup> Glassy carbon electrodes have _Cs_ values similar to the 35 µF cm <sup>-2</sup> value (~25-34 μF cm <sup>-2</sup> for smooth surfaces). <sup>49-51</sup> If ECSA values calculated above were scaled by 5 times using a carbon paste value, then a 1 cm <sup>2</sup> ECSA using the 35 µF cm <sup>-2</sup> conversion becomes 5 cm <sup>2</sup> using 7 μF cm <sup>-2</sup> and estimated particle size drops 5 times from 6 μm to ~1.2 μm. Given the wide dispersion in SEM particle sizes, generally in the 1-10 μm range, either _Cs_ for thin films or rough carbon pastes yields ECSA values that are generally consistent with (or within an order of magnitude of) observed physical particle sizes. 3.3.3.3. Long Term Stability of MPx Materials in Acidic Electrolyte The long-term catalytic stability of the MP2/MP3 samples during HER activity in acid was examined by constant potential versus time experiments on carbon-wax electrodes embedded with the metal phosphide powders held for 18 hours at an applied potential to produce ~10 - 20 mA cm <sup>-2</sup> current density based on LSV runs shown in 144 Table 3.2 . The 10% Pt-C standard’s current density decreased steadily over 18 hours to ~75% of its initial value ( Figure 3.15 ). The FeP2 ( Figure 3.16 ), both NiP2 phases (cubic Figure 3.18 and monoclinic Figure 3.19 ), and CoP3 ( Figure 3.17 ) all showed good stability over 18 hours, retaining greater than 80% of their initial current output. In contrast, CuP2 ( Figure 3.20 ) showed a dramatic increase in current output, though an extreme potential of -950 mV chosen based on very low current on initial LSV runs. This unusual result led to further investigation of CuP2 electrocatalytic properties as detailed in Section 3.3.4 . Figure 3.11: 18 hour single potential time based amperogram of 10% Pt-C held at -80 mV versus RHE. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at -80 mV (vs. RHE) constant applied potential with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). 145 Figure 3.12: 18 hour single potential time based amperogram of FeP2 held at -300 mV versus RHE. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at -300 mV (vs. RHE) constant applied potential with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). Figure 3.13: 18 hour single potential time based amperogram of CoP3 held at -170 mV versus RHE. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 170 mV (vs. RHE) constant applied potential with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). 146 Figure 3.14: 18 hour single potential time based amperogram of cubic NiP2 held at -230 mV versus RHE. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at -230 mV (vs. RHE) constant applied potential with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). Figure 3.15: 18 hour single potential time based amperogram of monoclinic NiP2 held at -240 mV versus RHE. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at -240 mV (vs. RHE) constant applied potential with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). 147 Figure 3.16: 18 hour single potential time based amperogram of CuP2 held at -950 mV versus RHE. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 950 mV (vs. RHE) constant applied potential with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). 3.3.4. MPx HER in Near Neutral Phosphate Buffered Solution (1.0 M PBS) To examine the effect of H <sup>+</sup> concentration on HER activity, selected MP2/MP3 (M=Fe, Co, Ni) samples were examined in phosphate buffered (pH = 6.5) aqueous solutions. The negative applied potentials necessary to achieve a 10 mA cm <sup>-2</sup> current density increased by 281, 55, 56, and 34 mV versus acid results for FeP2, CoP3, c-NiP2, and m-NiP2, respectively ( Table 3.3 ). The modest potential increases for CoP3 and NiP2 suggest that these structures make effective use of protons in buffered media. Collaborative theoretical studies are planned to examine surface chemical bonding and energetics for MP2/MP3 catalysts that complement similar studies on metal-rich and stoichiometric phosphides. <sup>11, 29, 52</sup> 148 Table 3.3: HER Results for MPx Materials in Buffered Electrolyte <sup>a</sup> 20 mA cm <sup>-2</sup> <u>(mV)</u> Tafel Slope <u>(mV decade</u> <sup>-1</sup> <u>)</u> Catalyst <u>Material</u> Onset <u>(mV)</u> <sup>b</sup> 10 mA cm <sup>-2</sup> <u>(mV)</u> ECSA <u>(cm</u> <sup>2</sup> <u>)</u> <sup>c</sup> FeP2 (flux) -152 ± 12 -593 ± 72 -750 ± 47 -110 ± 23 0.6/0.7 CoP3 -41 ± 3 -202 ± 10 -312 ± 14 -87 ± 8 14/12 c-NiP2 -115 ± 7 -270 ± 13 -386 ± 18 -70 ± 6 6/5 m-NiP2 (flux) -116 ± 3 -284 ± 12 -413 ± 26 -78 ± 4 2/3 CuP2 -456± 65 --- --- --- 1/2 a LSV results in H2 purged pH 6.5 phosphate buffer (PBS) with SCE reference, Pt mesh counter, converted to RHE, on powders embedded on 0.079 cm <sup>2</sup> carbon-wax electrode. Average of LSV data from first 25-50 LSV runs and current densities are scaled using geometric electrode area. CuP2 showed little HER activity up to the -800 mV vs. RHE upper limit used in this experiment. <sup>b</sup> Estimated as potential for 0.5 mA cm <sup>-2</sup> current density from baseline. <sup>c</sup> Values listed for before and after LSV runs and carbon wax electrode has a reproducibly low ECSA of ~0.003 cm <sup>2</sup> . RF values use the before ECSA data. 3.3.5. Extended Investigation into Copper Phosphide (CuP2) Initial CuP2 experiments in 0.5 M H2SO4 showed little or no hydrogen evolution activity above the carbon wax blank ( Figure 3.10 ) therefore extended experiments were conducted to examine CuP2 activity at high negative applied potentials (up to -1 V vs. RHE). Both the CuP2 and carbon wax electrode produced low to moderate HER activities at these higher applied potentials ( Figure 3.21 ). After several LSV runs at -1 V, the CuP2 tip was subjected to an 18 hour constant potential experiment run at a high negative potential (-950 mV) which was needed to establish an initial 20 mA cm <sup>-2</sup> current density. Instead of the current density maintaining or decreasing below the 20 mA cm <sup>-2</sup> goal, the current density of CuP2 increased more than 3 times its original value by the end of the 18 hour experiment ( Table 3.2 and Figure 3.20 ). Subsequent LSV runs with this CuP2 tip showed improvement in HER activity through ~300 LSV runs ( Figure 3.21 ). The final catalytic activity for the Cu-P material achieves 20 mA cm <sup>-2</sup> at -275 mV which is a ~675 mV (130 kJ mol <sup>-1</sup> ) decrease in negative applied potential from the initial CuP2. 149 Figure 3.17: Changes and improvements in observed CuP2 acidic HER activity during LSV runs before performing an 18 hr constant potential versus time run at -961 mV (prei-t) and LSV curves performed after the 18 hr constant potential versus time run (post-it). Data for 300 LSV runs are shown for the (post-i-t) period. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). HER activity for CuP2 approaches that observed Cu3P nanostructures on copper foam (10 mA cm <sup>-2</sup> at -143 mV, Table 3.1 ). <sup>31</sup> Previous work on metal-rich copper phosphide (Cu3P) films noted its instability towards HER cycling in acidic environments. <sup>53</sup> Our micrometer-sized slab-like CuP2 particles show significant improvement in current density under extreme negative applied potential, indicating physical or structural and compositional changes occur. The carbon wax electrode surface was cut from the electrode to conduct a post-mortem analysis of the CuP2 sample after cycling in Figure 3.21 . While powder XRD analysis showed primarily peaks for CuP2, two low intensity and broad peaks at 41.5° and 46.5° reasonably match two Cu3P peaks (JCPDS #4-8619). SEM analysis showed that large micrometer sized CuP2 crystallites generally survived high negative potential cycling, but with delamination and surface roughening ( Figure 3.22 ). EDS analysis shows that the post cycling Cu-P 150 product is more metal-rich than the original CuP2 sample as the Cu:P atomic ratio of ~1:1 is consistent with 2 CuP2 + Cu3P. Surface reduction of CuP2 could lead to copper-rich surfaces and phosphorus loss as PH3. There are reports of improved HER activity for FeP nanoparticles after extended stability testing that is attributed to advantageous surface hydrogenation events. <sup>54</sup> Both surface hydrogenation and electrochemical reductive surface modification may be beneficial in constructing heterostructures with MP2/MP3 cores and metal-rich phosphide particles or film coatings. Figure 3.18: Image A is an SEM image of a CuP2 sample prior to electrochemical experimentation. Images B – D are SEM images taken after electrochemical experimentation. Image B reveals extensive changes of the CuP2 sample surfaces. Image C displays significant cracking and delamination of a single crystal. Image D shows significant roughening to the surface of a single crystal. 151 3.4. Conclusions Electrocatalytic HER investigations of metal phosphide particles embedded on conducting carbon wax electrodes reveal CoP3, NiP2, and FeP2 achieve 10 mA cm <sup>-2</sup> at moderate negative applied potentials of -147 to -312 mV. In contrast, CuP2 shows little HER activity until partial surface reduction. Some differences in HER activity can be attributed to ECSA differences and also to electrical properties related to semiconducting band gaps. The facile MP2/MP3 synthesis and HER activity of these rare phosphorus-rich metal phosphides allows comparison to the more extensively studied metal-rich and stoichiometric metal phosphide HER catalysts. The synthesis of phosphorus-rich metal phosphide catalysts with HER activity opens the doors for the production of well-defined heterostructures containing MP2 and MP3 materials. 3.5. References 1. Osterloh, F. E. Inorganic materials as catalysts for photochemical splitting of water. _Chemistry of Materials_ 2008, _20_ (1), 35-54. DOI: 10.1021/cm7024203. 2. Singh, A.; Spiccia, L. Water oxidation catalysts based on abundant 1st row transition metals. _Coordin Chem Rev_ 2013, _257_ (17-18), 2607-2622. DOI: 10.1016/j.ccr.2013.02.027. 3. Kang, D.; Kim, T. W.; Kubota, S. R.; Cardiel, A. C.; Cha, H. G.; Choi, K. S. Electrochemical Synthesis of Photoelectrodes and Catalysts for Use in Solar Water Splitting. _Chem Rev_ 2015, _115_ (23), 12839-12887. DOI: 10.1021/acs.chemrev.5b00498. 4. Kudo, A.; Miseki, Y. Heterogeneous photocatalyst materials for water splitting. _Chem_ _Soc Rev_ 2009, _38_ (1), 253-278. DOI: 10.1039/b800489g. 5. Roger, I.; Shipman, M. A.; Symes, M. D. Earth-abundant catalysts for electrochemical and photoelectrochemical water splitting. _Nat Rev Chem_ 2017, _1_ (1). DOI: UNSP 000310.1038/s41570-016-0003. 6. Nie, Y.; Li, L.; Wei, Z. Recent advancements in Pt and Pt-free catalysts for oxygen reduction reaction. _Chem Soc Rev_ 2015, _44_ (8), 2168-2201. DOI: 10.1039/c4cs00484a. 152 7. Reiss, P.; Carriere, M.; Lincheneau, C.; Vaure, L.; Tamang, S. Synthesis of Semiconductor Nanocrystals, Focusing on Nontoxic and Earth-Abundant Materials. _Chem Rev_ 2016, _116_ (18), 10731-10819. DOI: 10.1021/acs.chemrev.6b00116. 8. Callejas, J. F.; Read, C. G.; Roske, C. W.; Lewis, N. S.; Schaak, R. E. Synthesis, Characterization, and Properties of Metal Phosphide Catalysts for the HydrogenEvolution Reaction. _Chemistry of Materials_ 2016, _28_ (17), 6017-6044. DOI: 10.1021/acs.chemmater.6b02148. 9. Xiao, P.; Chen, W.; Wang, X. A Review of Phosphide-Based Materials for Electrocatalytic Hydrogen Evolution. _Adv Energy Mater_ 2015, _5_ (24), 1500985. DOI: ARTN 1500985 10.1002/aenm.201500985. 10. Shi, Y.; Zhang, B. Recent advances in transition metal phosphide nanomaterials: synthesis and applications in hydrogen evolution reaction. _Chem Soc Rev_ 2016, _45_ (6), 1529-1541. DOI: 10.1039/c5cs00434a. 11. Kibsgaard, J.; Tsai, C.; Chan, K.; Benck, J. D.; Nørskov, J. K.; Abild-Pedersen, F.; Jaramillo, T. F. Designing an improved transition metal phosphide catalyst for hydrogen evolution using experimental and theoretical trends. _Energy & Environmental Science_ 2015, _8_ (10), 3022-3029, 10.1039/C5EE02179K. DOI: 10.1039/C5EE02179K. 12. Du, H.; Kong, R. M.; Guo, X.; Qu, F.; Li, J. Recent progress in transition metal phosphides with enhanced electrocatalysis for hydrogen evolution. _Nanoscale_ 2018, _10_ (46), 21617-21624. DOI: 10.1039/c8nr07891b. 13. Popczun, E. J.; McKone, J. R.; Read, C. G.; Biacchi, A. J.; Wiltrout, A. M.; Lewis, N. S.; Schaak, R. E. Nanostructured Nickel Phosphide as an Electrocatalyst for the Hydrogen Evolution Reaction. _J. Am. Chem. Soc._ 2013, _135_ (25), 9267-9270. DOI: 10.1021/ja403440e. 14. Callejas, J. F.; McEnaney, J. M.; Read, C. G.; Crompton, J. C.; Biacchi, A. J.; Popczun, E. J.; Gordon, T. R.; Lewis, N. S.; Schaak, R. E. Electrocatalytic and Photocatalytic Hydrogen Production from Acidic and Neutral-pH Aqueous Solutions Using Iron Phosphide Nanoparticles. _ACS Nano_ 2014, _8_ (11), 11101-11107. DOI: 10.1021/nn5048553. 15. Popczun, E. J.; Read, C. G.; Roske, C. W.; Lewis, N. S.; Schaak, R. E. Highly Active Electrocatalysis of the Hydrogen Evolution Reaction by Cobalt Phosphide Nanoparticles. 2014, _53_ (21), 5427-5430. DOI: doi:10.1002/anie.201402646. 16. McEnaney, J. M.; Crompton, J. C.; Callejas, J. F.; Popczun, E. J.; Biacchi, A. J.; Lewis, N. S.; Schaak, R. E. Amorphous Molybdenum Phosphide Nanoparticles for Electrocatalytic Hydrogen Evolution. _Chemistry of Materials_ 2014, _26_ (16), 4826-4831. DOI: 10.1021/cm502035s. 153 17. Pan, Y.; Lin, Y.; Chen, Y.; Liu, Y.; Liu, C. Cobalt phosphide-based electrocatalysts: synthesis and phase catalytic activity comparison for hydrogen evolution. _Journal of_ _Materials Chemistry A_ 2016, _4_ (13), 4745-4754, 10.1039/C6TA00575F. DOI: 10.1039/C6TA00575F. 18. Jiang, P.; Liu, Q.; Liang, Y.; Tian, J.; Asiri, A. M.; Sun, X. A Cost-Effective 3D Hydrogen Evolution Cathode with High Catalytic Activity: FeP Nanowire Array as the Active Phase. _Angewandte Chemie International Edition_ 2014, _53_ (47), 12855-12859. DOI: 10.1002/anie.201406848 (acccessed 2018/10/23). 19. Son, C. Y.; Kwak, I. H.; Lim, Y. R.; Park, J. FeP and FeP2 nanowires for efficient electrocatalytic hydrogen evolution reaction. _Chemical Communications_ 2016, _52_ (13), 2819-2822, 10.1039/C5CC09832G. DOI: 10.1039/C5CC09832G. 20. Jiang, J.; Wang, C.; Zhang, J.; Wang, W.; Zhou, X.; Pan, B.; Tang, K.; Zuo, J.; Yang, Q. Synthesis of FeP2/C nanohybrids and their performance for hydrogen evolution reaction. _Journal of Materials Chemistry A_ 2015, _3_ (2), 499-503, 10.1039/C4TA04758C. DOI: 10.1039/C4TA04758C. 21. Feng, L.; Vrubel, H.; Bensimon, M.; Hu, X. Easily-prepared dinickel phosphide (Ni2P) nanoparticles as an efficient and robust electrocatalyst for hydrogen evolution. _Physical Chemistry Chemical Physics_ 2014, _16_ (13), 5917-5921, 10.1039/C4CP00482E. DOI: 10.1039/C4CP00482E. 22. Pan, Y.; Liu, Y.; Zhao, J.; Yang, K.; Liang, J.; Liu, D.; Hu, W.; Liu, D.; Liu, Y.; Liu, C. Monodispersed nickel phosphide nanocrystals with different phases: synthesis, characterization and electrocatalytic properties for hydrogen evolution. _Journal of_ _Materials Chemistry A_ 2015, _3_ (4), 1656-1665, 10.1039/C4TA04867A. DOI: 10.1039/C4TA04867A. 23. Tian, T.; Ai, L.; Jiang, J. Metal–organic framework-derived nickel phosphides as efficient electrocatalysts toward sustainable hydrogen generation from water splitting. _RSC Advances_ 2015, _5_ (14), 10290-10295, 10.1039/C4RA15680C. DOI: 10.1039/C4RA15680C. 24. Huang, Z.; Chen, Z.; Chen, Z.; Lv, C.; Meng, H.; Zhang, C. Ni12P5 Nanoparticles as an Efficient Catalyst for Hydrogen Generation via Electrolysis and Photoelectrolysis. _ACS Nano_ 2014, _8_ (8), 8121-8129. DOI: 10.1021/nn5022204. 25. Jiang, P.; Liu, Q.; Sun, X. NiP2 nanosheet arrays supported on carbon cloth: an efficient 3D hydrogen evolution cathode in both acidic and alkaline solutions. _Nanoscale_ 2014, _6_ (22), 13440-13445, 10.1039/C4NR04866K. DOI: 10.1039/C4NR04866K. 154 26. Callejas, J. F.; Read, C. G.; Popczun, E. J.; McEnaney, J. M.; Schaak, R. E. Nanostructured Co2P Electrocatalyst for the Hydrogen Evolution Reaction and Direct Comparison with Morphologically Equivalent CoP. _Chemistry of Materials_ 2015, _27_ (10), 3769-3774. DOI: 10.1021/acs.chemmater.5b01284. 27. Jiang, P.; Liu, Q.; Ge, C.; Cui, W.; Pu, Z.; Asiri, A. M.; Sun, X. CoP nanostructures with different morphologies: synthesis, characterization and a study of their electrocatalytic performance toward the hydrogen evolution reaction. _Journal of_ _Materials Chemistry A_ 2014, _2_ (35), 14634-14640, 10.1039/C4TA03261F. DOI: 10.1039/C4TA03261F. 28. Wang, J.; Yang, W.; Liu, J. CoP2 nanoparticles on reduced graphene oxide sheets as a super-efficient bifunctional electrocatalyst for full water splitting. _Journal of Materials_ _Chemistry A_ 2016, _4_ (13), 4686-4690, 10.1039/C6TA00596A. DOI: 10.1039/C6TA00596A. 29. Wang, K.; She, X.; Chen, S.; Liu, H.; Li, D.; Wang, Y.; Zhang, H.; Yang, D.; Yao, X. Boosting hydrogen evolution via optimized hydrogen adsorption at the interface of CoP3 and Ni2P. _Journal of Materials Chemistry A_ 2018, _6_ (14), 5560-5565, 10.1039/C7TA10902D. DOI: 10.1039/C7TA10902D. 30. Wei, S. T.; Qi, K.; Jin, Z.; Cao, J. S.; Zheng, W. T.; Chen, H.; Cui, X. Q. One-Step Synthesis of a Self-Supported Copper Phosphide Nanobush for Overall Water Splitting. _Acs Omega_ 2016, _1_ (6), 1367-1373. DOI: 10.1021/acsomega.6b00366. 31. Tian, J.; Liu, Q.; Cheng, N.; Asiri, A. M.; Sun, X. Self-Supported Cu3P Nanowire Arrays as an Integrated High-Performance Three-Dimensional Cathode for Generating Hydrogen from Water. _Angewandte Chemie International Edition_ 2014, _53_ (36), 95779581. DOI: 10.1002/anie.201403842 (acccessed 2018/12/03). 32. Wang, R.; Dong, X. Y.; Du, J.; Zhao, J. Y.; Zang, S. Q. MOF-Derived Bifunctional Cu3 P Nanoparticles Coated by a N,P-Codoped Carbon Shell for Hydrogen Evolution and Oxygen Reduction. _Advanced Materials_ 2018, _30_ (6), 1703711. DOI: 10.1002/adma.201703711. 33. Faber, M. S.; Lukowski, M. A.; Ding, Q.; Kaiser, N. S.; Jin, S. Earth-Abundant Metal Pyrites (FeS2, CoS2, NiS2, and Their Alloys) for Highly Efficient Hydrogen Evolution and Polysulfide Reduction Electrocatalysis. _J Phys Chem C Nanomater_ _Interfaces_ 2014, _118_ (37), 21347-21356. DOI: 10.1021/jp506288w. 34. Faber, M. S.; Dziedzic, R.; Lukowski, M. A.; Kaiser, N. S.; Ding, Q.; Jin, S. Highperformance electrocatalysis using metallic cobalt pyrite (CoS(2)) micro- and nanostructures. _J Am Chem Soc_ 2014, _136_ (28), 10053-10061. DOI: 10.1021/ja504099w. 155 35. Coleman, N.; Lovander, M. D.; Leddy, J.; Gillan, E. G. Phosphorus-Rich Metal Phosphides: Direct and Tin Flux-Assisted Synthesis and Evaluation as Hydrogen Evolution Electrocatalysts. _Inorganic Chemistry_ 2019, _58_ (8), 5013-5024. DOI: 10.1021/acs.inorgchem.9b00032. 36. Anantharaj, S.; Ede, S. R.; Karthick, K.; Sam Sankar, S.; Sangeetha, K.; Karthik, P. E.; Kundu, S. Precision and correctness in the evaluation of electrocatalytic water splitting: revisiting activity parameters with a critical assessment. _Energy &_ _Environmental Science_ 2018, _11_ (4), 744-771. DOI: 10.1039/c7ee03457a. 37. Chen, Z.; Dinh, H. N.; Miller, E. _Photoelectrochemical Water Splitting: Standards,_ _Experimental Methods, and Protocols_ ; Springer, 2013. DOI: 10.1007/978-1-4614-82987. 38. Jerkiewicz, G. Standard and Reversible Hydrogen Electrodes: Theory, Design, Operation, and Applications. _ACS Catalysis_ 2020, _10_ (15), 8409-8417. DOI: 10.1021/acscatal.0c02046. 39. McCrory, C. C. L.; Jung, S. H.; Peters, J. C.; Jaramillo, T. F. Benchmarking Heterogeneous Electrocatalysts for the Oxygen Evolution Reaction. _J. Am. Chem. Soc._ 2013, _135_ (45), 16977-16987, Article. DOI: 10.1021/ja407115p. 40. Harris, D. C. _Quantitative chemical analysis_ ; W.H. Freeman and Co., 2010. 41. Wu, T.; Pi, M.; Wang, X.; Zhang, D.; Chen, S. Three-dimensional metal-organic framework derived porous CoP3 concave polyhedrons as superior bifunctional electrocatalysts for the evolution of hydrogen and oxygen. _Phys Chem Chem Phys_ 2017, _19_ (3), 2104-2110. DOI: 10.1039/c6cp07294a. 42. Fu, Q.; Wu, T.; Fu, G.; Gao, T.; Han, J.; Yao, T.; Zhang, Y.; Zhong, W.; Wang, X.; Song, B. Skutterudite-Type Ternary Co1–xNixP3 Nanoneedle Array Electrocatalysts for Enhanced Hydrogen and Oxygen Evolution. _ACS Energy Letters_ 2018, _3_ (7), 1744-1752. DOI: 10.1021/acsenergylett.8b00908. 43. Schipper, D. E.; Zhao, Z. H.; Thirumalai, H.; Leitner, A. P.; Donaldson, S. L.; Kumar, A.; Qin, F.; Wang, Z. M.; Grabow, L. C.; Bao, J. M.; et al. Effects of Catalyst Phase on the Hydrogen Evolution Reaction of Water Splitting: Preparation of Phase-Pure Films of FeP, Fe2P, and Fe3P and Their Relative Catalytic Activities. _Chemistry of_ _Materials_ 2018, _30_ (10), 3588-3598. DOI: 10.1021/acs.chemmater.8b01624. 44. Tian, J.; Liu, Q.; Liang, Y.; Xing, Z.; Asiri, A. M.; Sun, X. FeP Nanoparticles Film Grown on Carbon Cloth: An Ultrahighly Active 3D Hydrogen Evolution Cathode in Both Acidic and Neutral Solutions. _ACS Applied Materials & Interfaces_ 2014, _6_ (23), 2057920584. DOI: 10.1021/am5064684. 156 45. Wang, J. M.; Liu, Z.; Zheng, Y. W.; Cui, L.; Yang, W. R.; Liu, J. Q. Recent advances in cobalt phosphide based materials for energy-related applications. _Journal of_ _Materials Chemistry A_ 2017, _5_ (44), 22913-22932. DOI: 10.1039/c7ta08386f. 46. Shinagawa, T.; Garcia-Esparza, A. T.; Takanabe, K. Insight on Tafel slopes from a microkinetic analysis of aqueous electrocatalysis for energy conversion. _Sci Rep_ 2015, _5_, 13801. DOI: 10.1038/srep13801. 47. Fang, Y. H.; Liu, Z. P. Tafel Kinetics of Electrocatalytic Reactions: From Experiment to First-Principles. _Acs Catalysis_ 2014, _4_ (12), 4364-4376. DOI: 10.1021/cs501312v. 48. Kinoshita, K. Particle Size Effects for Oxygen Reduction on Highly Dispersed Platinum in Acid Electrolytes. _Journal of The Electrochemical Society_ 1990, _137_ (3), 845-848. DOI: 10.1149/1.2086566. 49. Gun, G.; Tsionsky, M.; Lev, O. Voltammetric studies of composite ceramic carbon working electrodes. _Analytica Chimica Acta_ 1994, _294_ (3), 261-270. DOI: <u>[https://doi.org/10.1016/0003-2670(94)80309-9.](https://doi.org/10.1016/0003-2670%0x2894%0x2980309-9)</u> 50. Cline, K. K.; McDermott, M. T.; McCreery, R. L. Anomalously Slow Electron Transfer at Ordered Graphite Electrodes: Influence of Electronic Factors and Reactive Sites. _The Journal of Physical Chemistry_ 1994, _98_ (20), 5314-5319. DOI: 10.1021/j100071a023. 51. McDermott, M. T.; McDermott, C. A.; McCreery, R. L. Scanning tunneling microscopy of carbon surfaces: relationships between electrode kinetics, capacitance, and morphology for glassy carbon electrodes. _Analytical Chemistry_ 1993, _65_ (7), 937-944. DOI: 10.1021/ac00055a017. 52. Hu, J.; Zheng, S. L.; Zhao, X.; Yao, X.; Chen, Z. A theoretical study on the surface and interfacial properties of Ni3P for the hydrogen evolution reaction. _Journal of_ _Materials Chemistry A_ 2018, _6_ (17), 7827-7834. DOI: 10.1039/c8ta00437d. 53. Read, C. G.; Callejas, J. F.; Holder, C. F.; Schaak, R. E. General Strategy for the Synthesis of Transition Metal Phosphide Films for Electrocatalytic Hydrogen and Oxygen Evolution. _ACS Applied Materials & Interfaces_ 2016, _8_ (20), 12798-12803. DOI: 10.1021/acsami.6b02352. 54. Tian, L. H.; Yan, X. D.; Chen, X. B. Electrochemical Activity of Iron Phosphide Nanoparticles in Hydrogen Evolution Reaction. _Acs Catalysis_ 2016, _6_ (8), 5441-5448. DOI: 10.1021/acscatal.6b01515. 157 CHAPTER 4: ELECTROCATALYTIC PRODUCTION OF HYDROGEN FROM METAL THIOPHOSPHATES IN ACIDIC ELECTROLYTES Based on published work: Coleman, N., Liyanage, I, Lovander, M. D., Leddy, J. Gillan, E. “Facile Solvent-Free Synthesis of Metal Thiophosphates and Their Examination as Hydrogen Evolution Electrocatalysts,” _Molecules_, 2022, 27 (16), 5053. 4.1. Introduction Chapter 3 detailed hydrogen gas (H2) as an alternative fuel source due to its high energy density (~120 kJ g <sup>-1</sup> ) and low environmental impact. <sup>1, 2</sup> The kinetics for electrochemical water splitting are sluggish, especially for the oxygen evolution reaction, OER. Unfortunately, expensive and low abundant precious metals, such as platinum, are reported to deliver some of the highest electrocatalytic activity towards the water splitting reactions, especially for the hydrogen evolution reaction (HER). <sup>3-5</sup> Early transition metal phosphides and sulfides, such as CoP and CoS2, as well as oxides, carbides, and borides have all displayed promising water splitting activities at low applied potentials. <sup>6-12</sup> Chapter 3 and the corresponding published work, <sup>13</sup> introduced promising anion-rich metal phosphide electrocatalysts for HER in acidic and phosphate buffered electrolytes, notably CoP3, which were synthesized by the Gillan laboratory through a novel synthetic method. Metal thiophosphates (MPS3) are more anion-rich than metal phosphides and sulfides. These lower metal content extended ionic solid networks have been extensively studied for possible use in electronic, magnetic, and intercalative properties. <sup>14-18</sup> MPS3 materials as heterogenous electrocatalysts for HER and OER water-splitting applications have only been recently reported. <sup>19-22</sup> The focus of this chapter is the electrochemical investigation of MPS3 materials for HER activity in acidic electrolytes. The novel, less 158 energy intensive synthetic process to produce MPS3 materials is an important component to the production of these materials and thus for this work is only briefly detailed. The synthesis of MPS3 materials often requires extended (~2 – 17 days) and highly controlled (specific temperatures for each product typically range between ~520 750 °C) heating to produce the P/S-rich structures. <sup>20, 22-25</sup> There are several difficulties presented with these synthetic methods as decomposition is possible at temperatures near those required for synthesis, the syntheses typically involve multiple steps, different solvents, and there is difficulty with phase control of the crystalline structures. The Gillan laboratory has developed a novel, single-step, single phase, solvent-free synthetic method for producing MPS3 materials. Both methods used excess elemental phosphorous, with either elemental phosphorous and sulfur, or with pre-bonded P2S5 and phosphorus. Both were performed at lower temperatures than typically reported. <sup>26</sup> In this chapter, the metal thiophosphates synthesized with elemental phosphorous and sulfur were sometimes multi-phased and therefore not investigated as electrocatalysts. The MPS3 materials produced with pre-bonded molecular P2S5 were the only products to be electrochemically investigated during my time at Iowa. <sup>26</sup> The MPS3 materials, specifically CoPS3, NiPS3, and FePS3 were investigated as possible HER electrocatalysts in 0.5 M H2SO4 with carbon wax electrodes similar to those presented in Chapters 2 and 3. Also presented at the end of this chapter is a brief summary of furthered electrochemical work on MPS3 materials with newer modifications to data processing (iR compensation), the removal of platinum (remove migration to cathode), and higher graphite concentration carbon wax electrodes performed by the Gillan laboratory, specifically group member Ishanka Liyanage. 159 4.2. Experimental 4.2.1. Safety Considerations for Hydrogen Gas and Electrochemistry <u>Safety Warning: Careful attention must be paid to experiments that utilize and/or</u> produce explosive gases including hydrogen gas. Hydrogen is explosive in air at concentrations as low as 4%. A fume hood or snorkel and adequate ventilation is required to minimize the possibility of hydrogen gas concentrating. Electrochemistry involves moving electrons through electrical circuits which can result in electrical shock and generate sparks, extra caution such as proper electrode connection, and cell setup must be used to guarantee safety at all times. 4.2.2. Materials Electrochemical studies of the metal thiophosphate materials involved the use of the following materials: synthetic graphite powder (<20 µm, Sigma-Aldrich), paraffin wax (mp ≥ 65 °C, Sigma-Aldrich), concentrated H2SO4 (Certified ACS Plus 95-98%, Fisher Scientific) to prepare 0.5 M solutions, and 10% Pt on Vulcan XC-72 carbon (C1 10 fuel cell grade, E-Tek). 4.2.3. Working Electrode Preparation Metal thiophosphates and Pt-C powder reference catalyst were evaluated with carbon wax current collectors as described in Chapter 2. Powdered samples were embedded onto the graphite-wax surface of the PTFE tips using a heated aluminum stub with 0.079 cm <sup>2</sup> surface area as shown in Figure 2.10 . Samples, typically less than 1 mg, were loaded onto the aluminum stub, which was then placed on a pre-heated (~250 ℃) hot plate for one minute to allow the powder and stub to heat to near the 65℃ wax 160 melting point. Local softening of the wax with heating ensures that the sample embeds into the graphite-wax surface of the electrode tip. The heated powder sample was embedded into the softened wax of the PTFE tip with light hand pressure using a modified commercial BASi MF-2015 mCPE electrode shown in Figure 2.9B . The gravimetric mass of the loaded samples was determined by the mass difference between the unloaded and loaded tip. Sample loadings ranged from ~0.1 to 0.6 mg which gave sample area coverages of 1.25 – 7.50 mg cm <sup>-2</sup> . As shown in Figure 2.9C, the modified commercial electrode was fitted with a rubber septum and the PTFE electrode tips were tightly affixed to the BASi electrode and wrapped with Parafilm to provide a seal between the septum and the affixed tip to produce the final working electrode displayed in Figure 2.9D . Increased electrical contact between the wax and brass rod was aided by dusting powdered graphite into the rear opening of the tip before securing the tip onto the brass rod electrode. Additional details and photos of the carbon wax electrode design and preparation are provided in Chapter 2. 4.2.4. Electrochemical Setup The electrochemical experiments presented in this chapter utilize a three electrode single compartment cell, a Bioanalytical Systems (BASi) 100b potentiostat, and were guided by literature best practices. <sup>9, 27, 28</sup> The beaker shaped electrochemical cell has a diameter of 5.75 cm and a height of 4.0 cm, typically filled with ~45 mL of electrolyte solution leaving a headspace of ~0.5 cm, which was covered with a PTFE lid, cut-to-fit, sealed with Parafilm and secured with electrical tape, an example cell is presented in Figure 2.16A . Feedthrough holes were cut as needed for the electrodes and purge gas tube. The completed cell consisting of a modified BASi electrode-tip assembly, a 161 saturated calomel reference electrode (SCE; Fisher Accumet), a high surface area platinum mesh counter electrode, a fritted glass tube for purge gas, and a magnetic cross stir bar within a small 10 mL beaker (2.5 cm diameter by 2.0 cm high) placed directly under the working electrode similar to the cell in Figure 2.16B . All items placed in the feedthrough holes were loosely sealed with Parafilm to minimize electrolyte evaporation but not allow pressure to build in the cell. Similar to the cell in Figure 2.16C, the stir bar was placed ~6 mm from the working electrode to aid gas removal from the electrode surface and minimize surface adhesion of bubbles. The cell was degassed with H2 for 5 minutes through a fritted glass tube prior to starting the experiments and was continuously bubbled into the cell for the entire experiment. 4.2.5. Electrochemical Parameters and Experiments 4.2.5.1. Reversible Hydrogen Electrode (RHE) In Chapter 1, the reversible hydrogen electrode (RHE) was explained. The saturated calomel (SCE) reference electrode was calibrated against RHE values for acidic electrolyte solution using established conversions. RHE potentials (ERHE) are obtained with the use of Equation 4.1 as the sum of the potentiostatically measured SCE potential (ESCE), the standard electrode potential for SCE (241 mV), and the resultant shift of the standard hydrogen electrode (SHE) at any pH value (59 mV x pH), not just pH = 0. A 59 mV potential is specific to a one electron reaction, _H_ <sup>_+_</sup> _+ e → ½ H2_, at a temperature of 298.15 K. <sup>29</sup> The RHE adjustment for 0.5 M H2SO4 (pH = 0.3) solutions using an SCE reference is 258.7 mV. All experimental and literature potential values are reported versus RHE. 162 4.1 4.2.5.2. Cyclic Voltammetry (CV) In Chapter 1 and Chapter 3 the background and use of cyclic voltammetry were respectively detailed. Cyclic voltammetry, CV, was used to determine the capacitance ( _C_ ) of each catalyst in 0.5 M H2SO4 electrolyte at various scan rates from 5 to 75 mV s <sup>-1</sup> in the non-faradaic region. The experiments were performed without stirring or H2 purging after the initial 5 minutes to provide an unperturbed and static solution. The non faradaic region is a region of the voltammograms where no electron transfer processes occur (typically, ~50-200 mV vs. RHE). The non-faradaic region was chosen as the capacitive current results only from the charging of the double layer. The total capacitive current ( _itot_, A) is the calculated difference between the anodic ( _ia_ ) and cathodic ( _ic_ ) currents at a single potential in the non-faradaic region. The _itot_ is plotted as a function of varied scan rates (ν, V s <sup>-1</sup> ) which results in a linear slope, and this subsequent slope is equal to twice the _C_, as shown in Equation 1.7 . 4.2.5.3. Electrochemically Active Surface Area (ECSA) The relative electrochemically active surface area (ECSA), as detailed in Section 1.6.4, was calculated using Equation 1.8 and the _C_ of each powder sample on the 0.079 cm <sup>2</sup> carbon wax electrode, which is then converted to an approximate area (cm <sup>2</sup> ) using literature precedence for the specific capacitance ( _Cs_ = 35 µF cm <sup>-2</sup> ) of an atomically smooth planar, 1 cm <sup>2</sup> electrode surface in 0.5 M H2SO4. <sup>30</sup> One can use physical properties and particle sizes to compare and contrast external physical surface areas to experimental ECSA values for the MPS3 particles. Micrometer-sized particles embedded 163 on a planar electrode are expected to have physical and ECSA surface areas greater than the flat geometric surface area of the electrode, largely due to the increased roughness caused by the embedded particles. 4.2.5.4. Linear Sweep Voltammetry (LSV) Linear sweep voltammetry (LSV) was detailed in Chapter 1 and was utilized in several experiments of Chapters 2 and 3. Here, polarization curves were obtained using LSV at 5 mVs <sup>-1</sup> in aqueous 0.5 M H2SO4 electrolyte. Ultrapure water (18 MΩ-cm, Thermo Scientific Barnstead GenPure water purification system) was used to make the 0.5 M H2SO4 (pH = 0.3) electrolyte. All electrolyte solutions were continually purged with H2 (6.0 ultra-high purity 99.999%, Praxair) to maintain a reversible (H <sup>+</sup> /H2) Nernstian potential in the solution and is recommended practice for the hydrogen evolution reaction (HER). <sup>28</sup> All current densities were calculated using the geometric surface area of the carbon wax electrode (0.079 cm <sup>2</sup> ). Typically for LSV in acidic media, potential was swept to negative values until either a current density of ~100 mA cm <sup>-2</sup> or applied potentials of about -600 mV was reached. The estimated HER onset potentials, the potential where current flows due to electrochemical H2 production, were determined as the point where LSV current density reached ~0.5 mA cm <sup>-2</sup> relative to its baseline value. The potentials required for catalysts to achieve HER current densities of 10 and 20 mA cm <sup>-2</sup> are regularly reported literature values, therefore those potentials will also be presented for data collected on the MPS3 materials in this Chapter. Typically, 50 LSV scans were run to verify reproducible sample responses and short term sample stability. 164 4.2.5.5. Constant Potential Time Base Amperometry (CPTBA) Constant potential time base amperometry (CPTBA) was explained in Chapter 1 and used in Chapter 3 for extended stability experiments of metal phosphides as HER electrocatalysts. CPTBA was used for extended stability in HER experiments of metal thiophosphate samples in 0.5 M H2SO4. The working electrode potential was set at a value that produced ~10-20 mA cm <sup>-2</sup> current density during LSV experiments and held at that potential for 18 hours. All experimental conditions were consistent to the LSV measurements: the same three electrode cell setup, constant stirring, and H2 purging. 4.3. Results and Discussion 4.3.1. ECSA of Metal Thiophosphates (MPS3) The ECSA of a catalyst is a useful measurement because the surface area is critical to well determined areal catalytic activity. Geometric area is useful when reaction is limited by reactant transport. Near current onset, current is limited by the ability of the electrocatalyst to deliver electrons, which is proportional to faradaic catalyst ECSA rather than geometric area of the current collector. ECSA is determined from capacitance measured where there is no electron transfer activity. The capacitance ( _C_ ) of each sample was determined by cyclic voltammetry (CV) in the non-faradaic region as shown in the example of Figure 3.1 . The voltammograms were collected in H2 purged then blanketed 0.5 M H2SO4 electrolyte at scan rates from 5 to 75 mV s <sup>-1</sup> . ECSA of each sample was calculated from the _C_, which is the slope of the line from the right image of Figure 3.2, and the ideal specific capacitance ( _Cs_, 35 µF cm <sup>-</sup> 2) of an atomically smooth planar electrode surface in 0.5 M H2SO4, see Equation 1.8 .30 Embedded particles have greater surface area than the underlying electrode current 165 collector and so their ECSA is underestimated by the geometric surface area. When different powders have similar crystal sizes (surface areas), normalization by geometric electrode areas allows relative electrochemical comparisons. It is important to note that in most cases, _Cs_ for a Pt film is several folds higher than other materials, such as carbon, so using ideal planar electrode surface values will likely lead to relatively low ECSA values for particulate materials. Estimations of electrochemically active catalyst surface area (ECSA) from capacitance measurements were performed on embedded MPS3 in acid, shown in Table 4.1 on page 170. The unmodified 0.079 cm <sup>2</sup> carbon wax electrode (45 wt% conducting graphite with 55 wt% non-conducting wax) yields an ECSA of ~0.003 cm <sup>2</sup> . There is no apparent connection with SEM particle size and ECSA values for MPS3 materials, though the more “active” electrocatalyst, CoPS3, shows a higher ECSA value over the NiPS3. Also noted in Table 4.1 is how the ECSA values were essentially unchanged or show small decreases in the acidic electrolyte after several LSV runs. The applied potential needed to reduce protons to hydrogen at 10 mA cm <sup>-2</sup> current density decreases as ECSA increases. 4.3.2. MPS3 Hydrogen Evolution (HER) The synthetic methods developed in the Gillan lab have produced micrometer sized crystallites of anion-rich MPS3 phases that are not generally accessible via low temperature syntheses. The synthesis involves an anion exchange reaction that is thermochemically driven, only 500 °C, where the chloride anions of certain metal chlorides (Co, Fe, Ni) are exchanged with anions of elemental phosphorous and sulfur produced by the added heat. The anhydrous metal chlorides (CoCl2, NiCl2, and FeCl3), 166 and anhydrous elemental P and P2S5, were transferred to an ampoule and sealed under vacuum. The amounts of each were measured to stoichiometrically produce MPS3 materials along with a stochiometric excess of phosphorous to remove the chloride ions by producing PCl3. The ampoule is only partially inserted into an oven at 500 °C to generate a temperature gradient which isolates only the MPS3 products in the oven as the unreacted materials and PCl3 are transported to the cooler end of the ampoule. The product does not require further purification, for example 15 MClx + 9 P2S5 + (5x-3) P → 15 MPS3 + 5x PCl3 (x=2 for Ni, Co, x=3 for Fe). The HER activity of these metal thiophosphate powders in direct contact with acidic aqueous solutions was explored using the highly versatile, inexpensive, flexible, and easily formed paraffin wax/graphite conducting electrode tips detailed in Chapter 2. The carbon wax electrode serves as a current collector for surface embedded metal thiophosphate powders (typically < 1 mg). 4.3.3. HER in Acidic Electrolyte (0.5 M H2SO4) Chapters 1 and 3 detailed how polarization curves obtained by LSV are an effective electrochemical method used to identify and compare the HER activity of different catalysts. The less energy a catalyst requires to produce H2 gas, the steeper the slope of the polarization curve, the higher the catalyst activity toward H2 production. The cathodic currents measured in the LSV polarization curves are normalized by the geometric area (mA cm <sup>-2</sup> ) of the working electrode to aid in experiment to experiment comparisons as well as comparisons to reported literature values. Rigorous HER analysis, _not always seen in literature_, requires multiple LSV polarization curves to display the stability and reproducibility of each catalyst. 167 For the current research, chemically and structurally well-characterized single phase crystalline MPS3 materials were synthesized by Nate Coleman (Gillan Group). These chemically robust anion-rich materials were extensively studied here as HER electrocatalysts. Initial LSV scans of each metal thiophosphate (CoPS3 and NiPS3) identified relevant potential regions that showed some HER activity above background carbon wax activity. FePS3 was only slightly more active than the carbon blank and was not investigated further. Each LSV polarization curve took ~3 minutes as each was run at 5 mV s <sup>-1</sup> to generate the data in the graphs below, therefore a 50 run set completed in ~150 minutes. A newer versions of the Excel macro that was used in Chapter 3 and was explained in Appendix C allowed for facile and flexible processing of the MPS3 LSV data in this chapter. The left image of Figure 4.1 displays the electrochemical catalytic behavior of CoPS3. The LSV overlays display well grouped onset potentials for all 50 runs at -98 ± 2 mV. The current density versus run number plot of the right image of Figure 4.1, shows that the catalytic behavior of CoPS3 is smooth and steady from the initial run through all consecutive runs. The deviations were very small for the 10 and 20 mA cm <sup>-2</sup>, -225 mV ± 1 mV and -296 mV ± 1 mV respectively, displaying good stability over 50 consecutive runs. 168 Figure 4.1: Overlay of 50 LSV polarization curves for CoPS3 (left). Plot displaying the potential where the different current densities are achieved from the 50 LSV runs for CoPS3 (right). Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). When compared to the CoPS3 sample, the LSV overlays for NiPS3 displayed larger onset potentials at -250 ± 8 mV for all 50 runs. The electroccatalytic behavior of NiPS3 decreased significantly with consecutive runs revealed by the larger divations in potential for the 10 mA cm <sup>-2</sup> and 20 mA cm <sup>-2</sup>, -437 ± 27 mV and -537 ± 37 mV respectively, as seen in both images of Figure 4.2 . Figure 4.2: Overlay of 50 LSV polarization curves for NiPS3 (left). Plot displaying the potential where the different current densities are achieved from the 50 LSV runs for NiPS3 (right). Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). 169 In Figure 4.3, an overlay of representative linear sweep voltammograms (LSV) for the carbon wax blank, 10% Pt on carbon, and several MPS3 samples are shown. Carbon wax electrodes show little HER activity below -700 mV and electrodes embedded with 10% Pt-C are highly active for HER at low negative applied potentials. While FePS3 showed current densities similar to the blank carbon wax electrode, electrocatalytic H2 generation was observed for both CoPS3 and NiPS3. CoPS3 generated H2 at the lowest applied potential of all MPS3 materials. Figure 4.3: The image is of an HER current density (mA cm <sup>-2</sup> ) versus potential (mV vs. RHE) overlay plot of representative runs for each CoPS3, NiPS3, carbon blank, and 10% Pt-C in H2 purged 0.5 M H2SO4. Representative runs were chosen to best match the average behavior for each material after 50 runs. Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). Table 4.1 summarizes average data for multiple LSV runs for a given MPS3 sample run in 0.5 M H2SO4. The CoPS3 sample showed good reproducibility over multiple LSV runs while the NiPS3 sample displayed an initial, rapid decrease in catalytic 170 performance, while the FePS3 showed minimal behavior when compared to the carbon wax blank. As shown in Table 4.1, the magnitude of negative applied potentials for similar HER activity follows CoPS3 < NiPS3 << FePS3. As with the MPx materials in Chapter 3, the cobalt containing material, CoPS3, required the smallest negative applied potential for H2 evolution and also has the largest electrochemically active surface area. However, the ESCA values of the MPS3 materials were much closer to each other than the MPx materials. Table 4.1: HER Results for MPS3 Materials in Acidic Electrolyte <sup>a</sup> 20 mA cm <sup>-2</sup> <u>(mV)</u> Tafel Slope <u>(mV dec</u> <sup>-1</sup> <u>)</u> Catalyst <u>Material</u> Onset <u>(mV)</u> <sup>b</sup> 10 mA cm <sup>-2</sup> <u>(mV)</u> ECSA <u>(cm</u> <sup>2</sup> <u>)</u> <sup>c</sup> Extended <u>Stability</u> <sup>d</sup> CoPS3 -98 ± 2 -225 ± 1 -296 ± 1 -70 ± 4 2/0.9 93% NiPS3 -250 ± 8 -437 ± 27 -537 ± 37 -88 ± 5 1/0.2 160% FePS3 -639 ± 165 --/-- --/-- --/-- -- - 10% Pt-C 6 ± 2 -47 ± 2 -87 ± 5 -34 ± 2 4/-- 76% a LSV results in 0.5 M H2SO4 with SCE reference, Pt mesh counter, converted to RHE, on powders embedded on 0.079 cm <sup>2</sup> carbon wax electrode. Average of LSV data from first 50 LSV runs (except FePS3 used 45 runs). <sup>b</sup> Estimated as potential for 0.5 mA cm <sup>-2</sup> current density from baseline. <sup>c</sup> Values listed for before and after LSV runs and carbon wax electrode has a reproducibly low ECSA of ~0.003 cm <sup>2</sup> . <sup>d</sup> Percent change from 15 min to 18 hour mark for constant potential experiment targeting 10-20 mA cm <sup>-2</sup> . Previous literature using acidic or basic electrolytes display a variety of HER activities for MPS3 samples that are dependent on preparation, catalyst support, and electrochemical setup. The HER activity results for the crystalline unsupported MPS3 powders embedded on carbon wax electrodes in acidic electrolyte are comparable with prior studies on bulk and some nanostructured and supported MPS3 materials. Similar to the HER results in acid electrolyte, applied potentials of -400 and -200 mV were required for carbon nanosheet supported NiPS3 and CoPS3 respectively, to achieve 10 mA cm <sup>-2</sup> 171 current densities in basic electrolyte. This reflects the higher activity for CoPS3, consistent to results of this chapter. <sup>31</sup> Another consistency for data herein with other HER studies in acidic electrolytes is the extended cycling stability of CoPS3 and the degradation of NiPS3 HER activity with continued and extended cycling. <sup>32</sup> The unsupported NiPS3 reported here required an applied potential of -437 mV to achieve a 10 mA cm <sup>-2</sup> current density, similar to other studies. <sup>31</sup> Also consistent herein and with previous reports is that FePS3 materials show much lower activity than NiPS3 materials. <sup>33</sup> There are several studies showing that cobalt doping into NiPS3 and FePS3 structures greatly improve HER activity, <sup>34, 35</sup> and exfoliation of layered FePS3 similarly improves activity. <sup>36</sup> Overall, the HER catalytic behavior demonstrated by the crystalline free standing MPS3 materials in this work are comparable to prior studies on unsupported and supported MPS3 catalysts. Given that all three MPS3 materials have near IR band gaps (~1.5 eV) and have very non-metal rich compositions, it is not surprising that their HER activity is restricted by applied potentials that are substantially higher when compared to other HER electrocatalysts containing the same metals. Similar to the Chapter 3 HER results, the most active material contained cobalt. The CoPS3 stood out as it converts H <sup>+</sup> to H2 at applied potentials that are relatively low, near -225 mV, with respectable stability in extended electrocatalytic HER experiments. As these materials are all semiconducting, HER activity may be improved by photo-assisted electrocatalysis. 4.3.3.1. Tafel Slopes The average Tafel slopes in Table 4.1 for LSV runs show good reproducibility. The 10% Pt-C with near 0 mV onset and a steep LSV curve with Tafel slope of -35 mV decade <sup>-1</sup> is similar to behavior described in the literature. <sup>37</sup> The Tafel slopes can reflect 172 possible mechanisms for H <sup>+</sup> reduction on the catalyst surface, and are subject to changes with surface coverage and applied potential. <sup>27, 38</sup> Slopes near an ideal -120 mV decade <sup>-1</sup> indicate that the rate determining step for H2 formation is reduction of H <sup>+</sup> on the surface to form M-H (Volmer step). Lower values may indicate rate determining steps are formation of H2 from M-H reaction (Heyrovsky step). A Tafel slope of ~30 mV decade <sup>-1</sup>, found for catalysts such as Pt-C, are the result of absorbed hydrogen atoms on active sites combining to form H2 (Tafel step). For reactions between two adjacent M-H sites to form H2 + 2M, slopes transition from 30 mV decade <sup>-1</sup> to infinite as current density and surface coverage increase. For anion-rich metal thiophosphates, surface adsorption of H <sup>+</sup> may be influenced by formation of P-H and S-H bonds versus the M-H bonds postulated for metal-rich catalysts. The mV decade <sup>-1</sup> Tafel slopes for each material in Table 4.1 are -34 for 10% Pt-C, -70 for CoPS3, and -88 for NiPS3. The -34 mV decade <sup>-1</sup> for Pt-C suggests the Tafel step as rate determining, which is consistent with reported HER literature, while the CoPS3 and the NiPS3 rates are likely the result of the Heyrovsky step where two H* combined to H2 from a single metal atom or a combination of the steps as a mix of the Tafel and Volmer steps that would result in the -70 to -88 mV decade <sup>-1</sup> slope. These slopes are slightly improved with iR compensation detailed near the end of this chapter. 173 4.3.3.2. Long Term Stability of MPS3 Materials in Acidic Electrolyte Figure 4.4: NiPS3 (left). Plot displaying the potential where the different current densities are achieved from the 50 LSV runs for NiPS3 (right). Data obtained using H2 purged 0.5 M H2SO4 in a three electrode cell at the specified constant applied potentials with a Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). The long-term catalytic stability of the MPS3 samples during HER activity in acid was examined by constant potential versus time amperometry (CPTBA) experiments. The experiments were performed with carbon wax electrodes embedded with metal thiophosphate powders that were held for 18 hours at an applied potential to produce ~10 - 20 mA cm <sup>-2</sup> current density based on LSV runs. The current density of the 10% Pt C standard decreased steadily over 18 hours to ~75% of the initial value. The CoPS3 material showed good stability, better than Pt-C, over 18 hours as it retained greater than 90% of the initial current output, see the left image of Figure 4.4 . The stability of the NiPS3 material was difficult to determine, as the right image of Figure 4.4 displays, the current density increased significantly over the 18 hours at the applied potential. The increase in electrocatalytic activity could be sample degradation of the larger particles to smaller particles with larger surface areas, which could lead to more HER active Ni-P-S 174 phases on the electrode surface, which results in poor stability as suggested with the CuP2 materials in Chapter 3, or the increased activity may be due to undesirable platinum deposition occurring at the higher applied negative potentials. This latter issue was recently investigated by the Gillan laboratory by switching the Pt counter electrode (CE) with a graphite rod CE. No rise in the current density was found over time at the constant applied potential for the NiPS3 sample. These new results were included in our published work on MPS3 synthesis and acid HER. <sup>26</sup> The results of the platinum CE track well with other reports describing the possibility of platinum ion migration from platinum counter electrodes that can impact metal catalyst stability in fuel cells and apparent catalyst activity in HER, particularly under acidic conditions and in oxygen-rich environments. <sup>39-42</sup> Graphite working electrodes show significant increase in HER activity over time when using an platinum CE. <sup>43</sup> Platinum deposits forming at the cathode arise from reduction of platinum ions in solution produced when a platinum anode is oxidized. The time lag for deposition of platinum on the cathode is set by the slow rate of platinum anode oxidation, low concentrations of platinum ions in solution, and platinum ion diffusion from the anode to the cathode. Close proximity of the cathode and anode with rapid stirring of the electrolyte favor platinum deposition on the cathode. While Pt <sup>2+</sup> and Pt <sup>4+</sup> reduction to metal occurs near -1 V vs. NHE (similar to RHE at pH ~0 conditions), there are indications that these values are substantially decreased dependent on the nature of bound ligands on the dissolved ions. The ligands may be provided by the cathode materials, the electrolyte, and/or the reference electrode electrolyte. For example, the standard potential for the reduction of ligated _PtX4_ <sup>_2-_</sup> _(aq) + 2 e_ ⇌ _Pt (0) + 4 X_ <sup>_-_</sup> _(aq)_ varies with the halide as 175 0.758 V, 0.698 V, and 0.400 V vs NHE for X <sup>-</sup> of chloride, bromide, and iodide. <sup>44</sup> For Pt(X)4 <sup>2-</sup> metal reduction, potentials move to lower negative potentials as the ligand X becomes larger and softer, for example I <sup>-</sup> or SCN <sup>-</sup> . While the applied potentials here are below the ~1 V needed for platinum reduction, the MPS3 surfaces display significant bonded sulfur atoms that may serve to bind platinum ions analogous to a soft donor ligand and enhance their reduction. It is possible that dissolved PxSy ions from the catalyst could also enhance solution concentration of platinum ions. In brief, the stability of HER electrocatalysis by CoPS3 during cycling and extended experiments may be due to the CoPS3 catalyst evolving H2 at applied potentials that are positive of platinum deposition. Because NiPS3 and FePS3 evolve hydrogen at more negative potentials, platinum may deposit onto these materials at longer times when a Pt CE is used. Also, note that the standard Pt-C powder sample displayed relatively low stability in acid under 18-hour CA conditions as shown in Table 4.1 . 176 4.3.3.1. iR Compensation and Continued Electrochemical Advancement Current Density (mA cm-2) vs. Potential (mV) 0 5 10 15 20 25 30 35 40 45 10% Pt-C 10% Pt-C (85% iR Comp) CoPS3 (85% iR Comp) CoPS3 NiPS3 (85% iR Comp) NiPS3 Carbon-wax 50 -600 -500 -400 -300 -200 -100 0 100 Potential (mV vs. RHE) Figure 4.5: The image is of an HER current density (mA cm <sup>-2</sup> ) versus potential (mV vs. RHE) overlay plot of representative runs for each, CoPS3, NiPS3, carbon blank, and 10% Pt-C, without (solid lines) and with manually applied 85% iR compensation (dashed lines) in H2 purged 0.5 M H2SO4. The resistance values used for each are: 68 ohms for CoPS3, 64 ohms for NiPS3, and 17 ohms for 10% Pt-C. Data obtained a three electrode cell at 5 mV s <sup>-1</sup> scan rate with Cwax working electrode, Pt mesh counter electrode, and SCE reference electrode, converted to RHE. Current densities are scaled using the geometric electrode area (0.079 cm <sup>2</sup> ). Compensation of solution resistance (iR compensation) by a potentiostat has long been a built in function of potentiostats, however recent literature has shown an increased use in electrocatalytic studies. Typically, the iR compensation is applied when the electrolyte solution has low conductivity, the currents of the experiments will be fairly high, and the electrochemical cell geometry is not ideal. The solution resistance is the resistance compensated, as the resistance is considered to only result from the conditions of the setup and not the materials themselves. Typically, the resistance is compensated to 85%. There is recent literature reviews that caution against routine use of iR data correction as it may hide inherent sample or sample and electrode resistance issues that 177 are relevant to the catalytic process. <sup>26</sup> While more consistent use of instrument iR compensation in the Gillan laboratory began after my time at Iowa, advancements of the carbon wax electrodes by the Gillan laboratory, namely Janaka Abeysinghe and Ishanka Liyanage. Their investigations into iR compensation led to a complete re-coding of the Excel macro for processing HER data to include the addition of the advanced manual iR compensation process, detailed in Appendix C, which is required for comparisons of electrochemical data collected without instrument iR compensation to recent literature reporting iR compensated values. Manual iR compensation is calculated with Equation 4.2, which uses Ohm’s Law (V = iR) to provide the compensated potential for each step in an LSV experiment. The compensated potential, EiR-Comp, removes a user chosen percentage (typically 85%) of the solution resistance ( _Rs_ ) from the measurements. The goal of the iR compensation is to measure electrochemical behavior of the electrode or adhered samples alone. Within the calculation, the compensation potential ( _i_ x _Rs_ x _%comp_ ) is added to the instrument measured potential, _ERHE_, to provide the compensated potential where the measured current would have been achieved if the solution resistance were minimized. Manual iR compensation requires a measured solution resistance for successful use in Equation 4.2 . Potentiostat settings allow for solution resistance values to be measured once before any other measurements are taken, or at the beginning, before each consecutive run. Establishing a collection of solution resistances for each sample in the same conditions including electrolyte, purging, and the counter electrode, will allow for the potential to be compensated in new and old datasets where instrument iR compensation was not applied. 178 4.2 Table 4.2: iR Compensated HER Results for MPS3 Materials in Acidic Electrolyte <sup>a</sup> 20 mA cm <sup>-2</sup> <u>(mV)</u> Tafel Slope <u>(mV dec</u> <sup>-1</sup> <u>)</u> Catalyst <u>Material</u> Onset <u>(mV)</u> <sup>b</sup> 10 mA cm <sup>-2</sup> <u>(mV)</u> CoPS3 -96 ± 2 -181 ± 1 -208 ± 1 -62 ± 3 NiPS3 -248 ± 8 -391 ± 27 -444 ± 37 -80 ± 7 10% Pt on C 7 ± 2 -36 ± 1 -64 ± 5 -34 ± 2 a LSV results with 85% manual iR compensation in 0.5 M H2SO4 with SCE reference, Pt mesh counter, converted to RHE, on powders embedded on 0.079 cm <sup>2</sup> carbon wax electrode. Average of LSV data from first 50 LSV runs. <sup>b</sup> Estimated as potential for 0.5 mA cm <sup>-2</sup> current density from baseline. The manually applied 85% iR compensation significantly improved the reported potentials for the two metal thiophosphates, while the platinum was only marginally improved as the data shows in Table 4.2 . The Tafel slopes for the metal thiophosphates improved by ~10% while the Tafel slope for the platinum standard was unchanged. The improvement of the Tafel slope for the MPS3 samples is due to the more dramatic change in the slope of their HER polarization curves shortly after the onset potential for HER activity. The work of Ishanka Liyanage with 50% carbon wax electrode tips with instrument performed iR compensation has led to very similar results to those reported, but with around 50% less resistance than the 45% carbon wax electrode tips. Our published MPS3 work shows both uncorrected and instrument iR corrected data at 85%. The improvement in applied potential by iR compensation will significantly improve the potentials that are required to achieve higher current densities versus the potentials of activity onset. 179 The iR compensated improvement was easily calculated by taking the difference of the applied potentials of the uncorrected data and the instrument and the applied potentials of instrument iR corrected data required to achieve both 10 mA cm <sup>-2</sup> and 20 mA cm <sup>-2</sup> HER current densities. The average differences of the applied potentials for both the CoPS3 and NiPS3 as collected by Ishanka Liyanage were 52 ± 2 mV and 90 ± 2 mV at 10 mA cm <sup>-2</sup> and 20 mA cm <sup>-2</sup> HER current densities, respectively. <sup>26</sup> These data match very well with the uncorrected and manual iR corrected data presented in Table 4.2 provided by the newly added manual iR compensation feature of the Excel program shown in Appendix C. The averaged differences of uncorrected and manual iR corrected applied potentials for the CoPS3 and NiPS3 samples were 45 ± 1 mV and 91 ± 4 mV at 10 mA cm <sup>-2</sup> and 20 mA cm <sup>-2</sup> current densities, respectively. The manual and instrument iR compensated potentials matched very well as their differences were only 7 mV and 1 mV to achieve the two current densities. The manual iR compensation option allows for LSV data that was never compensated, to be compared to recent data where instrument iR compensation was applied. The option allows the user to use the exact percent iR compensation as reported for the instrument. 4.4. Conclusions Consistent with Chapter 3, the cobalt catalyst (CoPS3) provided the highest activity as an HER electrocatalyst and CoPS3 had respectable stability over the 18 hour demand at constant current density. The potentials to achieve 10 mA cm <sup>-2</sup> were respectable for the CoPS3 and slightly high for NiPS3 at negative applied potentials of -225 and -437 mV, respectively, while the FePS3 displayed little to no activity over the carbon wax blank. The long term stability experiments with the less active materials, 180 those requiring higher applied potentials, were found to be susceptible to possible platinum deposition and/or sample degradation that led to electrocatalytic improvement. The continued work of the Gillan laboratory has led to further advancements in the development of the carbon wax electrode tips, investigations into platinum deposition, and the use of iR compensation. These advancements led to the use of a graphite counter electrode, as well as an updated version of the Excel macro for HER data processing that includes a manual iR compensation component. The solution resistance of the electrochemical system changes with each catalyst and when it is compensated, the materials in the experiment may be more appropriately compared. The solution resistance for the metal thiophosphates was higher, which led to iR compensation having a greater impact, lowering the potentials more for the metal thiophosphate materials compared to the platinum catalyst. 4.5. References 1. Van Den Berg, A. W. C.; Areán, C. O. Materials for hydrogen storage: current research trends and perspectives. _Chemical Communications_ 2008, _6_ (6), 668-681. DOI: 10.1039/b712576n. 2. Sharma, S.; Ghoshal, S. K. Hydrogen the future transportation fuel: From production to applications. _Renewable and Sustainable Energy Reviews_ 2015, _43_, 1151-1158. DOI: 10.1016/j.rser.2014.11.093. 3. Suen, N.-T.; Hung, S.-F.; Quan, Q.; Zhang, N.; Xu, Y.-J.; Chen, H. M. Electrocatalysis for the oxygen evolution reaction: recent development and future perspectives. _Chemical Society Reviews_ 2017, _46_ (2), 337-365. DOI: 10.1039/c6cs00328a. 4. Marković, N. M.; Sarraf, S. T.; Gasteiger, H. A.; Ross, P. N. Hydrogen electrochemistry on platinum low-index single-crystal surfaces in alkaline solution. _Journal of the Chemical Society, Faraday Transactions_ 1996, _92_ (20), 3719-3725. 5. Sheng, W.; Zhuang, Z.; Gao, M.; Zheng, J.; Chen, J. G.; Yan, Y. Correlating hydrogen oxidation and evolution activity on platinum at different pH with measured hydrogen binding energy. _Nature Communications_ 2015, _6_, 5848. DOI: 10.1038/ncomms6848. 181 6. Dinh, K. N.; Liang, Q. H.; Du, C. F.; Zhao, J.; Tok, A. L. Y.; Mao, H.; Yan, Q. Y. Nanostructured metallic transition metal carbides, nitrides, phosphides, and borides for energy storage and conversion. _Nano Today_ 2019, _25_, 99-121. DOI: 10.1016/j.nantod.2019.02.008. 7. Xu, H. M.; Ci, S. Q.; Ding, Y. C.; Wang, G. X.; Wen, Z. H. Recent advances in precious metal-free bifunctional catalysts for electrochemical conversion systems. _Journal of Materials Chemistry A_ 2019, _7_ (14), 8006-8029. DOI: 10.1039/c9ta00833k. 8. Chen, Z.; Duan, X.; Wei, W.; Wang, S.; Zhang, Z.; Ni, B.-J. Boride-based electrocatalysts: Emerging candidates for water splitting. _Nano Research_ 2020, _13_ (2), 293-314. DOI: 10.1007/s12274-020-2618-y. 9. Callejas, J. F.; Read, C. G.; Roske, C. W.; Lewis, N. S.; Schaak, R. E. Synthesis, Characterization, and Properties of Metal Phosphide Catalysts for the HydrogenEvolution Reaction. _Chemistry of Materials_ 2016, _28_ (17), 6017-6044. DOI: 10.1021/acs.chemmater.6b02148. 10. Jamesh, M. I.; Sun, X. M. Recent progress on earth abundant electrocatalysts for oxygen evolution reaction (OER) in alkaline medium to achieve efficient water splitting A review. _Journal of Power Sources_ 2018, _400_, 31-68. DOI: 10.1016/j.jpowsour.2018.07.125. 11. Gupta, S.; Patel, M. K.; Miotello, A.; Patel, N. Metal Boride‐Based Catalysts for Electrochemical Water‐Splitting: A Review. _Advanced Functional Materials_ 2020, _30_ (1), 1906481. DOI: 10.1002/adfm.201906481. 12. Wang, M.; Zhang, L.; He, Y. J.; Zhu, H. W. Recent advances in transition-metalsulfide-based bifunctional electrocatalysts for overall water splitting. _Journal of_ _Materials Chemistry A_ 2021, _9_ (9), 5320-5363. DOI: 10.1039/d0ta12152e. 13. Coleman, N.; Lovander, M. D.; Leddy, J.; Gillan, E. G. Phosphorus-Rich Metal Phosphides: Direct and Tin Flux-Assisted Synthesis and Evaluation as Hydrogen Evolution Electrocatalysts. _Inorganic Chemistry_ 2019, _58_ (8), 5013-5024. DOI: 10.1021/acs.inorgchem.9b00032. 14. Clement, R.; Garnier, O.; Mathey, Y. Intercalation-Induced Modifications of the Optical and Magnetic-Properties of Feps3 and Nips3 Layer Phases. _Nouv J Chim_ 1982, _6_ (1), 13-17. 15. Chittari, B. L.; Park, Y.; Lee, D.; Han, M.; MacDonald, A. H.; Hwang, E.; Jung, J. Electronic and magnetic properties of single-layerMPX3metal phosphorous trichalcogenides. _Physical Review B_ 2016, _94_ (18). DOI: 10.1103/PhysRevB.94.184428. 182 16. Lemehaute, A.; Ouvrard, G.; Brec, R.; Rouxel, J. Intercalation of Lithium in Nips3 Lamellar Structure. _Mater Res Bull_ 1977, _12_ (12), 1191-1197. DOI: Doi 10.1016/00255408(77)90173-8. 17. Manriquez, V.; Barahona, P.; Ruiz, D.; Avila, R. E. Intercalation of polyethylene oxide PEO in layered MPS3 (M = Ni, Fe) materials. _Mater Res Bull_ 2005, _40_ (3), 475483, Article. DOI: 10.1016/j.materresbull.2004.11.006. 18. Oriakhi, C. O.; Lerner, M. M. Rapid and quantitative displacement of poly(ethylene oxide) from MnPS3 and other layered hosts. _Chemistry of Materials_ 1996, _8_ (8), 20162022. DOI: 10.1021/cm960086o. 19. Oliveira, F. M.; Paštika, J.; Mazánek, V.; Melle-Franco, M.; Sofer, Z.; Gusmão, R. Cobalt Phosphorous Trisulfide as a High-Performance Electrocatalyst for the Oxygen Evolution Reaction. _ACS Applied Materials & Interfaces_ 2021, _13_ (20), 23638-23646. DOI: 10.1021/acsami.1c02361. 20. Mayorga-Martinez, C. C.; Sofer, Z.; Sedmidubský, D.; Huber, Š.; Eng, A. Y. S.; Pumera, M. Layered Metal Thiophosphite Materials: Magnetic, Electrochemical, and Electronic Properties. _ACS Applied Materials & Interfaces_ 2017, _9_ (14), 12563-12573. DOI: 10.1021/acsami.6b16553. 21. Du, C.-F.; Liang, Q.; Dangol, R.; Zhao, J.; Ren, H.; Madhavi, S.; Yan, Q. Layered Trichalcogenidophosphate: A New Catalyst Family for Water Splitting. _Nano-Micro_ _Letters_ 2018, _10_ (4), 67. DOI: 10.1007/s40820-018-0220-6. 22. Dangol, R.; Dai, Z.; Chaturvedi, A.; Zheng, Y.; Zhang, Y.; Dinh, K. N.; Li, B.; Zong, Y.; Yan, Q. Few-layer NiPS3 nanosheets as bifunctional materials for Li-ion storage and oxygen evolution reaction. _Nanoscale_ 2018, _10_ (10), 4890-4896, 10.1039/C7NR08745D. DOI: 10.1039/C7NR08745D. 23. Glass, D. E.; Jones, J.-P.; Shevade, A. V.; Bugga, R. V. Transition Metal Phosphorous Trisulfides as Cathode Materials in High Temperatures Batteries. _Journal of_ _The Electrochemical Society_ 2020, _167_ (11), 110512. DOI: 10.1149/1945-7111/aba0d4. 24. Liang, Q.; Zheng, Y.; Du, C.; Luo, Y.; Zhang, J.; Li, B.; Zong, Y.; Yan, Q. General and Scalable Solid-State Synthesis of 2D MPS3 (M = Fe, Co, Ni) Nanosheets and Tuning Their Li/Na Storage Properties. _Small Methods_ 2017, _1_ (12), 1700304, <u>[https://doi.org/10.1002/smtd.201700304. DOI: https://doi.org/10.1002/smtd.201700304](https://doi.org/10.1002/smtd.201700304)</u> (acccessed 2022/10/05). 25. Cheng, M.; Lee, Y.-S.; Iyer, A. K.; Chica, D. G.; Qian, E. K.; Shehzad, M. A.; dos Reis, R.; Kanatzidis, M. G.; Dravid, V. P. Mixed Metal Thiophosphate Fe2–xCoxP2S6: Role of Structural Evolution and Anisotropy. _Inorganic Chemistry_ 2021, _60_ (22), 1726817275. DOI: 10.1021/acs.inorgchem.1c02635. 183 26. Coleman, N., Jr.; Liyanage, I. A.; Lovander, M. D.; Leddy, J.; Gillan, E. G. Facile Solvent-Free Synthesis of Metal Thiophosphates and Their Examination as Hydrogen Evolution Electrocatalysts. _Molecules_ 2022, _27_ (16). From NLM. 27. Anantharaj, S.; Ede, S. R.; Karthick, K.; Sam Sankar, S.; Sangeetha, K.; Karthik, P. E.; Kundu, S. Precision and correctness in the evaluation of electrocatalytic water splitting: revisiting activity parameters with a critical assessment. _Energy &_ _Environmental Science_ 2018, _11_ (4), 744-771. DOI: 10.1039/c7ee03457a. 28. Chen, Z.; Dinh, H. N.; Miller, E. _Photoelectrochemical Water Splitting: Standards,_ _Experimental Methods, and Protocols_ ; Springer, 2013. DOI: 10.1007/978-1-4614-82987. 29. Jerkiewicz, G. Standard and Reversible Hydrogen Electrodes: Theory, Design, Operation, and Applications. _ACS Catalysis_ 2020, _10_ (15), 8409-8417. DOI: 10.1021/acscatal.0c02046. 30. McCrory, C. C. L.; Jung, S. H.; Peters, J. C.; Jaramillo, T. F. Benchmarking Heterogeneous Electrocatalysts for the Oxygen Evolution Reaction. _J. Am. Chem. Soc._ 2013, _135_ (45), 16977-16987, Article. DOI: 10.1021/ja407115p. 31. Liang, Q.; Zhong, L.; Du, C.; Zheng, Y.; Luo, Y.; Xu, J.; Li, S.; Yan, Q. MosaicStructured Cobalt Nickel Thiophosphate Nanosheets Incorporated N-doped Carbon for Efficient and Stable Electrocatalytic Water Splitting. _Advanced Functional Materials_ 2018, _28_ (43). DOI: 10.1002/adfm.201805075. 32. Mayorga-Martinez, C. C.; Sofer, Z.; Sedmidubsky, D.; Huber, S.; Eng, A. Y.; Pumera, M. Layered Metal Thiophosphite Materials: Magnetic, Electrochemical, and Electronic Properties. _ACS Appl Mater Interfaces_ 2017, _9_ (14), 12563-12573. DOI: 10.1021/acsami.6b16553. 33. Song, B.; Li, K.; Yin, Y.; Wu, T.; Dang, L.; Cabán-Acevedo, M.; Han, J.; Gao, T.; Wang, X.; Zhang, Z.; et al. Tuning Mixed Nickel Iron Phosphosulfide Nanosheet Electrocatalysts for Enhanced Hydrogen and Oxygen Evolution. _ACS Catalysis_ 2017, _7_ (12), 8549-8557. DOI: 10.1021/acscatal.7b02575. 34. Li, K.; Rakov, D.; Zhang, W.; Xu, P. Improving the intrinsic electrocatalytic hydrogen evolution activity of few-layer NiPS3 by cobalt doping. _Chem Commun_ _(Camb)_ 2017, _53_ (58), 8199-8202. DOI: 10.1039/c7cc03173d From NLM PubMed-notMEDLINE. 35. Wang, S.; Xiao, B.; Shen, S.; Song, K.; Lin, Z.; Wang, Z.; Chen, Y.; Zhong, W. Cobalt doping of FePS3 promotes intrinsic active sites for the efficient hydrogen evolution reaction. _Nanoscale_ 2020, _12_ (27), 14459-14464. DOI: 10.1039/d0nr03819a From NLM PubMed-not-MEDLINE. 184 36. Mukherjee, D.; Austeria, P. M.; Sampath, S. Two-Dimensional, Few-Layer Phosphochalcogenide, FePS3: A New Catalyst for Electrochemical Hydrogen Evolution over Wide pH Range. _ACS Energy Letters_ 2016, _1_ (2), 367-372. DOI: 10.1021/acsenergylett.6b00184. 37. Shinagawa, T.; Garcia-Esparza, A. T.; Takanabe, K. Insight on Tafel slopes from a microkinetic analysis of aqueous electrocatalysis for energy conversion. _Sci Rep_ 2015, _5_, 13801. DOI: 10.1038/srep13801. 38. Fang, Y. H.; Liu, Z. P. Tafel Kinetics of Electrocatalytic Reactions: From Experiment to First-Principles. _Acs Catalysis_ 2014, _4_ (12), 4364-4376. DOI: 10.1021/cs501312v. 39. Chen, R.; Yang, C.; Cai, W.; Wang, H.-Y.; Miao, J.; Zhang, L.; Chen, S.; Liu, B. Use of Platinum as the Counter Electrode to Study the Activity of Nonprecious Metal Catalysts for the Hydrogen Evolution Reaction. _ACS Energy Letters_ 2017, _2_ (5), 10701075. DOI: 10.1021/acsenergylett.7b00219. 40. Mitsushima, S.; Kawahara, S.; Ota, K.-i.; Kamiya, N. Consumption Rate of Pt under Potential Cycling. _Journal of The Electrochemical Society_ 2007, _154_ (2). DOI: 10.1149/1.2400596. 41. Mitsushima, S.; Koizumi, Y.; Ota, K.-i.; Kamiya, N. Solubility of Platinum in Acidic Media (I)-in Sulfuric Acid. _Electrochemistry_ 2007, _75_ (2), 155-158. DOI: 10.5796/electrochemistry.75.155. 42. Mitsushima, S.; Koizumi, Y.; Uzuka, S.; Ota, K. Dissolution Mechanism of Platinum in Acidic Media. _ECS Transactions_ 2007, _11_ (1), 1195-1201. DOI: 10.1149/1.2781033. 43. Dong, G.; Fang, M.; Wang, H.; Yip, S.; Cheung, H.-Y.; Wang, F.; Wong, C.-Y.; Chu, S. T.; Ho, J. C. Insight into the electrochemical activation of carbon-based cathodes for hydrogen evolution reaction. _Journal of Materials Chemistry A_ 2015, _3_ (24), 1308013086, 10.1039/C5TA02551F. DOI: 10.1039/C5TA02551F. 44. Bard, A. J.; Parsons, R.; Jordan, J. _Standard Potentials in Aqueous Solution_ ; Routledge, 2017. DOI: 10.1201/9780203738764. 185 CHAPTER 5: ELECTROCHEMICAL INVESTIGATION OF TEMPLATED METAL OXIDE CAPACITANCE AND UTILITY IN OXYGEN EVOLUTION CATALYSIS 5.1. Introduction Ever advancing technology is spreading worldwide, which has rapidly increased the global demand for energy. Renewable and clean energy sources are the primary focus for the replacement of the common energy sources that continue to deplete. Wind and solar energy sources are some of the cleanest and most renewable energy sources available today, however the energy from these sources is not stable enough to meet the constant demand as both energy sources are dependent on location and environmental conditions. <sup>1</sup> Energy storage devices, specifically batteries, have received significant research focus as methods for energy storage and delivery, especially to areas with unstable energy production. <sup>1, 2</sup> For large energy storage applications however, batteries are limited as they tend to have slow charge/discharge rates, their cycling performance is less than desirable, they are expensive, large in size, heavy, and their rate of charge/discharge is highly dependent on the ambient storage and working temperatures. <sup>1-</sup> 5 Supercapacitors can deliver significantly large specific capacities as the capacitance results from the combination of the charges resulting from both, the charge from a redox reaction (faradaic region, pseudocapacitance) and the charge resulting from ion absorption and separation at the electrode/electrolyte interface (double layer capacitance), both were explained in Chapter 1. <sup>3-5</sup> As a result of this combination, supercapacitors present themselves as promising alternative energy storage devices as they are less environmentally dependent, are extensively stable (cyclically), inexpensive, provide high 186 energy densities, and their rates of charge/discharge are significantly faster than other energy storage devices. <sup>6, 7</sup> Metal oxides (MyOx), specifically cobalt (Co3O4) and nickel (NiO) oxides have been extensively investigated as supercapacitor electrode materials due to their high abundance, low cost, and high theoretical specific capacities, 3,560 F g <sup>-1</sup> and 2,573 F g <sup>-1</sup>, respectively. The theoretical specific capacities of any material can be calculated by Equation 1.6 . <sup>1, 2, 8</sup> The specific capacitance of the two metal oxide materials is highly dependent on the synthetic method and the resulting materials morphology and particle size and surface area, along with the electrolyte and its concentration. <sup>1, 2</sup> The most common trend for metal oxides is alterations in their particle size and surface area, which show that particles with the smallest size (<10 nm) and largest surface areas exhibit the largest specific capacities for each of the specific metal oxide materials. <sup>1, 2</sup> The mechanism for charge resulting from the redox reaction (pseudocapacitance) for both the cobalt and nickel oxides is typically considered to be electron transfers that cyclically transform between metal oxides and metal oxyhydroxides in alkaline electrolytes. With applied potential, the hydroxide ions (OH <sup>-</sup> ) of the electrolyte react with each metal oxide, which produces metal oxyhydroxides. As detailed in Equation 5.1, the redox reaction for nickel oxide is the reversible one electron transfer between Ni <sup>2+</sup> of NiO, and Ni <sup>3+</sup> of NiOOH, due to the reaction with hydroxide ions from the basic electrolyte. <sup>1</sup> 5.1 187 In Equation 5.2, the mechanism for pseudocapacitance with cobalt oxide (Co3O4) is shown to involve a two electron process. <sup>9</sup> The structure of cobalt oxide, Co3O4, is a mixture of Co <sup>2+/3+</sup> from the combination of CoO and Co2O3 in its structure. The first electron process is the reversible conversion of the Co <sup>2+</sup> in CoO to Co <sup>3+</sup> in CoOOH, followed by a second electron process via a reversible conversion of the Co <sup>3+</sup> in CoOOH to Co <sup>4+</sup> in CoO2. 5.2 Beyond the advancement of energy storage materials and devices, the production of energy through sustainable and renewable sources, such as fuel cells, has gained significant focus over the last decade. The production of pure gases, as are required for fuel cells, is often difficult and energy intensive, which limits their use in large scale energy production. <sup>10, 11</sup> Electrochemical water splitting is considered one of the leading future methods of sustainable, efficient, low cost, and renewable production of both hydrogen and oxygen gases. The electrochemical water splitting reactions, hydrogen evolution (HER) and oxygen evolution (OER), were both detailed in Chapter 1. These reactions require the use of reliable catalysts for sufficient gas production at lower applied potentials and to increase the electron transfer rates, especially in O2 production, which is hampered by slow electron transfer kinetics. <sup>10-12</sup> 188 Unfortunately, the most active OER electrocatalysts are precious metal oxides, IrO2 and RuO2, which are rare, expensive, and both are unstable at higher applied potentials in both acidic and alkaline electrolytes as they further oxidize to dissolvable IrO3 and RuO4, respectively. <sup>10, 12</sup> Recently, electrocatalysts made from highly abundant, inexpensive, metal oxides, specifically cobalt (Co3O4) and nickel (NiO) oxides, have displayed some of the highest efficiencies toward OER electrocatalytic activity without the use of precious metals. The cobalt and nickel oxides have onset overpotentials, calculated with Equation 1.3, ranging from ~100 to 300 mV over the thermodynamic standard potential of E <sup>o</sup> = 1.229 V for OER. <sup>10-12</sup> The four elementary steps, a – d, listed in Equation 5.3 detail a commonly reported, four electron transfer mechanism for oxygen evolution on active metal oxide (M <sup>*</sup> ) surfaces. Similar to the supercapacitance experiments in alkaline electrolyte, step a. shows the first oxidation step for the cobalt and nickel oxides in alkaline electrolyte is the one electron transfer and conversion of the metal oxide surfaces to their respective metal oxyhydroxide form (M <sup>*</sup> OH). In step b. the metal oxyhydroxides, then undergo further oxidation (produce: CoO2 and NiO2 = M <sup>*</sup> O) by the loss of another electron along with the proton to the electrolyte hydroxide. Step c. the third step, is another one electron oxidation that involves the production of the oxyhydroxide (M <sup>*</sup> OOH) from the more oxidized metal product from step two. Step d., the fourth and final step returns the metal oxide catalysts (M <sup>*</sup> ) back to their original state by a final one electron oxidation with the hydroxide ion, which completes the four electron process by the evolution of oxygen gas (OER). <sup>10, 11</sup> 189 a. b. c. d. 5.3 As noted above, the morphologies of metal oxides can impact capacitance and catalytic activities. Material growth strategies that can grow complex macroscale morphologies, comprised of smaller nanoparticulates, can possibly offer positive impacts on metal oxide electrochemical activity. The growth of inorganic materials with engineered porosity and reactive surface sites has led to industrially important materials such as silicate zeolites for selective gas adsorption and chemical reactions. <sup>13, 14</sup> Macroporous and microporous materials have been templated from 3D colloids, <sup>15, 16</sup> polymer structures, and porous membranes. <sup>17</sup> Using nature as a guide, others have utilized biomorphous templating to grow inorganic materials from exotic natural structural scaffolds such as such as wood, <sup>18</sup> pollen, <sup>19</sup> shells, <sup>20</sup> butterfly wings, coconut shells, <sup>21</sup> fruits, <sup>22</sup> grains, <sup>23</sup> and plant components, including leaves. <sup>24-30</sup> Macroporous structures with microscale or nanoscale features may benefit catalytic processes that rely on surface reactions and charge generation and transport. <sup>31</sup> The Gillan group recently developed a room-temperature alternative to complicated dehydration of sensitive water-rich botanical structure, which typically require multi-step alcohol exchange or freeze drying, prior to their use as cellulose and 190 lignin templates. <sup>32</sup> The Gillan group described a chemical dehydration method that prevents collapse of intricate botanical vascular and cellular structures that were used to grow macroporous titania (TiO2), silica (SiO2) <sup>33</sup>, and ZnO <sup>34</sup> monoliths that retain leaf structural features. Nate Black in the Gillan group has successfully expanded the reach of this leaf templating method to encompass several 3d metal oxides, including NiO and Co3O4. <sup>35</sup> General mechanisms for capacitance reactions (non-faradaic and faradaic) and electrochemical water splitting reactions, HER and OER, were explained in Chapter 1. Furthermore, cobalt and nickel phosphides as well as their thiophosphates were investigated as possible HER electrocatalysts in Chapters 3 and 4, respectively. This chapter will focus on electrochemical investigations of two metal oxides, NiO and Co3O4, as possible Type B and C capacitance materials and as OER electrocatalysts. The metal oxides are grown on leaf templates from Jade and ZZ plants via infiltration of metal salts and calcination in air to produce the metal oxides and to remove the organic template. The electrochemical examinations for the metal oxides as capacitive materials and OER electrocatalysts were all performed in alkaline electrolytes, 3 M and 0.1 M KOH electrolyte solutions, respectively. 5.2. Experimental 5.2.1. Safety Considerations for Oxygen Gas and Electrochemistry <u>Safety Warning: Careful attention must be paid to experiments that utilize and/or</u> produce reactive gases including oxygen gas. Oxygen increases the rate and temperature of an already existing fire. A fume hood or snorkel and adequate ventilation is required to minimize the possibility of oxygen gas concentrating to dangerous levels. 191 Electrochemistry involves moving electrons through electrical circuits which can result in electrical shock and generate sparks, extra caution such as proper electrode connection, and cell setup must be used to guarantee safety at all times. 5.2.2. Materials Electrochemical studies of the templated metal oxide materials involved the use of the following materials: synthetic graphite powder (<20 µm, Sigma-Aldrich), paraffin wax (mp ≥ 65 °C, Sigma-Aldrich), potassium hydroxide (pellets, Certified ACS, Fisher), cobalt (II, III) oxide (Co3O4 nanopowder, <50 nm particle size, 99.8%, Sigma-Aldrich), nickel (II) oxide (NiO nanopowder, <50 nm particle size, 99.8%, Sigma-Aldrich), and anhydrous ruthenium (IV) oxide (RuO2, 99.9%, Alfa Aesar). 5.2.3. Metal Oxides (MyOx) on Leaf Templates The leaf templates of Jade and ZZ along with their conversion to Co3O4 and NiO materials were all prepared by Nate Black of the Gillan group. <sup>35</sup> Fresh leaves were trimmed from common houseplants, _crassula ovalata_ (Jade) and _zamioculcas zamiifolia_ (ZZ) that were grown by sun through a southern window inside an office. Only the center portion of the leaves were used due to their uniform structure; the leaf tips and stems were discarded. These fresh, water-rich leaves were chemically dehydrated by a gentle single step reaction process, an 18 hour soak in 2,2-dimethoxypropane [DMP, (CH3)2C(OCH3)2] followed by air drying for ~30 minutes, a process based on earlier work from the Gillan laboratory with TiO2, SiO2, and ZnO materials. <sup>33, 34</sup> After air drying, the leaves were evacuated to below 100 mTorr at room temperature to guarantee full solvent and water removal from the dehydrated structures. The dehydrated Jade and ZZ leaves retained their overall size and shape compared to the original wet leaves, but 192 their mass was typically ~2% and ~11% of the original mass of hydrated Jade and ZZ leaves respectively. The Jade plant is a succulent plant with more water mass per its volume that results in a larger loss of mass during the dehydration process. The dehydrated leaf templates behave like light foam monoliths that easily, and uniformly pull solutions into their structures. A typical infiltration method for moving metals into the dehydrated leaf templates was an ~18 hour soak in near saturated solutions of either metal chlorides, or metal acetates that were dissolved in methanol. The metal ions were free to move into the dehydrated leaf templates and after soaking the leaves were allowed to air dry. The metal-loaded leaf templates were heated for ~18 hours to temperatures ranging from 475 - 800 °C in open air to transform the metal ions into their respective metal oxides, and to combust away any organic materials from the original plant matter. The resulting metal oxide (MyOx) materials, specifically the oxides of cobalt (Co3O4) and nickel (NiO), were electrochemically investigated for desirable properties as supercapacitance materials as well as electrocatalysts for the oxygen evolution reaction (OER), both in basic electrolyte solutions. 5.2.4. Working Electrodes Earlier work used nickel foam as the electrode support for different electrocatalysts, they are briefly described, however the carbon wax tips, detailed in Chapter 2, were developed during this time of work and its use became a key focus for all electrochemical experiments in this thesis, including this chapter. 193 5.2.4.1. Nickel Foam Electrode Preparation Nickel metal, including wire and foam, oxidize over time due to atmospheric exposure. Prior to particle adhesion and/or use for analytical electrochemical measurements, working electrodes made of nickel wire and/or foam must go through an extensive and thorough cleaning process to remove any foreign materials and corrosion. The process of cleaning the nickel metal surfaces requires four steps: (1) degrease in 100% acetone for 10 minutes, (2) a 5 minute soak in concentrated HCl with ultrasound sonication to remove any oxide layer, (3) a 10 minute soak in 18 MΩ deionized water to neutralize the acid, and (4) a 10 minute soak in 100% ethanol to help with drying. Extended soaks in concentrated HCl and/or HNO3 result in brilliant green colored solutions as the high proton concentrations will completely dissolve the nickel metal into ions by producing explosive hydrogen gas. Conductive inks and pastes are commonly used to transfer samples onto nickel foam (Ni-foam) electrodes. Following the paste transfer, the electrodes are pressed with high pressure to increase connectivity between the particles and the metal foam. Catalyst loadings for supercapacitance measurements typically range between 5 to 10 mg of catalyst per square centimeter of electrode geometric area. The geometric areas for the Ni-foam electrodes presented in this Chapter were ~1.1 cm <sup>2</sup> . Powdered catalyst paste mixtures were prepared by mixing 80% of the metal oxide catalyst along with 15% AC black for conductivity and 5% PTFE to act as a binder to help hold the paste together. The powdered paste mixtures were suspended in enough pure ethanol to transfer ~10 mg of catalyst per cm <sup>-2</sup> of electrode area. Paste suspensions were prepared with a total of 150 µL of ethanol in order to deliver ~11 mg of catalyst with a 125 µL aliquot of the suspension for a 1.1 cm <sup>2</sup> electrode. An ideal 150 µL paste suspension to deliver 10 mg of 194 catalyst per cm <sup>-2</sup> for a 1.1 cm <sup>2</sup> electrode every 125 µL aliquot will consist of 13.2 mg catalyst, 2.5 mg AC black, and 0.8 mg PTFE. Once the paste suspension was transferred to the clean Ni-foam, they were left to air dry for 20 minutes, and then the electrode was placed between two clean 3 mm (1/8”) thick PTFE plates and pressed to 5,000 psi with a Carver 25 Ton Laboratory Press. The PTFE plates were used to keep iron and rust from transferring from the metal plates of the press. Paste preparation requires large amounts of catalyst, a less than desirable attribute when difficult synthetic methods limit the amount of material produced, and large reactivity of nickel in alkaline electrolytes led to the development of the carbon wax working electrodes. 5.2.4.2. Carbon Wax Electrode Preparation Metal oxides and RuO2 powder reference catalyst were evaluated with carbon wax current collectors as described in Chapter 2. Powdered samples were embedded onto the graphite-wax surface of the PTFE tips using a heated aluminum stub with 0.079 cm <sup>2</sup> surface area as detailed in Section 2.2.7.1 . Samples, typically less than 1 mg, were loaded onto the aluminum stub, which was then placed on a pre-heated (~250℃) hot plate for one minute to allow the powder and stub to heat to near the 65℃ wax melting point. Local softening of the wax with heating ensures that the sample embeds into the graphite-wax surface of the electrode tip. The heated powder sample was embedded into the softened wax of the PTFE tip with light hand pressure using a modified commercial BASi MF-2015 mCPE electrode shown in Figure 2.9B . The gravimetric mass of the loaded samples was determined by the mass difference between the unloaded and loaded tip. Sample loadings ranged from ~0.1 to 0.8 mg which gave sample area coverages of 1.25 – 10.00 mg cm <sup>-2</sup> . The larger loadings were for supercapacitance experiments and 195 the lower loadings were for OER experiments. As shown in Figure 2.9C, the modified commercial electrode was fitted with a rubber septum and the PTFE electrode tips were tightly affixed to the BASi electrode and wrapped with Parafilm to provide a seal between the septum and the affixed tip to produce the final working electrode displayed in Figure 2.9D . Increased electrical contact between the wax and brass rod was aided by dusting powdered graphite into the rear opening of the tip before securing the tip onto the brass rod electrode. Additional details and photos of the carbon wax electrode design and preparation are provided in Chapter 2. 5.2.5. Electrochemical Setup The electrochemical experiments presented in this chapter utilize a three electrode single compartment cell, a Bioanalytical Systems (BASi) 100b potentiostat, and were guided by literature best practices. <sup>36-38</sup> The beaker shaped electrochemical cell has a diameter of 5.75 cm and a height of 4.0 cm, typically filled with ~45 mL of electrolyte solution leaving a headspace of ~0.5 cm which was covered with a PTFE lid, cut-to-fit, sealed with Parafilm and secured with electrical tape, an example cell is presented in Figure 2.16A . Feedthrough holes were cut as needed for the electrodes and purge gas tube. The completed cell consisting of a modified BASi electrode-tip assembly, a saturated calomel reference electrode and Hg/HgO, a high surface area platinum mesh counter electrode, a fritted glass tube for purge gas, and a magnetic cross stir bar within a small 10 mL beaker (2.5 cm diameter by 2.0 cm high) placed directly under the working electrode similar to the cell in Figure 2.16B . All items placed in the feedthrough holes were loosely sealed with Parafilm to minimize electrolyte evaporation but not allow pressure to build in the cell. Similar to the cell in Figure 2.16C, the stir bar was placed 196 ~6 mm from the working electrode to aid gas removal from the electrode surface and minimize surface adhesion of bubbles. The cell was degassed for 5 minutes prior to starting the experiments and was continuously bubbled into the cell for the entire experiment. The purge gases used for experiments in this Chapter were N2 for capacitance measurements and O2 for OER measurements. 5.2.6. Electrochemical Parameters and Experiments Electrochemical methods, cyclic voltammetry (CV) and linear sweep voltammetry (LSV) were used for capacitance and oxygen evolution (OER) experiments, respectively. All experiments were performed in different concentrations of alkaline electrolytes made with ultrapure water (18 MΩ-cm, Thermo Scientific Barnstead GenPure water purification system). 5.2.6.1. Capacitance by Cyclic Voltammetry (CV) Cyclic polarization curves for supercapacitance were obtained using cyclic voltammetry (CV) at two different scan rates, 5 and 200 mV s <sup>-1</sup> . CV is explained in greater detail in Section 1.6.2 . All CV supercapacitance experiments were performed in aqueous 3 M KOH (pH = 14.5) electrolyte that was purged with N2 gas to minimize any possible side reactions with other dissolved gases. All current densities were calculated using the geometric surface area of the carbon wax electrode (0.079 cm <sup>2</sup> ) and the potentials for all supercapacitance measurements are versus the saturated calomel (SCE) reference electrode (241 mV vs. SHE). The CV experiments began by sweeping the potential positively (anodically) from 0 mV to a switching potential of +500 mV, and then sweeping negatively (cathodically) back to 0 mV to complete the cycle. The 197 supercapacitance potential window was chosen to guarantee the inclusion of the full redox reaction for each metal oxide. 5.2.6.2. Reversible Hydrogen Electrode (RHE) Conversion for OER In Chapter 1, the reversible hydrogen electrode (RHE) was explained. The mercury/mercury oxide reference electrode (Hg/HgO), used for all OER measurements, was calibrated against RHE values for the 0.1 M KOH electrolyte solutions using established conversions. RHE potentials (ERHE) are obtained with the use of Equation 5.4 by taking the sum of the potentiostatically measured Hg/HgO potential (EHg/HgO), the standard electrode potential for Hg/HgO (98 mV vs. SHE), and the resultant shift of the standard hydrogen electrode (SHE) at any pH value (59 mV x pH), not just pH = 0. A 59 mV potential is specific to a one electron reaction, _H_ <sup>_+_</sup> _+ e → ½ H2_, at a temperature of 298.15 K. <sup>39</sup> RHE conversions were not applied to any of the supercapacitance experiments, those that used the saturated calomel reference electrode (SCE), and all OER experimental were converted to RHE and the literature potential values are also reported versus RHE. 5.4 5.2.6.3. Oxygen Evolution (OER) by Linear Sweep Voltammetry (LSV) Linear sweep voltammetry (LSV) was detailed in Chapter 1 and was utilized in several experiments of Chapters 2, 3 and 4. Here, polarization curves were obtained using LSV at 5 mVs <sup>-1</sup> in aqueous 0.1 M KOH (pH = 13) electrolyte. All electrolyte solutions were continually purged with O2 (6.0 ultra-high purity 99.999%, Praxair) to 198 maintain a reversible (O <sup>2-</sup> /O2) Nernstian potential in the solution and is recommended practice for the oxygen evolution reaction (OER). <sup>38</sup> All current densities were calculated using the geometric surface area of the carbon wax electrode (0.079 cm <sup>2</sup> ). Typically for LSV in basic media, potential was swept to positive values, starting at +1.000 V (vs. RHE) until either a current density of ~100 mA cm <sup>-2</sup> or when applied potentials of about ~+1.800 V was reached. The estimated OER onset potentials, the potential where current flows due to electrochemical O2 production, were determined as the point where LSV current density reached ~0.5 mA cm <sup>-2</sup> relative to its baseline value. The potentials required for catalysts to achieve current densities of 10 and 20 mA cm <sup>-2</sup> are regularly reported literature values, therefore those potentials will also be presented for data collected on the MyOx materials in this Chapter. Typically, 25 LSV scans were run to verify reproducible sample responses and short term sample stability. 5.3. Results and Discussion 5.3.1. Capacitance of Blank Electrodes in 3 M KOH Prior to electroanalytical measurements on metal oxide samples, it is important to measure the background capacitance due to the blank electrode, either for the nickel foam (Ni-foam) or carbon wax electrodes presented here. The capacitance for the blank electrodes was measured by cyclic voltammetry in the same 500 mV potential window in N2 purged 3 M KOH electrolyte, which will be used for all of the metal oxide samples. As the images of Figure 5.1 displays, when in 3 M KOH, the Ni-foam blank electrode has a significant redox reaction, Type C faradaic capacitance, from the nickel metal surface transforming to the oxyhydroxide (NiOOH), then into nickel (II) oxide (NiO) on the return sweep, while the carbon wax has a clean, typical rectangular double layer 199 capacitive envelope as previously explained in Section 1.6.3, and in Chapter 2. It is particularly significant that the electrode capacitance for the Cwax is 10 <sup>4</sup> lower than that recorded for the Ni-foam. The Cwax electrode provides a very low current background, while the high reactivity of Ni-foam in the alkaline electrolyte can significantly alter the measured electrochemical behavior of active species attached. <sup>40</sup> Beyond initial measurements for comparative purposes, the Cwax electrodes and materials attached to these Cwax electrodes will be the working electrode of choice and focus. 40 30 20 10 0 -10 -20 -30 -40 200 mV/s -25 500 400 300 200 100 0 Potential (mV) vs. SCE Capacitive Window of Nickel Foam in 3M KOH 5 mV/s 10 5 0 -5 -10 -15 -20 Capacitive Window of Carbon Wax in 3M KOH 5 mV/s 200 mV/s 500 400 300 200 100 0 Potential (mV) vs. SCE Figure 5.1: The two images are cyclic voltammograms of blank electrodes: nickel foam (left) and 45 wt% Cwax (right) collected in a three electrode cell with a Pt mesh counter electrode in N2 purged 3 M KOH, versus an SCE reference electrode. The peaks of the nickel foam are from the Ni <sup>2+/3+</sup> redox reaction resulting from the oxidation of the nickel metal in the basic electrolyte. The plots are in US/Texas convention. The reported capacitance values at different scan rates in Table 5.1 for each electrode were calculated using Equation 5.5, and the capacitance density is a simple normalization of the data to account for geometric areas for each electrode, 1.1 cm <sup>2</sup> for the Ni-foam electrodes and 0.079 cm <sup>2</sup> for the Cwax electrodes. The large capacitance density for the Ni-foam electrodes at both scan rates compared to the carbon wax electrode results from the previously mentioned redox reactions in alkaline electrolyte. 200 The Type C faradaic capacitance for the bare Ni-foam, alone, should be considered and possibly removed before reporting the capacitance of an attached material. As the adjustment is not reported, the capacitance data for Ni-foam is not adjusted. Table 5.1 Capacitance Results for Blank Electrodes in Alkaline Electrolyte <sup>a</sup> Electrode <u>Substrate</u> Electrode Area <u>(cm</u> <sup>2</sup> <u>)</u> <sup>b</sup> Scan Rate Capacitance Capacitance Density <u>(mV s</u> <sup>-1</sup> <u>)</u> <u>5</u> <u>243</u> <u>mF</u> <u>221</u> <u>mF cm</u> <sup>-2</sup> Ni-foam 1.1 <u>200</u> <u>52</u> <u>mF</u> <u>47</u> <u>mF cm</u> <sup>-2</sup> 45 wt% <u>5</u> <u>40</u> <u>µF</u> <u>500</u> <u>µF cm</u> <sup>-2</sup> 0.079 <u>graphite-wax</u> <u>200</u> <u>6</u> <u>µF</u> <u>80</u> <u>µF cm</u> <sup>-2</sup> a The potential window was 500 mV and the 3.0 M KOH electrolyte was N2 purged. b The electrode area is the measured geometric area for each. 5.5 As a result of the significant nickel redox reaction, the activity of any adhered catalyst cannot be directly measured on the foam, but it must be considered as a likely combination of activity for both materials. The capacitance density for the carbon wax electrode at 200 mV s <sup>-1</sup> was about 10 times larger than reported by charge/discharge experiments in Chapter 2, this is likely due to differences in the electrochemical methods, but they are both similar to values expected for glassy carbon electrodes (GCE). <sup>41</sup> The larger capacitance values at 5 mV s <sup>-1</sup> for both electrodes, compared to 200 mV s <sup>-1</sup>, is likely attributed to the time the charge has to build up at each potential value as it is swept. Faster scan rates do not let the charge build as high as it is moving through a specific potential at a faster rate, 40 times faster for these experiments. The low 201 background provided by the carbon wax electrode provided further support for their use as a working electrode for directly measuring the behavior of attached catalysts. 5.3.2. Capacitance of Metal Oxides (MyOx) Surface charging of particulate solids such as metal oxides can benefit from higher surface areas as can be found in nanoparticle materials. Commercial nanoparticles of NiO and Co3O4 are available for comparison purposes. The leaf-templated (ZZ or Jade) metal oxides are shown to have aggregated particle structures using electron microscopy analysis and contain nanocrystalline domains calculated from XRD line broadening. <sup>35</sup> Their ability to form charged surfaces relative to nanoparticle commercial materials was examined. As shown in Figure 5.2, the NiO templated materials in 3 M KOH show smaller envelopes of charge relative to commercial nanoparticles of NiO, regardless of the electrode composition and material. As shown in the images of Figure 5.2 for both electrodes, the nano NiO displays a more Type B capacitance whereas the leaf templated NiO materials display more of a Type C faradaic capacitance as there are strong Ni redox peaks in both sets of experiments. 202 20 15 10 5 0 -5 -10 -15 -20 -25 NiO Samples on Ni-foam in 3M KOH Sigma nano NiO Jade NiO ZZ NiO Ni-Foam Blank 500 400 300 200 100 0 Potential (mV) vs SCE 0.5 0.0 -0.5 -1.0 -1.5 -2.0 -2.5 -3.0 NiO Samples on Carbon Wax in 3M KOH Sigma nano NiO Jade NiO ZZ NiO Carbon Wax Blank 500 400 300 200 100 0 Potential (mV) vs SCE Figure 5.2: Capacitance windows of different NiO materials in N2 purged 3.0 M KOH at 5 mV s <sup>-1</sup> scan rate versus an SCE reference electrode. The plots are in US/Texas convention. Data obtained using a three electrode cell with a Pt mesh counter electrode. The Current densities are scaled using the geometric electrode areas,1.1 cm <sup>2</sup> for Ni foam and 0.079 cm <sup>2</sup> for Cwax. In contrast, the Co3O4 templated solids show charging and capacitance behavior that is very similar to commercial nanoparticles as is displayed in Figure 5.3 . The data in Figures 5.2 and 5.3 additionally show differences in using a conventional nickel foam particle support versus studying particle capacitance using the carbon wax electrodes. As shown in the left image of Figure 5.3, the Type C faradaic capacitance from the Ni redox peaks of the Ni-foam electrode hides the more Type B capacitance found for the Co3O4.samples. 203 10 5 0 -5 -10 -15 -20 -25 Co3O4 Samples on Ni-foam in 3M KOH Sigma nano Co3O4 Jade Co3O4 ZZ Co3O4 Blank Ni-foam 500 400 300 200 100 0 Potential (mV) vs SCE 0.2 0.0 -0.2 -0.4 -0.6 -0.8 -1.0 -1.2 -1.4 -1.6 Co3O4 Samples on Carbon Wax in 3M KOH Sigma nano Co3O4 Jade Co3O4 ZZ Co3O4 Blank Carbon Wax 500 400 300 200 100 0 Potential (mV) vs SCE Figure 5.3: Capacitance windows of different Co3O4 materials N2 purged 3.0 M KOH at 5 mV s <sup>-1</sup> scan rate versus an SCE reference electrode. The plots are in US/Texas convention. Data obtained using a three electrode cell with a Pt mesh counter electrode. The Current densities are scaled using the geometric electrode areas,1.1 cm <sup>2</sup> for Ni foam and 0.079 cm <sup>2</sup> for Cwax. The specific capacitance values listed for each sample in Table 5.2 were calculated using Equation 5.6, at 5 mV s <sup>-1</sup> with the mass of each loaded sample. The capacitance data, similar to the blank electrodes, was then converted to specific capacitance density by dividing by the geometric area provided for each electrode. For the samples loaded on the nickel foam, about half of the paste was left on the PTFE plates after pressing, lowering the loading of the active material to ~5 mg cm <sup>-2</sup>, while the carbon wax electrode surface was embedded with 0.08 mg of sample to provide active material loadings of 10 mg cm <sup>-2</sup> . Based on the 5 mV s <sup>-1</sup> scan rate data for nickel foam in Table 5.1 and a loaded mass of ~5 mg, a specific capacitance density of about 40 F g <sup>-1</sup> cm <sup>-2</sup> could result from the bare nickel alone, without any sample. This is clearly not the case for each sample, specifically Jade-NiO and ZZ-Co3O4 as the two displayed specific capacitance densities lower than 40 F g <sup>-1</sup> cm <sup>-2</sup>, which may be due to the paste covering the foam surface minimizing the electrolyte access to the nickel’s surface. While none of the templated 204 materials significantly stood out for supercapacitance density capabilities, the carbon wax electrodes compared well to the nickel foam as the trends for each, including the commercial samples and with the slight exception for nano and ZZ-Co3O4, were as follows: nano-NiO > Jade-Co3O4 > nano-Co3O4 ≈ ZZ-Co3O4 > ZZ-NiO > Jade-NiO. Table 5.2 Capacitance Results for MyOx Materials in Alkaline Electrolyte <sup>a</sup> Specific Capacitance (F g <sup>-1</sup> ) <sup>c</sup> Specific Capacitance Density <u>(F g</u> <sup>-1</sup> <u>cm</u> <sup>-2</sup> <u>)</u> Capacitance Density (mF cm <sup>-2</sup> ) Sample nano-NiO <u>(Sigma)</u> Electrode Substrate (area cm <sup>2</sup> ) <sup>b</sup> Capacitance (mF) 1,673 1,521 335 304 NiO Ni-foam 86 78 17 16 <u>(Jade)</u> (1.1 cm <sup>2</sup> ) NiO 253 230 51 46 <u>(ZZ)</u> nano-NiO <u>(Sigma)</u> 45 wt% NiO graphite-wax 2.363 29.5 30 369 NiO graphite-wax 0.327 4.1 4 51 <u>(Jade)</u> (0.079 cm <sup>2</sup> ) NiO 0.489 6.1 6 76 <u>(ZZ)</u> nano-Co3O4 <u>(Sigma)</u> 275 250 55 50 Co3O4 Ni-foam 177 161 66 60 <u>(Jade)</u> (1.1 cm <sup>2</sup> ) Co3O4 328 298 35 32 <u>(ZZ)</u> nano-Co3O4 <u>(Sigma)</u> 45 wt% Co3O4 graphite-wax 0.755 9.4 9 118 Co3O4 graphite-wax 0.833 10.4 10 130 <u>(Jade)</u> Co3O4 (0.079 cm <sup>2</sup> ) 0.756 9.4 9.4 118 <u>(ZZ)</u> a The potential window used for capacitance measurements was 500 mV in a 3.0M KOH electrolyte with constant N2 purge with Pt mesh counter and SCE reference electrodes. <sup>b</sup> The electrode area is the measured geometric area for each: 1.1 cm <sup>2</sup> for Ni-foam and 0.079 cm <sup>2</sup> for carbon wax. <sup>c</sup> The masses for each are the average mass applied to each electrode: ~5 mg onto the Ni-foam electrodes and ~0.08 mg onto the carbon wax electrodes. 205 5.6 The specific capacitance values reported for metal oxides range widely, specifically for each distinct active material and their surface area that significantly vary as a result of different synthetic methods. The reported specific capacitance values for Co3O4 nanomaterials are spread widely with values as low as 81 F g <sup>-1</sup> for nanowires, and 120 F g <sup>-1</sup> for nanocubes, while some of the highest reported specific capacitance values are around 2,000 F g <sup>-1</sup> for flower-shaped nanoparticles, all in 6 M KOH electrolyte. <sup>42-44</sup> For NiO nanomaterials, the lower range of reported specific capacitance values are as down around 39 F g <sup>-1</sup> for nanoparticles in 1 M KOH to 62 F g <sup>-1</sup> for nanoclusters in 6 M KOH while the values increase to 300 to 450 F g <sup>-1</sup> for several different nanoclusters, nanofibers, and nanotubes, to some of the higher reported values of around 1,200 F g <sup>-1</sup> for nanotubes and nanoplates, all in similar KOH electrolyte concentrations. <sup>45-50</sup> The templated Co3O4 and NiO samples are micron sized and therefore it is not surprising that the measured specific capacitance values for these samples is near the lower-to-mid range reported values for nano materials, as supercapacitance is strongly dependent on the surface area of the active particles. While supercapacitance performance was rather low for the templated metal oxides, the oxygen evolution activity that presented itself near the positive potential edge of the cyclic voltammograms, shifted the focus of my research towards water splitting electrocatalysis, specifically for this chapter, metal oxides as possible oxygen evolution reaction (OER) electrocatalysts. Regardless of the metal oxide sample in the supercapacitance measurements, it is clear that all of the behavior measured on the carbon wax electrodes was due to the added 206 sample and not the carbon wax background, which is insignificant. Due to the stable behavior of the carbon wax electrode displayed in the capacitance measurements including the similar behavior and trends of the materials compared to the nickel foam electrode, carbon wax electrodes were used for all OER measurements in this chapter. 5.3.3. Metal Oxide (MyOx) Oxygen Evolution Reactions (OER) Similar to the capacitance measurements above, NiO and Co3O4 were examined as electrocatalysts in OER reactions. Preliminary studies of OER activity for leaf-templated NiO and Co3O4 was performed and later follow-up studies were conducted by Nathan Black with assistance from me, Matthew Lovander. <sup>35</sup> In comparing OER activities for metal oxides produced from ZZ versus Jade leaf templating, there is little difference in activity for Co3O4, but for NiO the Jade templated product appears more active than the product from ZZ templating. Interestingly, this is opposite the earlier observation of ZZ NiO having a higher capacitance than Jade-NiO. Perhaps the charging capacity reflects difficulty in passing charge through the catalyst as is desirable to perform facile oxidation reactions. The preliminary cycling stability of the Jade-Co3O4 templated material on a carbon wax electrode is displayed in the plot of polarization curves in Figure 5.4 (left) . There are only slight deviations in the overlaid curves, “fanning”, at potentials at or above 1.850 V vs. RHE. Cycling stability is further exemplified by the consistent and linear data in the Potential (mV) vs. Run Number Plot of Figure 5.4 (right) . The average overpotential for the onset and 10 mA cm <sup>-2</sup> current density for OER electrocatalysis with Jade-Co3O4 is 418 mV and 683 mV, respectively. 207 Figure 5.4: OER for Overlay of 25 LSV polarization curves for Jade-Co3O4 (left). Plot displaying the potential where the different current densities are achieved from the 25 LSV runs for Jade-Co3O4 (right). Data was collected at 5 mV s <sup>-1</sup> on a 0.079 cm <sup>2</sup> Cwax electrode, with a Pt mesh counter electrode and Hg/HgO reference electrode in O2 purged 0.1 M KOH. The cycling stability for the ZZ-Co3O4 templated sample appears to be slightly less stable when compared to the Jade-Co3O4 sample. As shown in Figure 5.5 (left), there is an oxyhydroxide peak around 1.500 V, which was not present with the Jade sample, and fanning of the current occurred at applied potentials near 1.750 V, or about 100 mV lower than the Jade. The stability difference between the two templated Co3O4 samples appears to be small as the potential data for the ZZ sample in the Potential (mV) vs. Run Number plot of Figure 5.5 (right) is still very linear. The average overpotential for the onset and 10 mA cm <sup>-2</sup> current density for OER electrocatalysis with ZZ-Co3O4 is 373 mV and 599 mV, respectively. 208 Figure 5.5: OER for Overlay of 25 LSV polarization curves for ZZ-Co3O4 (left). Plot displaying the potential where the different current densities are achieved from the 25 LSV runs for ZZ-Co3O4 (right). Data was collected at 5 mV s <sup>-1</sup> on a 0.079 cm <sup>2</sup> Cwax electrode, with a Pt mesh counter electrode and Hg/HgO reference electrode in O2 purged 0.1 M KOH. Similar to the earlier capacitance measurements, the templated Co3O4 samples performed comparable to, or better than the commercially available nano-Co3O4. As demonstrated in Figure 5.6, the templated ZZ-Co3O4 sample displayed higher OER electrocatalytic activity compared to the Jade-Co3O4 sample, however its stability was slightly less by more “fanning” of the data. The plot in Figure 5.6 also reveals that neither the commercial nor the templated Co3O4 samples performed as well as the RuO2 standard, and the materials all were highly reactive compared to the carbon wax electrode. 209 Figure 5.6: Representative OER current density LSV polarization curves for different Co3O4 templated samples along with commercial nano-Co3O4, commercial RuO2, and bare carbon wax. All samples were collected on 0.079 cm <sup>2</sup> carbon wax electrode tips in O2 purged 0.1 M KOH with a Hg/HgO reference electrode and a Pt-mesh counter electrode. The nano-Co3O4 data presented here was collected by Nathan Black (Gillan Laboratory) The polarization curves in Figure 5.7 (left) show that high current density values were reached before ~1.750 V of applied potential, or 320 mV of applied overpotential for the Jade-NiO. The Jade-NiO was therefore the highest performing OER electrocatalyst of all of the templated samples. Another observation found within the polarization curves of Figure 5.7 (left) is the initially missing oxyhydroxide on the catalyst surface for Run 1, the outlier blue line, and its consistent presence thereafter. The stability of the Jade-NiO appears to be less than that of both templated Co3O4 samples. Again, the stability difference is rather small as demonstrated in the Potential (mV) vs. Run Number plot of Figure 5.7 (right), the electrochemical behavior appears linear prior to and after Run 20. It should be pointed out that the larger discrepancies can be harder to see in these Run Number plots as the y-axis’s values cover a 1.00 V range, 210 which can minimize visual variations up to ~50 mV, the range can be narrowed if necessary. The increased instability for the Jade-NiO may be due to the increased electron transfer caused by the desirably higher OER electrocatalytic activity. The average overpotential for the onset and 10 mA cm <sup>-2</sup> current density for OER electrocatalysis with Jade-NiO is 264 mV and 513 mV, respectively. Figure 5.7 : OER for Overlay of 25 LSV polarization curves for Jade-NiO (left). Plot displaying the potential where the different current densities are achieved from the 25 LSV runs for Jade-NiO (right). Data was collected at 5 mV s <sup>-1</sup> on a 0.079 cm <sup>2</sup> Cwax electrode, with a Pt mesh counter electrode and Hg/HgO reference electrode in O2 purged 0.1 M KOH. The overall OER electrocatalytic performance for the templated ZZ-NiO was the lowest for all of the templated samples. The polarization curves of Figure 5.8 (left) immediately show an initial and consistent oxyhydroxide peak at ~1.475 V. The OER electrocatalytic activity after the oxyhydroxide peak is low reaching just over 5 mA cm <sup>-2</sup> current density at 1.800 V applied potential (500 mV overpotential). The average overpotential for the onset and 10 mA cm <sup>-2</sup> current density for OER electrocatalysis with ZZ-NiO is 360 mV and 703 mV, respectively. 211 Figure 5.8: OER for Overlay of 25 LSV polarization curves for ZZ-NiO (left). Plot displaying the potential where the different current densities are achieved from the 25 LSV runs for ZZ-NiO (right). Data was collected at 5 mV s <sup>-1</sup> on a 0.079 cm <sup>2</sup> Cwax electrode, with a Pt mesh counter electrode and Hg/HgO reference electrode in O2 purged 0.1 M KOH. One may first attribute the lower activity of the templated ZZ-NiO to the oxyhydroxide that immediately forms, however as is shown in Figure 5.9, a much larger oxyhydroxide peak is found at ~1.450 V for the commercial nano-NiO and yet it delivers the best OER electrocatalytic performance of all the nickel oxide samples here, and overall. The most promising OER data from Figure 5.9 is for the templated Jade-NiO material as it initially required higher applied potentials to onset OER versus the RuO2 standard, however the current density (mA cm <sup>-2</sup> ) increased more rapidly with increasing applied potential for the Jade-NiO and eventually 20 mA cm <sup>-2</sup> current density was reached, at ~20 mV lower applied potential than the RuO2 standard. 212 Figure 5.9: Representative OER current density LSV polarization curves for different NiO templated samples along with commercial nano-NiO, commercial RuO2, and bare carbon wax. All samples were collected on 0.079 cm <sup>2</sup> carbon wax electrode tips in O2 purged 0.1 M KOH with a Hg/HgO reference electrode and a Pt-mesh counter electrode. The nano-NiO data presented here was collected by Nathan Black (Gillan Laboratory). The overlaid OER polarization curves in Figure 5.10 summarize the activity for each of the templated metal oxides along with commercially available OER standards (20% Pt-C and RuO2) and the carbon wax electrode. Overall, each of the templated metal oxides presented some OER electrocatalytic activity, with Jade-NiO standing out the most significantly as it approached, and eventually passed the electrocatalytic performance of the RuO2 standard. Figure 5.10 also displays the low background of the carbon wax blank electrode, which is beneficial as it helps to ensure that all measured catalytic behavior is only attributed to adhered samples. 213 Figure 5.10: Representative OER current density LSV polarization curves for different NiO and Co3O4 templated samples along with commercial RuO2, commercial 20% Pt-C (Etek), and bare carbon wax. All samples were collected on 0.079 cm <sup>2</sup> carbon wax electrode tips in O2 purged 0.1 M KOH with a Hg/HgO reference electrode and a Pt-mesh counter electrode. The OER data summarized in Table 5.3 provides the overall applied potentials required for the specific current density for each specific metal oxide catalyst and the RuO2 standard. Overpotential conversions were previously performed for each sample, for easier literature comparisons. Based on 10 mA cm <sup>-2</sup> current densities, the trend for most active metal oxide OER electrocatalysts were as follows: RuO2 > nano-NiO > Jade NiO > nano-Co3O4 > ZZ-Co3O4 > Jade-Co3O4 > ZZ-NiO. 214 Table 5.3: OER Results for MyOx Materials in Alkaline Electrolyte <sup>a</sup> 20 mA cm <sup>-2</sup> <u>(mV)</u> Tafel Slope <u>(mV dec</u> <sup>-1</sup> <u>)</u> Onset Catalyst Material <u>(mV)</u> <sup>b</sup> 10 mA cm <sup>-2</sup> <u>(mV)</u> Co3O4 – Sigma <sup>c</sup> 1,620 ± 2 1,805 ± 3 1940 ± 5 78 ± 3 Co3O4 – Jade 1,648 ± 1 1,913 ± 4 --- 64 ± 0 Co3O4 – ZZ 1,603 ± 6 1,829 ± 4 --- 108 ± 4 NiO – Sigma <sup>c</sup> ~1,540 <sup>d</sup> 1,736 ± 26 1,870 ± 34 139 ± 13 NiO – Jade 1,494 ± 9 1,743 ± 4 1,926 ± 10 137 ± 15 NiO – ZZ ~1,590 <sup>d</sup> 1,933 ± 10 --- 139 ± 9 RuO2 – Alfa Aesar 1,450 ± 2 1,723 ± 7 1,948 ± 12 110 ± 7 a LSV results in 0.1 M KOH with Hg/HgO reference, Pt mesh counter, converted to RHE, on powders embedded on 0.079 cm <sup>2</sup> carbon wax electrode. The averages are based on 25 runs, for each, after stable behavior was achieved. <sup>b</sup> Estimated as potential for 0.5 mA cm <sup>-2</sup> current density from baseline. <sup>c</sup> Collected by Nate Black of the Gillan Group in identical experimental conditions but different numbers of runs. <sup>d</sup> Onset from extrapolation to 0 mA cm <sup>-2</sup> as the oxyhydroxide peak converged with the onset of OER hiding the true potential of onset. Reported onset potentials rely on users’ choice of what constitutes the onset of a reaction, therefore the potentials required for 10 mA cm <sup>-2</sup> current densities are more commonly used to compare electrocatalysts including OER. Some overpotentials reported to achieve 10 mA cm <sup>-2</sup> current densities in 0.1 M KOH with Co3O4 electrocatalysts range from 450 mV for Co3O4 nano-honeycombs <sup>51</sup> to 536 mV for Co3O4 nano-hollow polyhedrons. <sup>52</sup> For NiO nanomaterials, in 0.1 – 1.0 M KOH electrolyte solutions, the overpotentials required 10 mA cm <sup>-2</sup> current densities were as low as 220 mV for carbon supported nanostructured NiO, <sup>53</sup> around 360 mV for NiO nanoplates, <sup>54</sup> and 490 mV for NiO nanocomposites on reduced graphene oxide. <sup>55</sup> As previously mentioned, the templated Co3O4 and NiO samples are micron sized therefore it would not be surprising to witness lower OER activities for these larger sized samples. The catalytic activity of a sample is strongly dependent on the surface area of the active particles. In this work, however it was surprising to find that some of the 215 templated metal oxide samples displayed OER electrocatalytic behavior similar to reported nanomaterials, specifically the templated Jade-NiO as it only required ~510 mV of overpotential to achieve a 10 mA cm <sup>-2</sup> current density. 5.4. Conclusions Commercially available nano cobalt and nickel oxides, as well as templated cobalt and nickel oxides prepared by the Gillan group were successfully investigated by capacitance and OER electrochemical methods on carbon wax electrodes. The capacitance performance of nano-NiO was the highest measured at 369 F g <sup>-1</sup> cm <sup>-2</sup>, the Jade-Co3O4 (130 F g <sup>-1</sup> cm <sup>-2</sup> ) and ZZ-Co3O4 (118 F g <sup>-1</sup> cm <sup>-2</sup> ) materials performed comparable to or higher than the nano-Co3O4 (118 F g <sup>-1</sup> cm <sup>-2</sup> ), and the templated NiO samples provided the lowest capacitance densities, ZZ-NiO (76 F g <sup>-1</sup> cm <sup>-2</sup> ) and Jade-NiO (51 F g <sup>-1</sup> cm <sup>-2</sup> ). The capacitance experiments performed with the carbon wax electrodes provided results similar to the nickel foam electrodes and their use was expanded to OER experiments. The nano-NiO and all Co3O4 materials, on either electrode displayed Type B pseudocapacitance, while the Jade and ZZ NiO displayed Type C faradaic capacitance. The materials with Type C capacitance should next be considered for battery materials. All templated samples provided some activity as OER electrocatalysts, however the templated Jade-NiO sample stood out for its performance. As an OER electrocatalyst the Jade-NiO sample only required onset and 10 mA cm <sup>-2</sup> current density overpotentials of 264 mV and 513 mV, respectively. These OER overpotentials are only 44 mV and 20 mV higher than the applied potentials required for OER by the research standard, RuO2. Of the Co3O4 templated samples, the ZZ-Co3O4 performed equally to the nano-Co3O4 with onset and 10 mA cm <sup>-2</sup> current density overpotentials of 374 mV and 599 mV, 216 respectively. Interestingly, the templated materials of both metal oxides that were the most active as OER electrocatalysts were the least active as supercapacitor materials. Additional experiments should be conducted to determine if there is an inverse relationship between the ability to hold and store charge (capacitance) versus the ability to transfer electrons (OER). It may be possible that there is a link between poor electron transfer catalysts and their better performance at supercapacitance applications. 5.5. References 1. Zhao, J.; Tian, Y.; Liu, A.; Song, L.; Zhao, Z. The NiO electrode materials in electrochemical capacitor: A review. _Materials Science in Semiconductor Processing_ 2019, _96_ [, 78-90. DOI: https://doi.org/10.1016/j.mssp.2019.02.024.](https://doi.org/10.1016/j.mssp.2019.02.024) 2. Hu, X.; Wei, L.; Chen, R.; Wu, Q.; Li, J. Reviews and Prospectives of Co3O4-Based Nanomaterials for Supercapacitor Application. _ChemistrySelect_ 2020, _5_ (17), 5268-5288, <u>[https://doi.org/10.1002/slct.201904485. DOI: https://doi.org/10.1002/slct.201904485](https://doi.org/10.1002/slct.201904485)</u> (acccessed 2022/11/18). 3. Park, H. W.; Na, B.-K.; Cho, B. W.; Park, S.-M.; Roh, K. C. Influence of vanadium doping on the electrochemical performance of nickel oxide in supercapacitors. _Physical_ _Chemistry Chemical Physics_ 2013, _15_ (40), 17626-17635, 10.1039/C3CP52498A. DOI: 10.1039/C3CP52498A. 4. Zhang, Z.; Du, W.; Ren, X.; Shen, Z.; Fan, X.; Wei, S.; Wei, C.; Cao, Z.; Zhang, B. Ni(OH)2-Co2(OH)3Cl bilayer nanocomposites supported by Ni foams for binder-free electrodes of high-performance hybrid supercapacitors. _Applied Surface Science_ 2019, _469_ [, 624-633. DOI: https://doi.org/10.1016/j.apsusc.2018.11.080.](https://doi.org/10.1016/j.apsusc.2018.11.080) 5. Liang, J.; Tan, H.; Xiao, C.; Zhou, G.; Guo, S.; Ding, S. Hydroxyl-riched halloysite clay nanotubes serving as substrate of NiO nanosheets for high-performance supercapacitor. _Journal of Power Sources_ 2015, _285_, 210-216. DOI: <u>[https://doi.org/10.1016/j.jpowsour.2015.03.105.](https://doi.org/10.1016/j.jpowsour.2015.03.105)</u> 6. Arul, N. S.; Han, J. I. Enhanced pseudocapacitance of NiSe2/Ni(OH)2 nanocomposites for supercapacitor electrode. _Materials Letters_ 2019, _234_, 87-91. DOI: <u>[https://doi.org/10.1016/j.matlet.2018.09.064.](https://doi.org/10.1016/j.matlet.2018.09.064)</u> 7. Wang, Y.; Song, Y.; Xia, Y. Electrochemical capacitors: mechanism, materials, systems, characterization and applications. _Chemical Society Reviews_ 2016, _45_ (21), 5925-5950, 10.1039/C5CS00580A. DOI: 10.1039/C5CS00580A. 217 8. Vinodh, R.; Babu, R. S.; Atchudan, R.; Kim, H.-J.; Yi, M.; Samyn, L. M.; de Barros, A. L. Fabrication of High-Performance Asymmetric Supercapacitor Consists of Nickel Oxide and Activated Carbon (NiO//AC). In _Catalysts_, 2022; Vol. 12. 9. Rakhi, R. B.; Chen, W.; Cha, D.; Alshareef, H. N. Substrate Dependent SelfOrganization of Mesoporous Cobalt Oxide Nanowires with Remarkable Pseudocapacitance. _Nano Letters_ 2012, _12_ (5), 2559-2567. DOI: 10.1021/nl300779a. 10. Chen, Y.; Rui, K.; Zhu, J.; Dou, S. X.; Sun, W. Recent Progress on Nickel-Based Oxide/(Oxy)Hydroxide Electrocatalysts for the Oxygen Evolution Reaction. _Chemistry –_ _A European Journal_ 2019, _25_ [(3), 703-713, https://doi.org/10.1002/chem.201802068.](https://doi.org/10.1002/chem.201802068) [DOI: https://doi.org/10.1002/chem.201802068](https://doi.org/10.1002/chem.201802068) (acccessed 2022/11/23). 11. Hu, Z.; Hao, L.; Quan, F.; Guo, R. Recent developments of Co3O4-based materials as catalysts for the oxygen evolution reaction. _Catalysis Science & Technology_ 2022, _12_ (2), 436-461, 10.1039/D1CY01688A. DOI: 10.1039/D1CY01688A. 12. Sekar, S.; Kim, D.; Lee, S. Excellent Oxygen Evolution Reaction of Activated Carbon-Anchored NiO Nanotablets Prepared by Green Routes. _Nanomaterials_ 2020, _10_ (7), 1382. DOI: 10.3390/nano10071382. 13. Davis, M. E.; Lobo, R. F. Zeolite and Molecular-Sieve Synthesis. _Chemistry of_ _Materials_ 1992, _4_ (4), 756-768. DOI: DOI 10.1021/cm00022a005. 14. Parlett, C. M.; Wilson, K.; Lee, A. F. Hierarchical porous materials: catalytic applications. _Chem Soc Rev_ 2013, _42_ (9), 3876-3893. DOI: 10.1039/c2cs35378d. 15. Stein, A.; Li, F.; Denny, N. R. Morphological Control in Colloidal Crystal Templating of Inverse Opals, Hierarchical Structures, and Shaped Particles†. _Chemistry_ _of Materials_ 2008, _20_ (3), 649-666. DOI: 10.1021/cm702107n. 16. Zakhidov, A. A. Carbon Structures with Three-Dimensional Periodicity at Optical Wavelengths. _Science_ 1998, _282_ (5390), 897-901. DOI: 10.1126/science.282.5390.897. 17. Zhao, Y.; Wei, M.; Lu, J.; Wang, Z. L.; Duan, X. Biotemplated hierarchical nanostrucutre of layered double hydroxides with improved photocatalysis performance. _ACS Nano_ 2009, _3_ (12), 4009-4016. 18. Kochkina, N. E.; Agafonov, A. V.; Vinogradov, A. V.; Karasev, N. S.; Ovchinnikov, N. L.; Butman, M. F. Photocatalytic Activity of Biomorphic TiO2 Fibers Obtained by Ultrasound-Assisted Impregnation of Cellulose with Titanium Polyhydroxocomplexes. _ACS Sustainable Chemistry & Engineering_ 2017, _5_ (6), 5148-5155. DOI: 10.1021/acssuschemeng.7b00504. 218 19. Bu, D.; Zhuang, H. Synthesis, characterization, and photocatalytic studies of copperdoped TiO2 hollow spheres using rape pollen as a novel biotemplate. _Catalysis_ _Communications_ 2012, _29_, 24-28. DOI: 10.1016/j.catcom.2012.09.007. 20. Yao, H.; Zheng, G.; Li, W.; McDowell, M. T.; Seh, Z.; Liu, N.; Lu, Z.; Cui, Y. Crab shells as sustainable templates from nature for nanostructured battery electrodes. _Nano_ _Lett_ 2013, _13_ (7), 3385-3390. DOI: 10.1021/nl401729r. 21. Liu, Q.; Gu, J.; Zhang, W.; Miyamoto, Y.; Chen, Z.; Zhang, D. Biomorphic porous graphitic carbon for electromagnetic interference shielding. _Journal of Materials_ _Chemistry_ 2012, _22_ (39), 21183. DOI: 10.1039/c2jm34590k. 22. Wu, X. L.; Wen, T.; Guo, H. L.; Yang, S.; Wang, X.; Xu, A. W. Biomass-derived sponge-like carbonaceous hydrogels and aerogels for supercapacitors. _ACS Nano_ 2013, _7_ (4), 3589-3597. DOI: 10.1021/nn400566d. 23. Wang, L.; Di, C.; Li, T.; Chun, Y.; Xu, Q. Preparation and catalytic behavior of biomorphic calcium oxide/carbon solid base materials. _Catal. Sci. Technol._ 2015, _5_ (12), 5185-5195. DOI: 10.1039/c5cy01028d. 24. Zhou, H.; Fan, T.; Zhang, D. Biotemplated materials for sustainable energy and environment: current status and challenges. _ChemSusChem_ 2011, _4_ (10), 1344-1387. DOI: 10.1002/cssc.201100048. 25. Petkovich, N. D.; Stein, A. Controlling macro- and mesostructures with hierarchical porosity through combined hard and soft templating. _Chem Soc Rev_ 2013, _42_ (9), 37213739. DOI: 10.1039/c2cs35308c. 26. Liu, G.; Kong, X.; Sun, H.; Wang, B.; Yi, Z.; Wang, Q. A facile template method to synthesize significantly improved LiNi0.5Mn1.5O4 using corn stalk as a bio-template. _Electrochimica Acta_ 2014, _141_, 141-148. DOI: 10.1016/j.electacta.2014.07.064. 27. Ma, J.; Lin, H.; Li, X.; Bian, C.; Xiang, D.; Han, X.; Wu, X.; Qu, F. Hierarchical porous bioactive glasses/PLGA-magnetic SBA-15 for dual-drug release. _Mater Sci Eng C_ _Mater Biol Appl_ 2014, _39_, 21-28. DOI: 10.1016/j.msec.2014.01.060. 28. Rambo, C. R.; Sieber, H. Novel synthetic route to biomorphic Al2O3 ceramics. _Advanced Materials_ 2005, _17_ (8), 1088-+. DOI: 10.1002/adma.200401049. 29. Wang, R.; Wang, P.; Yan, X.; Lang, J.; Peng, C.; Xue, Q. Promising porous carbon derived from celtuce leaves with outstanding supercapacitance and CO(2) capture performance. _ACS Appl Mater Interfaces_ 2012, _4_ (11), 5800-5806. DOI: 10.1021/am302077c. 219 30. Michielsen, K.; Stavenga, D. G. Gyroid cuticular structures in butterfly wing scales: biological photonic crystals. _J R Soc Interface_ 2008, _5_ (18), 85-94. DOI: 10.1098/rsif.2007.1065. 31. Gu, C. D.; Huang, M. L.; Ge, X.; Zheng, H.; Wang, X. L.; Tu, J. P. NiO electrode for methanol electro-oxidation: Mesoporous vs. nanoparticulate. _International Journal of_ _Hydrogen Energy_ 2014, _39_ (21), 10892-10901. DOI: 10.1016/j.ijhydene.2014.05.028. 32. Lai, F.; Miao, Y. E.; Zuo, L.; Lu, H.; Huang, Y.; Liu, T. Biomass-Derived NitrogenDoped Carbon Nanofiber Network: A Facile Template for Decoration of Ultrathin Nickel-Cobalt Layered Double Hydroxide Nanosheets as High-Performance Asymmetric Supercapacitor Electrode. _Small_ 2016, _12_ (24), 3235-3244. DOI: 10.1002/smll.201600412. 33. Zimmerman, A. B.; Nelson, A. M.; Gillan, E. G. Titania and Silica Materials Derived from Chemically Dehydrated Porous Botanical Templates. _Chemistry of Materials_ 2012, _24_ (22), 4301-4310. DOI: 10.1021/cm3016534. 34. Black, N.; Ciota, D.; Gillan, E. Botanically Templated Monolithic Macrostructured Zinc Oxide Materials for Photocatalysis. _Inorganics_ 2018, _6_ (4). DOI: 10.3390/inorganics6040103. 35. Black, N. M. Botanically templated macroporous materials and their energy catalysis applications. University of Iowa, 2019. 36. Callejas, J. F.; Read, C. G.; Roske, C. W.; Lewis, N. S.; Schaak, R. E. Synthesis, Characterization, and Properties of Metal Phosphide Catalysts for the HydrogenEvolution Reaction. _Chemistry of Materials_ 2016, _28_ (17), 6017-6044. DOI: 10.1021/acs.chemmater.6b02148. 37. Anantharaj, S.; Ede, S. R.; Karthick, K.; Sam Sankar, S.; Sangeetha, K.; Karthik, P. E.; Kundu, S. Precision and correctness in the evaluation of electrocatalytic water splitting: revisiting activity parameters with a critical assessment. _Energy &_ _Environmental Science_ 2018, _11_ (4), 744-771. DOI: 10.1039/c7ee03457a. 38. Chen, Z.; Dinh, H. N.; Miller, E. _Photoelectrochemical Water Splitting: Standards,_ _Experimental Methods, and Protocols_ ; Springer, 2013. DOI: 10.1007/978-1-4614-82987. 39. Jerkiewicz, G. Standard and Reversible Hydrogen Electrodes: Theory, Design, Operation, and Applications. _ACS Catalysis_ 2020, _10_ (15), 8409-8417. DOI: 10.1021/acscatal.0c02046. 40. Zheng, W.; Liu, M.; Lee, L. Y. S. Best Practices in Using Foam-Type Electrodes for Electrocatalytic Performance Benchmark. _ACS Energy Letters_ 2020, _5_ (10), 3260-3264. DOI: 10.1021/acsenergylett.0c01958. 220 41. McCreery, R. L. Advanced Carbon Electrode Materials for Molecular Electrochemistry. _Chemical Reviews_ 2008, _108_ (7), 2646-2687. DOI: 10.1021/cr068076m. 42. Zhang, C.; Xie, L.; Song, W.; Wang, J.; Sun, G.; Li, K. Electrochemical performance of asymmetric supercapacitor based on Co3O4/AC materials. _J Electroanal Chem_ 2013, _706_ [, 1-6. DOI: https://doi.org/10.1016/j.jelechem.2013.07.032.](https://doi.org/10.1016/j.jelechem.2013.07.032) 43. Liu, X.; Long, Q.; Jiang, C.; Zhan, B.; Li, C.; Liu, S.; Zhao, Q.; Huang, W.; Dong, X. Facile and green synthesis of mesoporous Co3O4 nanocubes and their applications for supercapacitors. _Nanoscale_ 2013, _5_ (14), 6525-6529, 10.1039/C3NR00495C. DOI: 10.1039/C3NR00495C. 44. Wang, C.; Meng, Y.; Wang, L.; Zhu, F.; Zhang, Y. One Step Hydrothermal Synthesis of Flower-shaped Co3O4 Nanorods on Nickel Foam as Supercapacitor Materials and Their Excellent Electrochemical Performance. _Chemical Research in_ _Chinese Universities_ 2018, _34_ (6), 882-886. DOI: 10.1007/s40242-018-8073-6. 45. Duraisamy, N.; Numan, A.; Fatin, S. O.; Ramesh, K.; Ramesh, S. Facile sonochemical synthesis of nanostructured NiO with different particle sizes and its electrochemical properties for supercapacitor application. _Journal of Colloid and_ _Interface Science_ 2016, _471_ [, 136-144. DOI: https://doi.org/10.1016/j.jcis.2016.03.013.](https://doi.org/10.1016/j.jcis.2016.03.013) 46. Chatterjee, S.; Maiti, R.; Miah, M.; Saha, S. K.; Chakravorty, D. NiO Nanoparticle Synthesis Using a Triblock Copolymer: Enhanced Magnetization and High Specific Capacitance of Electrodes Prepared from the Powder. _Acs Omega_ 2017, _2_ (1), 283-289. DOI: 10.1021/acsomega.6b00384. 47. Pilban Jahromi, S.; Pandikumar, A.; Goh, B. T.; Lim, Y. S.; Basirun, W. J.; Lim, H. N.; Huang, N. M. Influence of particle size on performance of a nickel oxide nanoparticle-based supercapacitor. _RSC Advances_ 2015, _5_ (18), 14010-14019, 10.1039/C4RA16776G. DOI: 10.1039/C4RA16776G. 48. Pandurangan, P.; Parvin, T. N.; Soundiraraju, B.; Johnbosco, Y.; Ramalingam, M.; Bhagavathiachari, M.; Suthanthiraraj, S. A.; Narayanan, S. S. Ultrasmall NiO nanoclusters modified with conical Ni(ii)-SR staples for high performance supercapacitor applications. _New Journal of Chemistry_ 2017, _41_ (14), 6127-6136, 10.1039/C6NJ03678C. DOI: 10.1039/C6NJ03678C. 49. Kim, S.-I.; Lee, J.-S.; Ahn, H.-J.; Song, H.-K.; Jang, J.-H. Facile Route to an Efficient NiO Supercapacitor with a Three-Dimensional Nanonetwork Morphology. _ACS_ _Applied Materials & Interfaces_ 2013, _5_ (5), 1596-1603. DOI: 10.1021/am3021894. 221 50. Yao, M.; Hu, Z.; Xu, Z.; Liu, Y.; Liu, P.; Zhang, Q. Template synthesis and characterization of nanostructured hierarchical mesoporous ribbon-like NiO as high performance electrode material for supercapacitor. _Electrochimica Acta_ 2015, _158_, 96[104. DOI: https://doi.org/10.1016/j.electacta.2014.12.058.](https://doi.org/10.1016/j.electacta.2014.12.058) 51. Li, L.; Tian, T.; Jiang, J.; Ai, L. Hierarchically porous Co3O4 architectures with honeycomb-like structures for efficient oxygen generation from electrochemical water splitting. _Journal of Power Sources_ 2015, _294_, 103-111. DOI: <u>[https://doi.org/10.1016/j.jpowsour.2015.06.056.](https://doi.org/10.1016/j.jpowsour.2015.06.056)</u> 52. Dong, D.; Liu, Y.; Li, J. Co3O4 Hollow Polyhedrons as Bifunctional Electrocatalysts for Reduction and Evolution Reactions of Oxygen. _Particle & Particle Systems_ _Characterization_ 2016, _33_ [(12), 887-895, https://doi.org/10.1002/ppsc.201600191. DOI:](https://doi.org/10.1002/ppsc.201600191) <u>[https://doi.org/10.1002/ppsc.201600191 (acccessed 2022/11/28).](https://doi.org/10.1002/ppsc.201600191)</u> 53. Mugheri, A. Q.; Tahira, A.; Aftab, U.; Abro, M. I.; Chaudhry, S. R.; Amaral, L.; Ibupoto, Z. H. Facile efficient earth abundant NiO/C composite electrocatalyst for the oxygen evolution reaction. _RSC Advances_ 2019, _9_ (10), 5701-5710, 10.1039/C8RA10472G. DOI: 10.1039/C8RA10472G. 54. Zhang, J.; Li, F.; Chen, W.; Wang, C.; Cai, D. Facile synthesis of hollow Co3O4embedded carbon/reduced graphene oxides nanocomposites for use as efficient electrocatalysts in oxygen evolution reaction. _Electrochimica Acta_ 2019, _300_, 123-130. [DOI: https://doi.org/10.1016/j.electacta.2019.01.100.](https://doi.org/10.1016/j.electacta.2019.01.100) 55. Narwade, S. S.; Mali, S. M.; Digraskar, R. V.; Sapner, V. S.; Sathe, B. R. Ni/NiO@rGO as an efficient bifunctional electrocatalyst for enhanced overall water splitting reactions. _International Journal of Hydrogen Energy_ 2019, _44_ (49), 27001[27009. DOI: https://doi.org/10.1016/j.ijhydene.2019.08.147.](https://doi.org/10.1016/j.ijhydene.2019.08.147) 222 CHAPTER 6: CONCLUSIONS AND FUTURE WORK 6.1. Overall Thesis Conclusions The successful design and development of an embeddable carbon wax electrode was achieved and described. The carbon wax electrodes were comprised of a 45 wt% graphite to paraffin wax ratio, which was used for all electrochemical experimental data presented with this thesis. The carbon wax mixture is highly versatile as it provides a sufficiently conductive, sticky surface for directly adhering powdered solids and with heat the mixture free flows, allowing the production of electrodes of nearly any size and shape. Cyclic voltammetry (CV) was used as an electroanalytical technique to test the validity of the carbon wax electrodes with comparisons against commercially available glassy carbon electrodes (GCE). Bare (blank) electrode experiments were performed with both GCE and carbon wax electrodes to measure and compare the potential limits (windows) of several electrolytes as well as the electron transfer performance of a common redox couple (Ru(bpy)3 <sup>2+</sup> ) dissolved in solution. The measured electrolyte potential windows of the bare carbon wax electrodes were quite similar to those of the glassy carbon electrode. Compared to glassy carbon, graphite wax more easily reduces protons in solution, which slightly limits the reduction window of the carbon wax in acidic electrolytes. When comparing the redox reaction, it was not surprising that the carbon wax electrode provided a larger peak splitting for the Ru(bpy)3 <sup>2+</sup>, due to insulating paraffin wax making up 55% of the carbon wax mixture, leading to increased resistance. Electrochemical investigations of several commercial standards were made for literature comparisons and to validate the ability of the carbon wax electrode to adhere materials and to measure the electrochemical behavior of the adhered samples. Linear sweep 223 voltammetry (LSV) was used to measure the electrocatalytic water splitting reactions HER, OER, and ORR with 10% Pt-C, RuO2, and 20% Pt-C, respectively. The HER and OER behavior of the commercial standards on the carbon wax electrodes compared very well to reported literature values. The 20% Pt-C used for ORR experiments was successful but not as active as described in literature reports, however these experiments were performed with a newly designed rotating disk apparatus. The design of the rotating carbon wax electrode was still in its infancy, further work is required to improve its performance to mirror existing rotating electrodes. Anion-rich, metal phosphides that were produced by novel synthetic methods of the Gillan laboratory were embedded on carbon wax electrodes for electrochemical investigations to measure their electrocatalytic HER activity in acidic and near neutral buffered electrolytes. The LSV data for cobalt (CoP3) and nickel (NiP2) phosphides displayed good to moderate electrocatalytic activity towards HER in both electrolytes. Iron phosphide (FeP2) only displayed moderate HER activity in acidic electrolyte and the copper phosphide (CuP2) did not display activity in either electrolyte. The cobalt phosphide, CoP3, displayed the highest HER electrocatalytic activity, only requiring applied overpotentials of -147 mV and -202 mV to achieve 10 mA cm <sup>-2</sup> current densities in 0.5 M H2SO4 and 1.0 M PBS, respectively by LSV. Single potential time based amperometry was used for 18 hour extended stability measurements on each sample, the CoP3 sample displayed the highest stability maintaining 98% activity. The electrochemically active surface area (ECSA) of each metal phosphide was determined by CV. Some increases in HER activity can be attributed to larger active surface areas, for example the CoP3 was the most active electrocatalyst and it displayed the largest 224 ECSA values, 24 cm <sup>2</sup> (pH = 0.3) and 14 cm <sup>2</sup> (pH = 6.5). The lowest performing CuP2 material displayed increasing HER activity with extensive LSV cycling at applied potentials up to 1.0 V (vs. RHE). The odd CuP2 HER behavior led to new and unexpected benefits of the carbon wax electrode, specifically post electrochemical analyses: XRD, EDS, and SEM. Images obtained with SEM of the CuP2 sample clearly displayed surface degradation as the materials were roughened and splitting apart compared to the sample prior to electrochemical experiments. Further analysis with XRD/EDS found metal rich Cu3P, not originally present in the CuP2 material and is reported as significant electrocatalytically active for HER. Several metal thiophosphates, cobalt (CoPS3), iron (FePS3), and nickel (NiPS3), were prepared through a novel synthetic approach by the Gillan laboratory. Metal thiophosphates were electrochemically tested in 0.5 M H2SO4 electrolyte in a similar manner to those applied to the metal phosphides above. The metal thiophosphates are a more anion-rich variation of the same metals in the phosphides. Consistent with CoP3 in acidic electrolyte, the cobalt catalyst (CoPS3) provided the highest activity of the metal thiophosphates, -225 mV (vs. RHE) for 10 mA cm <sup>-2</sup> current density as an HER electrocatalyst along with a respectable and well maintained stability of 93% over the 18 hour applied potential for constant current density demand. Applied potentials to achieve 10 mA cm <sup>-2</sup> were ~200 mV higher for NiPS3 (-437 mV vs. RHE), and the FePS3 displayed little to no activity over the carbon wax blank. The larger required applied potentials may be due to the lower metal content or the lower access to the metal due to increased steric hinderance of the larger attached ions. When higher potentials were applied during the long term stability experiments with the less active metal 225 thiophosphate materials, they were found to be susceptible to possible platinum deposition and/or sample degradation leading to electrocatalytic improvement. The continued work of the Gillan laboratory has led to further advancements in the development of the carbon wax electrode tips, including investigations into platinum deposition, its removal from the electrochemical system via use of a graphite rod as the counter electrode, and the use of iR compensation. All electrochemical data for HER and OER experiments was processed and prepared by a program written in different macros of Microsoft Excel, presented in Appendix C. The recent introduction of instrument iR compensation and of a brand new potentiostat led to advanced additions to the macros to include a manual iR compensation component as well as csv file processing capabilities. The iR compensation allows for further comparison to literature values as those are often reported with 85% compensation. Alkaline electrolytes, carbon wax electrodes, and electroanalytical techniques, CV and LSV, were used to measure the capacitance and oxygen evolution capabilities of commercially available nano cobalt and nickel oxides, as well as botanically templated cobalt and nickel oxides prepared by a novel synthetic method in the Gillan laboratory. The commercial nanomaterials were used to compare their behavior to the completely unknown activity of the templated materials. Unsurprisingly and likely due to their increased surface area, the nanomaterials provided the highest faradaic capacitance values in 3 M KOH, 369 F g <sup>-1</sup> cm <sup>-2</sup> and 118 F g <sup>-1</sup> for nano-NiO and nano-Co3O4, respectively. Interestingly, the micron-sized templated cobalt samples performed equally to the nano-Co3O4, 130 F g <sup>-1</sup> cm <sup>-2</sup> for Jade Co3O4 and 118 F g <sup>-1</sup> cm <sup>-2</sup> for ZZ-Co3O4 and all of the cobalt oxide samples displayed 226 Type B pseudocapacitance. The capacitance densities for the templated NiO fell far short compared to the nano-NiO, 76 F g <sup>-1</sup> cm <sup>-2</sup> for ZZ-NiO and 51 F g <sup>-1</sup> cm <sup>-2</sup> for Jade-NiO. The leaf templated NiO samples displayed Type C faradaic capacitance and the nano NiO displayed Type B pseudocapacitance. Comparable capacitance results were found between the samples when added to either nickel foam or the carbon wax electrodes, which led to the expansion of carbon wax electrode use in OER experiments. The activity of OER electrocatalysts were measured by LSV on carbon wax electrodes in 0.1 M KOH. Focusing solely on the templated metal oxide samples, the performance of Jade-NiO stood out as it only required 264 mV, 513 mV, and 703 of applied overpotentials for OER onset (0.5 mA cm <sup>-2</sup> ), 10 mA cm <sup>-2</sup>, and 20 mA cm <sup>-2</sup> current densities, respectively. For comparison, commercial RuO2 on carbon wax electrodes required overpotentials of 220 mV, 493 mV, and 728 mV to achieve the same current densities. The Jade-NiO only required 44 mV and 20 mV more applied potential for onset and 10 mA cm <sup>-2</sup> current density, and unexpectedly, the Jade-NiO required 32 mV less applied overpotential for 20 mA cm <sup>-2</sup> current density. The ZZ-Co3O4 performed equally to the nano-Co3O4 with onset and 10 mA cm <sup>-2</sup> current density overpotentials of 374 mV and 599 mV, respectively, while the templated Jade-Co3O4 and ZZ-NiO were both electrochemically OER active, their performance for producing higher current densities fell short of the other templated materials. An interesting trend presented itself between the capacitance and OER experiments, it appears that the templated materials of both metal oxides, those that provided the highest capacitances were the least active as OER electrocatalysts, further investigations are required to validate this trend. 227 6.2. Future Work The carbon wax electrodes introduced in this thesis are still advancing. The Gillan group has recently determined that a 50:50 ratio is an overall better performing carbon-to-wax mixture with lower bulk electrical resistance over the 45:55 ratio used throughout this thesis. HER experiments with the new ratio have already been performed and/or are ongoing, however capacitance and OER experiments still need to be run for comparison to the 45% mixture. The reproducibility of the carbon wax electrodes is already quite high, however, to ensure consistent performance for every carbon wax electrode, I believe significant improvements can be made using automation in the production. As previously mentioned, the carbon wax flows easily with low heating (<80 oC), 3D printers built on CNC tables are precision instruments that have become rather inexpensive and are highly adaptable by the user, including attachments that can etch, solder, weld, and print in 3D with several different materials, most commonly low melting point plastics. Several interesting applications come to mind with 3D printing capability. It would be interesting to use 3D printers to print 50% carbon wax circuits as either individual anodes or cathodes, or print alternating reactions on one electrode, emulating something like an alternating p-n junction of a solar cell. Controlled printing of the blank or sample loaded carbon wax onto commercial electrodes, such as GCE, presents an alternative loading method to films for these electrodes. If the printed thickness was well controlled, the carbon wax layer should easily detach from the surface with a sharp blade to perform post electrochemical analyses. Metal electrode screens could be dipped in melted carbon wax to create a coating for adhering materials or after 228 dipping in the carbon wax, if the metal was nickel it could be dissolved away with acid leaving a carbon wax screen. Metal phosphides and thiophosphates were both tested for HER activity in acidic electrolytes, expansion of their electrocatalytic examination should include HER in basic electrolytes and OER in both acidic and basic electrolytes. Tafel analysis is used as a method for determining the rate determining step of electrochemical processes and it was applied to all tested HER and OER electrocatalysts, but it was only used for literature comparisons. Tafel analysis includes considerations for the rate of absorption of a reactive species (H <sup>+</sup> or OH <sup>-</sup> ) onto a catalyst’s surface, the rate of migration of the absorbed reactants to migrate together to react, the rate of electron transfer to produce the new product (H2 or O2), as well as the rate of desorption of the product from the catalyst’s surface. A deeper analysis is warranted for all of the studied materials to identify the specific kinetic factors that may influence the rate determining step that limits the performance of each catalyst. Larger electrochemically active surfaces areas (ECSA) revealed a slight trend towards higher catalytic performance, but I believe there should be some correlation between the ECSA of a material and their surface areas determined by BET. I do not expect one-to-one behavior between the two surface areas, but as a possible way to determine the number of active sites available on the overall total physical BET area. Capacitance experiments are in the very early stages of development and additional experiments should be conducted to confirm the results presented here. Metal oxides tend to go through double displacement reactions in acidic solutions so HER experiments in both electrolytes and OER experiments in acidic solutions may be 229 unstable, however it seems worth further investigations. The capacitance and OER behaviors for each metal oxide appear, at least initially, to be inversely related based on the best performing OER catalysts displaying the lowest capacitance capability. Further experiments are necessary to confirm the possible trend, but if this is true, the trend could be used to determine when and where each electroactive material should be applied. Experiments with ECSA came after investigations of the metal oxides for OER activity, new experiments should include ECSA measurements as a standard. Several reports use the same electroactive material on both electrodes in an electrochemical cell to test the complete electrochemical water splitting capability of the catalyst. It would be interesting to perform combined reactions with the best performing OER and HER catalysts on their respective electrode, and to see if there is synergy with specific combinations and determine how well the carbon wax electrode can function in a full water splitting cell structure. Lastly, the expanded use of carbon wax electrodes in post electrochemical analyses is incredibly important as most adhered materials are in thin films that are difficult if not impossible to recover for post analysis. Thus far, bulk XRD, surface sensitive XPS, EDS, and SEM have been successfully performed on carbon wax electrodes post electrochemical measurements. The wax mixture is easily dissolved in hexanes, which simplifies sample recovery for testing samples with instruments including ICP, TGA, and UV-Vis spectroscopy. 230 APPENDIX A: PRELIMINARY INVESTIGATIONS OF MAGNETIC FILM MAGNETIC MOMENTS AND ELECTRODE MASS LOADINGS The Leddy group has extensive background and data that demonstrates magnetic effects on electron transfer at rotating disk electrode surfaces. Incorporating strongly magnetic particles, particularly ferromagnetic ones, into electrochemical reactions has shown improvements in electron transfer efficiencies for certain reactions by up to ~40%. Magnetic films on glassy carbon electrodes, for example the electrodes shown in Figure A.1, are often used for these electrochemical measurements. The Leddy group has extensively measured the behavior of these types of films, however the magnetic moments relative to the mass of magnetic particles in these films are not reported. Figure A.1: The magnetic films on the three glassy carbon electrodes (GCE) were each prepared by pipetting 5 µL of a Nafion/SiMag suspension onto each electrode surface and then left to air dry overnight. The stock suspension consisted of 37 µL of 5 wt% Nafion (45% H2O) with 3 to 9 µL of the 50 mg mL <sup>-1</sup> magnetic/H2O suspension. The Leddy group makes frequent use of superparamagnetic SiMag particles were provided by _chemicell_ and SiMag is named for the silica/alkane (silane) protective coating that surrounds the maghemite, Fe2O3, particles. The magnets are suspended in 231 deionized H2O at a particle weight to volume of 50 mg mL <sup>-1</sup> . As shown in Figure A.2, the numbers C1, C3, C8, and C18 of the SiMag particles detail the number, n, of repeating alkyl chains (CH2) of the silane coating. This Appendix describes methods attempted for testing the magnetic moment and the mass loadings of films made with different SiMag particles. Figure A.2: The image is an example of a silane coated maghemite, Fe2O3, particle with ‘n’ alkyl repeating chains. With SiMag particles C1, C3, C8, and C18, the ‘n’ value is their corresponding number in their name. A.1. Magnetic Susceptibility of SiMag Particles in Magnetic Films The geometric surface area for each glassy carbon electrode in Figure A.1 is approximately 0.44 cm <sup>2</sup>, or 44 mm <sup>2</sup> . The magnetic films investigated were cast onto glass slides to closely mimic the same geometric area covered on the GCEs, as well as match the electrode filming methods commonly used by the Leddy group. The magnetic films were produced by first preparing 40 to 46 µL stock magnetic/Nafion suspensions. The suspensions consisted of 37 µL of 5 wt% Nafion (45% H2O) with 3 to 9 µL of the 50 mg mL <sup>-1</sup> SiMag/H2O suspension. The new suspensions were vortex mixed for ~2 minutes and then 5 µL of one of the suspensions was micro-pipetted onto the 2 mm wide clear glass slide up to a length of ~17 mm as shown in the right images of Figure A.3 . The magnetic susceptibility of each SiMag sample was measured with an Alfa Aesar 232 Magnetic Susceptibility Balance. The geometric areas of the film coated part of the glass slides are ~34 mm <sup>2</sup>, which is about 10 mm <sup>2</sup> less than the GCE areas. If the films are brought up to 22 mm in height to provide 44 mm <sup>2</sup> geometric surface areas, part of the magnetic films will be outside of the magnetic field of the magnetic susceptibility instrument. The 17 mm height was picked to provide the closest geometric surface area to the GCE and to minimize any issues from the particles being more concentrated. This height also allows the entire sample to be measured so dimensionless instrument susceptibilities can be scaled relative to the amount of the SiMag particles in the dried film. Figure A.3: The left images represent different options for film heights to be used in the magnetic susceptibility balance. A maximum of 17 mm is suggested to keep the magnetic materials within the magnetic field of the instrument. The right images are actual magnetic films cast onto glass slides to a height of 17 mm (geometric surface area of ~34 mm <sup>2</sup> ). The magnetic susceptibility of each SiMag material is summarized Table A.1, along with the blank glass slide and Nafion film alone. This preliminary data shows that the magnetic susceptibility of the samples is able to be measured, but as the data in Figure A.4 shows, further investigations are needed as the magnetic susceptibility of 233 each sample is expected to ideally increase linearly with the use of increasing volumes for each of the magnetic particle solutions in the films. The C1 SiMag materials seemed to provide the best trend, from 3 to 9 microliters, however the 12 microliter addition appears to be an outlier. The inconsistencies of the susceptibilities suggests that the magnetic particle suspensions may not suspend uniformly, either in their stock form or with Nafion, or both. Equivalents of water, equal to the volume of magnetic suspension, were added to the Nafion to ensure the films were as similar as possible, with or without the magnetic particles. Table A.1: Magnetic Susceptibility Values for SiMag Particles Molar Suscept. Magnetic Films Susceptibility µB = (Bohr magneton) <u>XM (cm</u> <sup>3</sup> <u>/mol)</u> <u>Glass</u> <u>Blank Slide</u> <u>-6.0</u> <u>±</u> <u>0.1 x 10</u> <sup>-8</sup> 37µL Nafion 37µL Nafion 37µL Nafion 37µL Nafion 37µL Nafion <u>6 µL H2O</u> <u>0</u> <u>±</u> <u>5 x 10</u> <sup>-9</sup> <u>12 µL H2O</u> <u>0</u> <u>±</u> <u>5 x 10</u> <sup><u>-10</u></sup> <u>Nafion</u> <u>-1.0</u> <u>±</u> <u>0.2 x 10</u> <sup>-8</sup> <u>3 µL C1</u> <u>1.137</u> <u>±</u> <u>0.004 x 10</u> <sup>-6</sup> <u>4.6 x 10</u> <sup><u>-4</u></sup> <u>1.1</u> <u>6 µL C1</u> <u>1.666</u> <u>±</u> <u>0.08 x 10</u> <sup><u>-6</u></sup> <u>8.1 x 10</u> <sup><u>-4</u></sup> <u>1.4</u> <u>9 µL C1</u> <u>4.76</u> <u>±</u> <u>0.02 x 10</u> <sup>-6</sup> <u>1.1 x 10</u> <sup><u>-3</u></sup> <u>1.6</u> <u>12 µL C1</u> <u>2.66</u> <u>±</u> <u>0.02 x 10</u> <sup><u>-6</u></sup> <u>5.0 x 10</u> <sup><u>-4</u></sup> <u>1.1</u> <u>3 µL C3</u> <u>1.544</u> <u>±</u> <u>0.004 x 10</u> <sup><u>-6</u></sup> <u>5.8 x 10</u> <sup><u>-4</u></sup> <u>1.2</u> <u>6 µL C3</u> <u>1.466</u> <u>±</u> <u>0.003 x 10</u> <sup>-6</sup> <u>6.0 x 10</u> <sup><u>-4</u></sup> <u>1.2</u> <u>9 µL C3</u> <u>2.375</u> <u>±</u> <u>0.009 x 10</u> <sup><u>-6</u></sup> <u>4.3 x 10</u> <sup><u>-4</u></sup> <u>1.0</u> <u>12 µL C3</u> <u>4.026</u> <u>±</u> <u>0.008 x 10</u> <sup><u>-6</u></sup> <u>9.0 x 10</u> <sup><u>-4</u></sup> <u>1.5</u> <u>3 µL C8</u> <u>1.40</u> <u>±</u> <u>0.01 x 10</u> <sup>-6</sup> <u>2.7 x 10</u> <sup><u>-4</u></sup> <u>0.8</u> <u>6 µL C8</u> <u>1.99</u> <u>±</u> <u>0.05 x 10</u> <sup><u>-6</u></sup> <u>7.5 x 10</u> <sup><u>-4</u></sup> <u>1.3</u> <u>9 µL C8</u> <u>5.25</u> <u>±</u> <u>0.05 x 10</u> <sup><u>-6</u></sup> <u>5.5 x 10</u> <sup><u>-4</u></sup> <u>1.1</u> <u>12 µL C8</u> <u>3.36</u> <u>±</u> <u>0.02 x 10</u> <sup><u>-6</u></sup> <u>6.0 x 10</u> <sup><u>-4</u></sup> <u>1.2</u> <u>3 µL C18</u> <u>1.21</u> <u>±</u> <u>0.001 x 10</u> <sup><u>-6</u></sup> <u>5.3 x 10</u> <sup><u>-4</u></sup> <u>1.1</u> <u>6 µL C18</u> <u>2.035</u> <u>±</u> <u>0.003 x 10</u> <sup><u>-6</u></sup> <u>4.0 x 10</u> <sup><u>-4</u></sup> <u>1.0</u> <u>9 µL C18</u> <u>5.48</u> <u>±</u> <u>0.03 x 10</u> <sup><u>-6</u></sup> <u>1.2 x 10</u> <sup><u>-3</u></sup> <u>1.7</u> <u>12 µL C18</u> <u>2.48</u> <u>±</u> <u>0.01 x 10</u> <sup><u>-6</u></sup> <u>2.6 x 10</u> <sup><u>-4</u></sup> <u>0.8</u> 234 Molar Magnetic Susceptibility for Different SiMAG Loadings 1.4E-03 1.2E-03 1.0E-03 8.0E-04 6.0E-04 4.0E-04 2.0E-04 0.0E+00 3µL C1 6µL C1 9µL C1 12µL C1 3µL C3 6µL C3 9µL C3 12µL C3 3µL C8 6µL C8 9µL C8 12µL C8 3µL C18 6µL C18 9µL C18 12µL C18 Figure A.4: The image is a plot of the molar magnetic susceptibilities versus the different volumes of each magnetic sample added to the 37 µL of Nafion. A.2. Mass of Nafion in Films and Mass of SiMag in Magnetic Films The inconsistencies found with the magnetic susceptibility measurements in Section A.1 led to experimental attempts to determine the different mass components of each material by thermal gravimetric analysis (TGA). Specifically, the goal was to determine several things about the masses of SiMag solutions and Nafion suspensions that contain volatile liquids, such as alcohols and water. First, to identify the amount of volatiles evaporating to leave a dry solid film from Nafion solution and second to identify where what mass percent of organic surface coatings are present on the different SiMag Fe2O3 samples. 235 Figure A.5: The image is the drying and air combustion of a 20 µL aliquot of Nafion solution by TGA. The inset image is focused on the mass plateau from 50 <sup>o</sup> C to 550 <sup>o</sup> C. TGA was performed in an Al pan in air starting with a 2 h hold at ~30 °C followed by 10°C/min ramp rate to 550 °C. As noted in Figure A.5, the liquid Nafion sample was allowed to dry under flowing air at near room temperature for 2 hours. A majority of its mass was lost as solvent during this drying period with ~6 wt% remaining as a solid Nafion polymer film. Upon heating, this film degraded with loss of volatiles in two steps near 300 °C and 350 °C, until complete loss was seen by 450 °C. 236 Figure A.6: The image is the drying of the C1 SiMag sample (aliquot from bottle?). The inset image is focused on the mass plateau from 50 <sup>o</sup> C to 550 <sup>o</sup> C. Initial drying step in flowing air was performed for 1 hr, followed by a 10 °C/min ramp to 550 °C. In a similar fashion, the C1 SiMag sample was dried on the TGA, resulting in solvent loss and the solid after evaporation was ~16.5 wt% of the original solution. This coated Fe2O3 sample was then heated in flowing air to 550 °C. As shown in Figure A.6, there is only a small mass loss upon heating starting near 250 °C, which can be attributed to loss of the organic C1 capping groups (about 5% of the dry solid iron oxide mass). 237 Figure A.7: The image is the drying of the C3 SiMag sample. The inset image is focused on the mass plateau from 50 <sup>o</sup> C to 550 <sup>o</sup> C. Figure A.8: The image is the drying of the C8 SiMag sample. The inset image is focused on the mass plateau from 50 <sup>o</sup> C to 550 <sup>o</sup> C. In contrast to the C1 TGA data, the C3 and C8 TGA results show higher levels of solvent present in the initial liquid aliquots of ~10 microliters, with only 10 wt% and 5 238 wt% mass remaining after the solvent drying step for C3 and C8 samples, respectively. This lower solid mass led to lower recorded changes in solid mass during the air heating step to 550 °C (see insets of Figures A.7 and A.8). Follow-up studies are desirable to determine if these commercial samples are more dilute in magnetic particle content versus the C1 SiMag sample or whether aggregation led to some precipitation in the C3 and C8 bottles so less sample was transferred to the TGA pan. In future work, the Fe2O3 masses and Nafion dry masses that are derived from TGA results can be integrated with the measured dry mass of the Nafion/SiMag Fe2O3 particle films on the glass slides to quantitively determine Fe2O3 mass on the slides that are measured for their magnetic susceptibility. Such analyses may identify why C1 samples show concentration dependent behavior in contrast to C3 and C8 samples. 239 APPENDIX B: IDEAS FOR A NON-AQUEOUS REFERENCE ELECTRODE There are several reference electrodes that perform well in aqueous solutions, however non-aqueous reference electrodes are rare and only perform in specific electrolytes. This Appendix explains a novel method towards a non-aqueous reference electrode by using the differences of two reference electrodes to provide a constant and stable reference electrode for all electrolytes. B.1. Circuit Figure B.1: The image displays the microprocessing circuit programed to take the difference of two incoming potentials. The circuit was produced, by Mike Estenson (resident electrical engineer for the University of Iowa). The red and black clips are used to connect the two reference electrodes, independently. The metal post, shown in the lower left of the circuit board in Figure B.1, is used to connect the board to the reference electrode lead of the potentiostat. The circuit requires a dual voltage power supply to correctly operate the microprocessor and in order to take the difference between the two reference electrode potentials. The capacitors and resistors to the right of the circuit in Figure B.1 are used to maintain and 240 stabilize the incoming voltage to the microprocessor. The microprocessor is programmed to take the difference between the two reference electrode potentials. Finding the correct resistance for operation is required, as different resistors, shown to the left of the microprocessor in Figure B.1, will change the position of the redox reaction potentials measured and reported by the potentiostat. The red light signifies power is being supplied correctly to the circuit from the external dual voltage power supply. B.2. Fritted Tubes Figure B.2: The image displays fritted glass tubes with penetrable caps to allow for the insertion of the metal wires of the reference electrodes. Fritted tubes were manufactured by Benj Revis (resident scientific glassblower for the Department of Chemistry at the University of Iowa). Fritted tubes are used to separate the electrolyte in the tubes from the electrolyte of the electrochemical cell. The tubes house the reference electrolytes and the reference electrode reactions. The fritted ends allow electrical connection by creating a junction potential between the two electrolyte interfaces, this potential is the reference potential for each specific reference electrode reaction. 241 B.3. Choosing a Metal and an Electrolyte ## Chloride ( Cl- ) as the common anion from (KCl) <u>Compound</u> <u>Formula</u> <u>Ksp (25 °C)</u> <u>Lead (II) Chloride</u> <u>PbCl2</u> <u>1.70 ? 10−5</u> <u>Mercury (I) Chloride</u> <u>Hg2Cl2</u> <u>1.43 ? 10−18</u> <u>Silver (I) Chloride</u> <u>AgCl</u> <u>1.77 ? 10−10</u> ## Bromide ( Br- ) as the common anion from (KBr) <u>Compound</u> <u>Formula</u> <u>Ksp (25 °C)</u> <u>Lead (II) Bromide</u> <u>PbBr2</u> <u>6.60 ? 10−6</u> <u>Mercury (I) Bromide</u> <u>Hg2Br2</u> <u>6.40 ? 10−23</u> <u>Silver (I) Bromide</u> <u>AgBr</u> <u>5.35 ? 10−13</u> ## Iodide ( I- ) as the common anion from (KI) <u>Compound</u> <u>Formula</u> <u>Ksp (25 °C)</u> <u>Lead (II) Iodide</u> <u>PbI2</u> <u>9.80 ? 10−9</u> <u>Mercury (I) Iodide</u> <u>Hg2I2</u> <u>5.20 ? 10−29</u> <u>Silver (I) Iodide</u> <u>AgI</u> <u>8.52 ? 10−17</u> ## Sulfate ( SO42- ) as the common anion from (Na2SO4) <u>Compound</u> <u>Formula</u> <u>Ksp (25 °C)</u> <u>Lead (II) Sulfate</u> <u>PbSO4</u> <u>2.53 ? 10−8</u> <u>Mercury (I) Sulfate</u> Hg2SO4 <u>6.50 ? 10−7</u> <u>Silver (I) Sulfate</u> Ag2SO4 <u>1.20 ? 10−5</u> ## Carbonate ( CO32- ) as the common anion from (Na2CO3) <u>Compound</u> Formula <u>Ksp (25 °C)</u> <u>Lead (II) Carbonate</u> PbCO3 <u>7.40 ? 10−14</u> <u>Mercury (I) Carbonate</u> Hg2CO3 <u>3.60 ? 10−17</u> <u>Silver (I) Carbonate</u> <u>Ag2CO3</u> <u>8.46 ? 10−12</u> ## Oxalate ( C2O42- ) as the common anion from (Na2C2O4) Compound <u>Formula</u> Ksp (25 °C) <u>Lead (II) Oxalate</u> <u>PbC2O4</u> <u>8.50 ? 10−9</u> <u>Mercury (I) Oxalate</u> <u>Hg2C2O4</u> <u>1.75 ? 10−13</u> <u>Silver (I) Oxalate</u> <u>Ag2C2O4</u> <u>5.40 ? 10−12</u> ## Chromate ( CrO42- ) as the common anion from (Na2CrO4) Compound <u>Formula</u> <u>Ksp (25 °C)</u> Lead (II) Chromate <u>PbCrO4</u> <u>3.00 ? 10−13</u> <u>Silver (I) Chromate</u> <u>Ag2CrO4</u> 1.12 ? 10−12 Figure B.3: The image is a list of common metal/anion mixtures with high Ksp values necessary for reference electrode reactions. 242 In Figure B.3, several metal/anion pairs and their resulting Ksp values are shown. The reference electrode reactions must have metals with high Ksp values with their attached anion for stable reactions required for reference electrodes. It is best to have the same electrolyte in both tubes so only the electrochemical differences of the metals are the only potentials measured. Using different electrolytes will result in different junction potentials for each reaction, presenting a more complicated issue for the circuit to control and utilize. Ru(bpy)32+ vs. SCE at Different Resistances 1.E-04 5.E-05 0.E+00 -5.E-05 -1.E-04 -2.E-04 Ru(bpy)32+ vs. Ag/AgCl at Different Resistances Blank GCE 5,000 K 10,000 K 100,000K 120,000 K 150,000 K 220,000 K 470,000 K -2.E-04 9.E-05 4.E-05 -1.E-05 -6.E-05 -1.E-04 -2.E-04 Blank GCE 5,000 K 10,000 K 100,000K 120,000 K 150,000 K 220,000 K 470,000 K 1200 1000 800 600 400 Potential (mV) vs. SCE 1300 1200 1100 1000 900 800 Potential (mV) vs. Ag/AgCl Figure B.4: The two images are run with a bare 0.44 cm <sup>2</sup> glassy carbon electrode with just one reference electrode (Ag/AgCl or SCE) attached to the circuit board with different resistors. The resistors changed the measured potential of 1 mM Ru(bpy)3 <sup>2+</sup> in N2 blanketed 0.1 M HNO3 after 15 minutes of direct purging through a glass frit prior to experiments. Preliminary tests of the new circuit with a commercially available glassy carbon working electrode, either a silver/silver chloride or a saturated calomel reference electrode, and 1 mM Ru(bpy)3 <sup>2+</sup> in N2 blanketed 0.1 M HNO3 after 15 minutes of direct purging through a glass frit. The circuit never produced a usable signal for the potentiostat when both reference electrodes were connected and run through the microprocessor. As shown in Figure B.4, when only one, either the silver/silver chloride 243 or the saturated calomel reference electrode was used, the measure potential position for the electron transfer of Ru(bpy)3 <sup>2+</sup> changed asymmetrically when different resistors were placed in the circuit. Significant work is left on this project, (1) the microprocessor did not appear to be able to process the two voltages or more research is necessary to get the two reference electrodes to communicate and subtract through the microprocessor, (2) the resistors provided fine tuning options to control the potential, (3) the glass fritted electrode housings were produced, however the work stopped prior to producing any reference electrodes. The list in Figure B.3 shows that the metal chloride solutions present a good starting point for the reference electrode electrolyte and production, prior to moving onto more complicated electrolytes. 244 APPENDIX C: VBA PROGRAM FOR HER AND OER DATA PROCESSING The HER and OER Data Processing Program presented in this appendix utilizes Microsoft Excel along with the installation of the Visual Basic for Applications (VBA) Add-in found in the Analysis ToolPak of Excel Options. The data processing program is detailed in separate sections as the program operates with user input as well as data from text (.txt) files, and/or comma separated variable (.csv) files, which are provided by most potentiostat software. When the program is opened, the user is met with a Command Button that is located on a Sheet named InputUserForm. When the user clicks the button, the program begins with the initiation of forms, called UserForms, which are designed and written to obtain input data from the user that the program will use while processing. C.1. UserForms and InputBoxes Figure C.1: The image displays the Button options of the first UserForm of the program. After the user clicks the Command Button on the InputUserForm Sheet, a UserForm, shown in Figure C.1 will open, which provides a list of different options that are controlled by Buttons (“Yes” or “No”). Depending on the Button choice, certain functions will or will not be performed while processing the data. By choosing “Yes” for 245 the Manual iR Compensation option and by clicking “OK”, another UserForm opens to offer options for the manual iR compensation. If “No” was chosen, the main UserForm, shown in Figure C.4 will open. Figure C.2: The left image is a UserForm for entering the percentage of iR compensation to be applied, and a choice for the user to use an average resistance value for all runs or apply an individual resistance value for each run. The right image is an InputBox that accepts the average/single resistance value that is to be compensated. When the Manual iR Compensation “Yes” option is chosen, it launches the UserForm shown in Figure C.2 . If the “Average” option is chosen an InputBox, shown in the right image of Figure C.2, opens to accept the single resistance value from the user to be applied to all files and therefore runs. Figure C.3: The left image is a UserForm for entering the percentage of iR compensation to be applied, and a choice for the user to use an average/single resistance value for all runs or apply an individual resistance value for each run. The right image is an InputBox that accepts the average/single resistance value that is to be compensated. If the “Individual” option is chosen for Manual iR Compensation, a UserForm, shown in the left image of Figure C.3, first opens to warn the user about the number of 246 times a resistance value must be entered, and then by clicking “Yes”, an InputBox, see the middle image of Figure C.3, opens for the user to input the number of files to be entered for processing and after entering a number, individual InputBoxes, as shown in the right image of Figure C.3, opens to enter the individual resistance values. Figure C.4: The left image represents a user picked sample (10% Pt-C) and the autofill that occurs when HER is selected, the Tafel analysis option was not selected. The right image represents a user picked sample (RuO2) and the autofill that occurs when OER is selected, the Tafel analysis option was selected opening those options. The autofill is simply edited by typing different values in the boxes. Once the user is beyond the resistance options, the main UserForm opens, as shown in the two images of Figure C.4 . At the time of this thesis, the program was built to process BAS and Pine potentiostat data, and the program separately processes HER and OER data that is stored by potentiostat software in .txt and .csv files. 247 C.2. UserForm Codes The information entered by a user into any UserForm is only stored while the UserForm is open, therefore an Excel Sheet must be used to store the input variables for future use or examination. During processing with this program, the Sheet named StoredInfo(HIDDEN) is made visible as the program requires, and then it is hidden after processing is complete. The user can unhide the Sheet to see the stored information any time after processing is complete. C.2.1. BeginForm Code The code for the BeginForm, shown in Figure C.1, uses the input from the Buttons and based on the user’s choices, specifies which secondary programs will run after the primary importing program. Private Sub CancelButton_Click() Unload Me End Sub Private Sub OKButton_Click() BeginForm.Hide If iRYesOptButton = True Then iRCompForm.Show Else InputParametersUserForm.Show End If End Sub Public Sub UserForm_Initialize() With BeginForm .Width = 165.2 .Height = 293.3 .StartupPosition = 0 .Top = Application.Top + 165 .Left = Application.Left + 350 .Zoom = 100 End With AvgOptionButton1 = True FTafOptionButton1 = True OverOptionButton1 = True iRNoOptButton = True ExitOptionButton2.Value = True End Sub 248 C.2.2. iRCompForm Code The code for the iRCompForm shown in the left image of Figure C.2 determines which option the user chose, Average or Individual, as well as the percentage of the iR compensation to be applied to the resistance value that will be requested after clicking OK. The code for the InputBox shown in the right image of Figure C.2, is found at the 14 <sup>th</sup> line of code below, it will only open when the Average option is selected. The UserForm, named IndiRForm, shown in the left image of Figure C.3, will only open if the Manual option is selected. The code for the InputBoxes shown in the middle and right images of Figure C.3, is found on the 31 <sup>st</sup> and 40 <sup>th</sup> lines of code respectively. Private Sub CancelButton_Click() iRCompForm.Hide BegFormInitialize Unload Me End Sub Private Sub OKButton_Click() Application.ScreenUpdating = False iRCompForm.Hide If avgiROptButton = True Then Worksheets("StoredInfo(HIDDEN)").Range("B18").Value = "Individual iR Option" Worksheets("StoredInfo(HIDDEN)").Range("C18").Value = False Worksheets("StoredInfo(HIDDEN)").Range("F12").Value = iRPerCompTextBox.Value Dim avgiRVal As String avgiRVal = InputBox("Enter the average resistance for iR Compensation") If avgiRVal = "" Then iRCompForm.Hide BegFormInitialize Exit Sub End If Worksheets("StoredInfo(HIDDEN)").Range("B20").Value = "Average resistance for iR Comp" Worksheets("StoredInfo(HIDDEN)").Range("C20").Value = avgiRVal ElseIf indiROptButton = True Then Worksheets("StoredInfo(HIDDEN)").Range("B18").Value = "Individual iR Option" Worksheets("StoredInfo(HIDDEN)").Range("C18").Value = True Worksheets("StoredInfo(HIDDEN)").Range("F12").Value = iRPerCompTextBox.Value IndiRForm.Show If Worksheets("StoredInfo(HIDDEN)").Range("F2").Value = "No" Then iRCompForm.Show ElseIf Worksheets("StoredInfo(HIDDEN)").Range("F2").Value = "Yes" Then Dim iRrunVal, indiRVal As String iRrunVal = InputBox("How many data files will be processed?") If iRrunVal = "" Then iRCompForm.Hide BegFormInitialize Exit Sub End If Worksheets("StoredInfo(HIDDEN)").Range("E4").Value = "iRrunVal" Worksheets("StoredInfo(HIDDEN)").Range("F4").Value = iRrunVal For i = 1 To iRrunVal indiRVal = InputBox("Enter the individual resistance for iR Compensation for Run " & i & ".") If indiRVal = "" Then iRCompForm.Hide BegFormInitialize Exit Sub End If 249 Worksheets("StoredInfo(HIDDEN)").Range("B" & i + 19).Value = "Resistance for Run " & i Worksheets("StoredInfo(HIDDEN)").Range("C" & i + 19).Value = indiRVal Next i End If End If Worksheets("Overall Results").Shapes("Button 3").Visible = False If Worksheets("Raw LSV Data").Range("D5") <> "" And Worksheets("StoredInfo(HIDDEN)").Range("F26").Value = True Then Worksheets("StoredInfo(HIDDEN)").Range("F26").Value = "False" iRCompImport2 ElseIf Worksheets("Raw LSV Data").Range("D5") = "" And Worksheets("StoredInfo(HIDDEN)").Range("F26").Value = False Then InputParametersUserForm.Show End If Application.ScreenUpdating = False End Sub Public Sub UserForm_Initialize() With BeginForm .Width = 340 .Height = 176 .StartupPosition = 0 .Top = Application.Top + 165 .Left = Application.Left + 350 .Zoom = 100 End With avgiROptButton = True End Sub Public Sub BegFormInitialize() With BeginForm .Width = 165.2 .Height = 293.3 .StartupPosition = 0 .Top = Application.Top + 165 .Left = Application.Left + 350 .Zoom = 100 End With BeginForm.Show End Sub C.2.3. IndiRForm Code The code for the IndiRForm shown in the left image of Figure C.3 is quite simple as it only has a few options based on the Yes or No buttons being clicked by the user. Once the user clicks Yes, the middle and right InputBoxes of Figure C.3 will open accordingly and as many times as the user stated by the middle InputBox of Figure C.3 . Private Sub NoButton_Click() Worksheets("StoredInfo(HIDDEN)").Range("E2").Value = "Continue with Individual resistance" Worksheets("StoredInfo(HIDDEN)").Range("F2").Value = "No" IndiRForm.Hide BegFormInitialize2 Unload Me End Sub Private Sub YesButton_Click() Worksheets("StoredInfo(HIDDEN)").Range("E2").Value = "Continue with Individual resistance" Worksheets("StoredInfo(HIDDEN)").Range("F2").Value = "Yes" IndiRForm.Hide End Sub Public Sub BegForm_Initialize2() With BeginForm .Width = 165.2 .Height = 293.3 .StartupPosition = 0 .Top = Application.Top + 165 .Left = Application.Left + 350 250 .Zoom = 100 End With BeginForm.Show End Sub C.2.4. InputParametersUserForm Code The largest and main UserForm is named InputParametersUserForm and is shown in the images of Figure C.4 . This UserForm has a significant amount of code due to the amount of user input being requested for processing. The user inputs are mostly broken down into separate functions called Subs and when the OK button is selected on this UserForm, the Public Sub OKButton_Click() runs which begins the moving and storage of the user input values. Other Subs are called by specific names, for example Importxt, FullTafPlot, and AvgData, are coded in separate Subs called Modules which are explained after the code below. Public Sub ParticleComboBox_Change() partVal = ParticleComboBox.Value End Sub Public Sub DateTextBox_Enter() With DateTextBox .SelStart = 0 .SelLength = Len(.Text) End With Dim dateVal As String dateVal = DateTextBox.Value End Sub Public Sub NotePageTextBox_Enter() With NotePageTextBox .SelStart = 0 .SelLength = Len(.Text) End With Dim notpgVal As String notpgVal = NotePageTextBox.Value End Sub Public Sub LSVComboBox_Change() If LSVComboBox.Value = "OER" Then Curbox1.Value = -0.5 Curbox2.Value = -1 Curbox3.Value = -10 Curbox4.Value = -20 Curbox5.Value = -50 ElectronTextBox.Value = 4 OverPotTextBox1.Value = 1.229 CounterComboBox.Value = "Platinum Mesh (Pt-Mesh)" ReferenceComboBox.Value = "Mercury-Mercurous Oxide (HgO) 20% KOH" ElectrolyteComboBox.Value = "Potassium Hydroxide (KOH)" GasComboBox.Value = "O2" pHTextBox.Value = 13 ConcentrationTextBox.Value = "0.1" WorkingComboBox.Value = "Graphite-Wax Tip (G-Wax)" ElseIf LSVComboBox.Value = "HER" Then Curbox1.Value = 0.5 Curbox2.Value = 1 Curbox3.Value = 10 Curbox4.Value = 20 251 Curbox5.Value = 50 ElectronTextBox.Value = 2 OverPotTextBox1.Value = 0 CounterComboBox.Value = "Platinum Mesh (Pt-Mesh)" ElectrolyteComboBox.Value = "Sulfuric Acid (H2SO4)" ReferenceComboBox.Value = "Saturated Calomel (SCE) Satd. KCl" GasComboBox.Value = "H2" pHTextBox.Value = 0.3 ConcentrationTextBox.Value = 0.5 WorkingComboBox.Value = "Graphite-Wax Tip (G-Wax)" End If End Sub Public Sub ElectronTextBox_Change() With ElectronTextBox .SelStart = 0 .SelLength = Len(.Text) End With Dim eleconVal As String eleconVal = ElectronTextBox.Value End Sub Public Sub WorkingComboBox_Change() If WorkingComboBox.Value = "Graphite-Wax Tip (G-Wax)" Then DiameterTextBox.Value = 3.2 ElseIf WorkingComboBox.Value = "Glassy Carbon (GCE)" Then DiameterTextBox.Value = 7.5 End If End Sub Public Sub DiameterTextBox_Enter() With DiameterTextBox .SelStart = 0 .SelLength = Len(.Text) End With diamVal = DiameterTextBox.Value End Sub Public Sub TipSampleTextBox_Enter() With TipSampleTextBox .SelStart = 0 .SelLength = Len(.Text) End With Dim tipsmplVal As String tipsmplVal = TipSampleTextBox.Value End Sub Public Sub ReferenceComboBox_Change() Sheets("EChem System").Activate If ReferenceComboBox.Value = "Saturated Calomel (SCE) Satd. KCl" Then Worksheets("EChem System").Cells(10, 2) = "241" Worksheets("EChem System").Cells(13, 2) = "E(RHE) = E(SCE) + 0.241V + 0.059pH" End If If ReferenceComboBox.Value = "Silver-Silver Chloride (Ag-AgCl) Satd. KCl" Then Worksheets("EChem System").Cells(10, 2) = "197" Worksheets("EChem System").Cells(13, 2) = "E(RHE) = E(Ag-AgCl) + 0.197V + 0.059pH" End If If ReferenceComboBox.Value = "Mercury-Mercurous Oxide (HgO) 20% KOH" Then Worksheets("EChem System").Cells(10, 2) = "98" Worksheets("EChem System").Cells(13, 2) = "E(RHE) = E(HgO) + 0.098V + 0.059pH" End If End Sub Public Sub ElectrolyteComboBox_Change() Sheets("EChem System").Activate If LSVComboBox.Value = "HER" Then GasComboBox.Value = "H2" ElseIf LSVComboBox.Value = "OER" Then GasComboBox.Value = "O2" End If If ElectrolyteComboBox.Value = "Sulfuric Acid (H2SO4)" Then pHTextBox.Value = 0.3 ConcentrationTextBox.Value = 0.5 Worksheets("EChem System").Cells(21, 5) = "Sulfuric Acid (H2SO4)" Worksheets("EChem System").Cells(21, 5).Characters(Start:=17, Length:=1).Font.Subscript = True Worksheets("EChem System").Cells(21, 5).Characters(Start:=20, Length:=1).Font.Subscript = True ReferenceComboBox.Value = "Saturated Calomel (SCE) Satd. KCl" ElseIf ElectrolyteComboBox.Value = "Potassium Hydroxide (KOH)" Then pHTextBox.Value = 13 ConcentrationTextBox.Value = 0.1 Worksheets("EChem System").Cells(21, 5) = "Potassium Hydroxide (KOH)" 252 ReferenceComboBox.Value = "Mercury-Mercurous Oxide (HgO) 20% KOH" End If If ElectrolyteComboBox.Value = "Phosphate Buffer Solution (PBS)" Then pHTextBox.Value = 6.5 ConcentrationTextBox.Value = 1 Worksheets("EChem System").Cells(21, 5) = "Phosphate Buffer Solution (PBS)" End If If ElectrolyteComboBox.Value = "Sodium Sulfate (Na2SO4)" Then pHTextBox.Value = 6.5 ConcentrationTextBox.Value = 1 Worksheets("EChem System").Cells(21, 5) = "Sodium Sulfate (Na2SO4)" Worksheets("EChem System").Cells(21, 5).Characters(Start:=19, Length:=1).Font.Subscript = True Worksheets("EChem System").Cells(21, 5).Characters(Start:=22, Length:=1).Font.Subscript = True End If End Sub Public Sub pHTextBox_Enter() With pHTextBox .SelStart = 0 .SelLength = Len(.Text) End With End Sub Public Sub GasComboBox_Change() Sheets("EChem System").Activate If GasComboBox.Value = "H2" Then Worksheets("EChem System").Range("C4") = "H2 purge" Worksheets("EChem System").Range("C4").Characters(Start:=2, Length:=1).Font.Subscript = True ElseIf GasComboBox.Value = "N2" Then Worksheets("EChem System").Range("C4") = "N2 purge" Worksheets("EChem System").Range("C4").Characters(Start:=2, Length:=1).Font.Subscript = True ElseIf GasComboBox.Value = "O2" Then Worksheets("EChem System").Range("C4") = "O2 purge" Worksheets("EChem System").Range("C4").Characters(Start:=2, Length:=1).Font.Subscript = True End If End Sub Public Sub adNotOptionButton1_Click() If adNotOptionButton1 = True Then addNotes = InputBox("Input Additional Notes") addNotes1 = addNotes End If End Sub Public Sub MultiOptionButton1_Click() Sheets("EChem System").Activate If MultiOptionButton1 = True Then MultiRun = InputBox("Input Something As A Unique File Identifier: e.g. 1 mV scan rate") MultiRun1 = MultiRun Worksheets("EChem System").Cells(11, 11).Interior.Color = RGB(255, 217, 102) Worksheets("EChem System").Cells(11, 11).Value = "Multiple Name Variations" Worksheets("EChem System").Cells(11, 11).HorizontalAlignment = xlCenter Worksheets("EChem System").Cells(12, 11).Interior.Color = RGB(255, 255, 255) Worksheets("EChem System").Cells(12, 11).Value = MultiRun1 Worksheets("EChem System").Cells(12, 11).HorizontalAlignment = xlCenter With Worksheets("EChem System").Range(Cells(11, 11), Cells(12, 11)).Borders .Weight = xlMedium .Color = RGB(0, 0, 0) End With Else Worksheets("EChem System").Range(Cells(11, 11), Cells(12, 11)).Interior.Color = RGB(0, 0, 0) End If End Sub Public Sub TafelOptionButton1_Click() If TafelOptionButton1.Value = True Then TafelFrame.Visible = False TafelPropFrame.Visible = True PlotRowTextBox.SetFocus With PlotRowTextBox .SelStart = 0 .SelLength = Len(.Text) End With End If End Sub Public Sub AlterRowOptionButton1_Click() If AlterRowOptionButton1.Value = True Then MinLabel.Visible = True MaxLabel.Visible = True MinRowTextBox.Visible = True 253 MaxRowTextBox.Visible = True Else End If End Sub Public Sub OKButton_Click() InputParametersUserForm.Hide Application.ScreenUpdating = False ActiveWorkbook.Sheets("EChem System").Visible = xlSheetVisible earlyCurDens = Curbox1.Value lateCurDens = Curbox2.Value lowCurDens = Curbox3.Value midCurDens = Curbox4.Value highCurDens = Curbox5.Value ovPot = OverPotTextBox1.Value eRef = Worksheets("EChem System").Cells(10, 2).Value pHVal = pHTextBox.Value diamVal = DiameterTextBox.Value Worksheets("StoredInfo(HIDDEN)").Cells(10, 8) = "TafelOptionButton1" Worksheets("StoredInfo(HIDDEN)").Cells(10, 9) = TafelOptionButton1.Value Worksheets("StoredInfo(HIDDEN)").Cells(2, 9).Value = earlyCurDens Worksheets("StoredInfo(HIDDEN)").Cells(3, 9).Value = lateCurDens Worksheets("StoredInfo(HIDDEN)").Cells(4, 9).Value = lowCurDens Worksheets("StoredInfo(HIDDEN)").Cells(5, 9).Value = midCurDens Worksheets("StoredInfo(HIDDEN)").Cells(6, 9).Value = highCurDens Application.CutCopyMode = False If ImportOptionButton1.Value = True Then Chart4.Visible = True Chart5.Visible = True ActiveWorkbook.Sheets("Raw LSV Data").Visible = xlSheetVisible ActiveWorkbook.Sheets("InputUserForm").Visible = False Sheets("Raw LSV Data").Select Cells(25, 2).Value = earlyCurDens & " mA/cm2" Cells(25, 2).Characters(Len(Cells(25, 2).Value), 1).Font.Superscript = True Cells(34, 2).Value = lateCurDens & " mA/cm2" Cells(34, 2).Characters(Len(Cells(34, 2).Value), 1).Font.Superscript = True Cells(43, 2).Value = lowCurDens & " mA/cm2" Cells(43, 2).Characters(Len(Cells(43, 2).Value), 1).Font.Superscript = True Cells(52, 2).Value = midCurDens & " mA/cm2" Cells(52, 2).Characters(Len(Cells(52, 2).Value), 1).Font.Superscript = True Cells(61, 2).Value = highCurDens & " mA/cm2" Cells(61, 2).Characters(Len(Cells(61, 2).Value), 1).Font.Superscript = True Cells(26, 2).Value = earlyCurDens Cells(35, 2).Value = lateCurDens Cells(44, 2).Value = lowCurDens Cells(53, 2).Value = midCurDens Cells(62, 2).Value = highCurDens Cells(28, 2).Value = "Closest value to " & earlyCurDens & " mA/cm2" Cells(28, 2).Characters(Len(Cells(28, 2).Value), 1).Font.Superscript = True Cells(37, 2).Value = "Closest value to " & lateCurDens & " mA/cm2" Cells(37, 2).Characters(Len(Cells(37, 2).Value), 1).Font.Superscript = True Cells(46, 2).Value = "Closest value to " & lowCurDens & " mA/cm2" Cells(46, 2).Characters(Len(Cells(46, 2).Value), 1).Font.Superscript = True Cells(55, 2).Value = "Closest value to " & midCurDens & " mA/cm2" Cells(55, 2).Characters(Len(Cells(55, 2).Value), 1).Font.Superscript = True Cells(64, 2).Value = "Closest value to " & highCurDens & " mA/cm2" Cells(64, 2).Characters(Len(Cells(64, 2).Value), 1).Font.Superscript = True Cells(31, 2).Value = "Potential required for current density of: " & earlyCurDens & " mA/cm2" Cells(31, 2).Characters(Len(Cells(32, 2).Value), 1).Font.Superscript = True Cells(40, 2).Value = "Potential required for current density of: " & lateCurDens & " mA/cm2" Cells(40, 2).Characters(Len(Cells(41, 2).Value), 1).Font.Superscript = True Cells(49, 2).Value = "Potential required for current density of: " & lowCurDens & " mA/cm2" Cells(49, 2).Characters(Len(Cells(50, 2).Value), 1).Font.Superscript = True Cells(58, 2).Value = "Potential required for current density of: " & midCurDens & " mA/cm2" Cells(58, 2).Characters(Len(Cells(59, 2).Value), 1).Font.Superscript = True Cells(67, 2).Value = "Potential required for current density of: " & highCurDens & " mA/cm2" Cells(67, 2).Characters(Len(Cells(68, 2).Value), 1).Font.Superscript = True Dim iRAvgCompOpt, iRIndCompOpt, iRNoOpt As String Worksheets("StoredInfo(HIDDEN)").Cells(14, 5) = "avgiROptButton" Worksheets("StoredInfo(HIDDEN)").Cells(14, 6) = iRCompForm.avgiROptButton.Value iRAvgCompOpt = Worksheets("StoredInfo(HIDDEN)").Cells(14, 6).Value Worksheets("StoredInfo(HIDDEN)").Cells(16, 5) = "indiROptButton" Worksheets("StoredInfo(HIDDEN)").Cells(16, 6) = iRCompForm.indiROptButton.Value iRIndCompOpt = Worksheets("StoredInfo(HIDDEN)").Cells(16, 6).Value Worksheets("StoredInfo(HIDDEN)").Cells(26, 5) = "iRNoOptButton" Worksheets("StoredInfo(HIDDEN)").Cells(26, 6) = BeginForm.iRNoOptButton.Value 254 iRNoOpt = Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value Importxt rngVal = runVal partVal = ParticleComboBox.Value dateVal = DateTextBox.Value notpgVal = NotePageTextBox.Value concVal = ConcentrationTextBox.Value eleconVal = ElectronTextBox.Value blnkVal = BlankTipTextBox.Value tipsmplVal = TipSampleTextBox.Value If BeginForm.AvgOptionButton1 = True Then Worksheets("StoredInfo(HIDDEN)").Cells(10, 3).Value = "True" End If If BeginForm.FTafOptionButton1 = True Then Worksheets("StoredInfo(HIDDEN)").Cells(12, 3).Value = "True" End If If BeginForm.OverOptionButton1 = True Then Worksheets("StoredInfo(HIDDEN)").Cells(14, 3).Value = "True" End If Worksheets("StoredInfo(HIDDEN)").Cells(16, 3).Value = partVal Sheets("EChem System").Activate Cells(3, 2).Value = partVal Cells(3, 11).NumberFormat = "@" Cells(3, 11).Value = dateVal Cells(6, 11).Value = notpgVal Cells(3, 5).Value = PotentComboBox.Value Cells(18, 5).Value = LSVComboBox.Value Cells(15, 5).Value = eleconVal Cells(7, 2).Value = WorkingComboBox.Value Cells(16, 2).Value = diamVal Cells(3, 8).Value = blnkVal Cells(6, 8).Value = tipsmplVal Cells(8, 2).Value = CounterComboBox.Value Cells(9, 2).Value = ReferenceComboBox.Value Cells(27, 5).Value = pHVal Cells(24, 5).Value = concVal Cells(12, 8).Value = runVal Cells(15, 8).Value = OverPotTextBox1.Value Cells(18, 8).Value = addVal & " to " & rngVal Sheets("Raw LSV Data").Select 'Application.ScreenUpdating = False Sheets("Raw LSV Data").Activate If BeginForm.FTafOptionButton1.Value = True Then Chart2.Visible = True Chart2.Activate If TafelOptionButton1.Value = True Then ActiveChart.Shapes("Button 1").Visible = msoFalse ActiveChart.Shapes("Button 3").Visible = msoFalse Else End If If BeginForm.FTafOptionButton1 = True Then FullTafPlot End If If LSVComboBox.Value = "OER" Then Chart2.Activate With Chart2 .ChartType = xlXYScatterLinesNoMarkers .HasTitle = True .ChartTitle.Text = "OER Full Tafel Overlays" .ChartTitle.Font.Size = 36 .ChartTitle.Font.Bold = False .Axes(xlValue).TickLabelPosition = xlTickLabelPositionLow .Axes(xlCategory).TickLabelPosition = xlTickLabelPositionLow .Axes(xlCategory).ReversePlotOrder = False .Axes(xlValue).ReversePlotOrder = False .HasLegend = False With Chart2.Axes(xlCategory) .HasTitle = True With Chart2.Axes(xlCategory).AxisTitle .Text = "log (j/mA cm-2)" .Font.Size = 24 .Characters(13, 2).Font.Superscript = True .Left = 285 .Top = 445 End With 255 End With With Chart2.Axes(xlValue) .HasTitle = True With Chart2.Axes(xlValue).AxisTitle .Characters.Text = "OER Overpotential (V) : RHE" .Font.Size = 24 .Left = 2 .Top = 80 End With End With End With Else Chart2.Activate With Chart2 .ChartType = xlXYScatterLinesNoMarkers .HasTitle = True .ChartTitle.Text = "HER Full Tafel Overlays" .ChartTitle.Font.Size = 36 .ChartTitle.Font.Bold = False .Axes(xlCategory).CrossesAt = xlAutomatic .HasLegend = False With Chart2.Axes(xlCategory) .HasTitle = True With Chart2.Axes(xlCategory).AxisTitle .Text = "log (j/mA cm-2)" .Font.Size = 24 .Characters(13, 2).Font.Superscript = True .Left = 285 .Top = 445 End With End With With Chart2.Axes(xlValue) .HasTitle = True With Chart2.Axes(xlValue).AxisTitle .Characters.Text = "HER Overpotential (V) : RHE" .Font.Size = 24 .Left = 2 .Top = 80 End With End With End With End If End If If BeginForm.AvgOptionButton1.Value = True Then ActiveWorkbook.Sheets("Averaged Data").Visible = xlSheetVisible Chart6.Visible = True Sheets("Averaged Data").Select Cells(2, 3).Value = earlyCurDens & " mA/cm2" Cells(2, 4).Value = lateCurDens & " mA/cm2" Cells(2, 5).Value = lowCurDens & " mA/cm2" Cells(2, 6).Value = midCurDens & " mA/cm2" Cells(2, 7).Value = highCurDens & " mA/cm2" Cells(2, 3).Characters(Len(Cells(2, 3).Value), 1).Font.Superscript = True Cells(2, 4).Characters(Len(Cells(2, 4).Value), 1).Font.Superscript = True Cells(2, 5).Characters(Len(Cells(2, 5).Value), 1).Font.Superscript = True Cells(2, 6).Characters(Len(Cells(2, 6).Value), 1).Font.Superscript = True Cells(2, 7).Characters(Len(Cells(2, 7).Value), 1).Font.Superscript = True Cells(3, 9).Value = earlyCurDens & " mA/cm2" Cells(4, 9).Value = lateCurDens & " mA/cm2" Cells(5, 9).Value = lowCurDens & " mA/cm2" Cells(6, 9).Value = midCurDens & " mA/cm2" Cells(7, 9).Value = highCurDens & " mA/cm2" Cells(3, 9).Characters(Len(Cells(3, 9).Value), 1).Font.Superscript = True Cells(4, 9).Characters(Len(Cells(4, 9).Value), 1).Font.Superscript = True Cells(5, 9).Characters(Len(Cells(5, 9).Value), 1).Font.Superscript = True Cells(6, 9).Characters(Len(Cells(6, 9).Value), 1).Font.Superscript = True Cells(7, 9).Characters(Len(Cells(7, 9).Value), 1).Font.Superscript = True If LSVComboBox.Value = "OER" Then Sheets("Raw LSV Data").Activate Worksheets("Averaged Data").ChartObjects(1).Activate ActiveChart.ChartType = xlXYScatter ActiveChart.ChartTitle.Text = "OER Overpotential, " & ChrW(951) & " vs. Run #" ActiveChart.Axes(xlValue).AxisTitle.Text = "OER Overpotential, " & ChrW(951) & " (mV)" ActiveChart.Axes(xlValue).ReversePlotOrder = False ActiveChart.Axes(xlCategory).TickLabelPosition = xlTickLabelPositionLow 256 ActiveChart.PlotArea.Width = 535 ActiveChart.PlotArea.Height = 235 ActiveChart.PlotArea.Left = 35 ActiveChart.Legend.Left = 600 ActiveChart.Legend.Top = 110 ActiveChart.FullSeriesCollection(1).MarkerStyle = 2 ActiveChart.FullSeriesCollection(2).MarkerStyle = 8 ActiveChart.FullSeriesCollection(3).MarkerStyle = 3 ActiveChart.FullSeriesCollection(4).MarkerStyle = 1 ActiveChart.FullSeriesCollection(5).MarkerStyle = -4118 With ActiveChart.Axes(xlCategory) .AxisTitle.Left = 288 .AxisTitle.Top = 280 .MaximumScale = Sheets("EChem System").Cells(12, 8).Value + 1 .MinimumScale = 0 End With If Worksheets("EChem System").Cells(12, 8).Value <= 20 Then With ActiveChart.Axes(xlCategory) .MinorUnit = 1 .MajorUnit = 1 End With ElseIf Worksheets("EChem System").Cells(12, 8).Value > 20 And Worksheets("EChem System").Cells(12, 8).Value <= 50 Then With ActiveChart.Axes(xlCategory) .MinorUnit = 1 .MajorUnit = 5 End With ElseIf Worksheets("EChem System").Cells(12, 8).Value > 50 And Worksheets("EChem System").Cells(12, 8).Value <= 100 Then With ActiveChart.Axes(xlCategory) .MinorUnit = 5 .MajorUnit = 10 End With End If Sheets("Averaged Data").Range("A1:A1").Select Else Worksheets("Averaged Data").ChartObjects(1).Activate ActiveChart.ChartType = xlXYScatter ActiveChart.ChartTitle.Text = "HER Overpotential, " & ChrW(951) & " vs. Run #" ActiveChart.Axes(xlValue).AxisTitle.Text = "HER Overpotential, " & ChrW(951) & " (mV)" ActiveChart.PlotArea.Width = 535 ActiveChart.PlotArea.Height = 235 ActiveChart.PlotArea.Left = 35 ActiveChart.Legend.Left = 600 ActiveChart.Legend.Top = 110 ActiveChart.FullSeriesCollection(1).MarkerStyle = 2 ActiveChart.FullSeriesCollection(2).MarkerStyle = 8 ActiveChart.FullSeriesCollection(3).MarkerStyle = 3 ActiveChart.FullSeriesCollection(4).MarkerStyle = 1 ActiveChart.FullSeriesCollection(5).MarkerStyle = -4118 With ActiveChart.Axes(xlCategory) .AxisTitle.Left = 288 .AxisTitle.Top = 280 .MaximumScale = Sheets("EChem System").Cells(12, 8).Value + 1 .MinimumScale = 0 End With If Worksheets("EChem System").Cells(12, 8).Value <= 20 Then With ActiveChart.Axes(xlCategory) .MinorUnit = 1 .MajorUnit = 1 End With ElseIf Worksheets("EChem System").Cells(12, 8).Value > 20 And Worksheets("EChem System").Cells(12, 8).Value <= 50 Then With ActiveChart.Axes(xlCategory) .MinorUnit = 1 .MajorUnit = 5 End With ElseIf Worksheets("EChem System").Cells(12, 8).Value > 50 And Worksheets("EChem System").Cells(12, 8).Value <= 100 Then With ActiveChart.Axes(xlCategory) .MinorUnit = 5 .MajorUnit = 10 End With End If Sheets("Averaged Data").Range("A1:A1").Select End If Sheets("Raw LSV Data").Activate AvgData Sheets("Raw LSV Data").Activate 257 avgData_1 avgDataPlt End If Sheets("Raw LSV Data").Activate CurDensPlt curDensPlt2 Sheets("Raw LSV Data").Activate If LSVComboBox.Value = "OER" Then With Chart4 .HasTitle = True .ChartTitle.Text = "OER Current Density Overlays" .ChartTitle.Font.Size = 32 .ChartTitle.Top = 0 .ChartTitle.Font.Bold = False .HasLegend = False End With With Chart4.Axes(xlCategory) .HasTitle = True With Chart4.Axes(xlCategory).AxisTitle .Text = "Potential (mV) : RHE" .Font.Size = 24 .Left = 225 .Top = 452.636 End With End With ElseIf LSVComboBox.Value = "HER" Then With Chart4 .HasTitle = True .ChartTitle.Text = "HER Current Density Overlays" .ChartTitle.Font.Size = 32 .ChartTitle.Top = 0 .ChartTitle.Font.Bold = False .HasLegend = False End With With Chart4.Axes(xlCategory) .HasTitle = True With Chart4.Axes(xlCategory).AxisTitle .Text = "Potential (mV) : RHE" .Font.Size = 24 .Left = 225 .Top = 452.636 End With End With End If With Chart4.Axes(xlValue) .HasTitle = True With Chart4.Axes(xlValue).AxisTitle .Characters.Text = "Current Density (mA cm-2)" .Font.Size = 24 .Characters(23, 2).Font.Superscript = True .Left = 2 .Top = 95.205 End With End With End If plotVal = PlotRowTextBox.Value correlVal = CorrelTextBox.Value minVal = MinRowTextBox.Value Worksheets("StoredInfo(HIDDEN)").Cells(18, 5) = "minVal" Worksheets("StoredInfo(HIDDEN)").Cells(18, 6) = minVal maxVal = MaxRowTextBox.Value Worksheets("StoredInfo(HIDDEN)").Cells(20, 5) = "maxVal" Worksheets("StoredInfo(HIDDEN)").Cells(20, 6) = maxVal accVal = accTextBox.Value Sheets("EChem System").Activate Cells(21, 8).Value = plotVal Cells(24, 8).Value = correlVal Cells(27, 8).Value = accVal If TafelOptionButton1.Value = True Then ActiveWorkbook.Sheets("Tafel Info").Visible = xlSheetVisible Tafel If LSVComboBox.Value = "OER" Then Worksheets("Tafel Info").ChartObjects(1).Activate With ActiveChart .ChartTitle.Text = "OER Tafel Overlays" 258 .Axes(xlValue).AxisTitle.Characters.Text = "OER Overpotential (V) : RHE" .Axes(xlValue).TickLabelPosition = xlTickLabelPositionHigh .Axes(xlCategory).ReversePlotOrder = True End With End If If BeginForm.OverOptionButton1.Value = True Then ActiveWorkbook.Sheets("Overall Results").Visible = xlSheetVisible Sheets("Overall Results").Select Cells(4, 2).Value = Worksheets("Raw LSV Data").Cells(31, 2).Value Cells(7, 2).Value = Worksheets("Raw LSV Data").Cells(40, 2).Value Cells(10, 2).Value = Worksheets("Raw LSV Data").Cells(49, 2).Value Cells(13, 2).Value = Worksheets("Raw LSV Data").Cells(58, 2).Value Cells(4, 2).Characters(Len(Cells(4, 2).Value), 1).Font.Superscript = True Cells(7, 2).Characters(Len(Cells(7, 2).Value), 1).Font.Superscript = True Cells(10, 2).Characters(Len(Cells(10, 2).Value), 1).Font.Superscript = True Cells(13, 2).Characters(Len(Cells(13, 2).Value), 1).Font.Superscript = True Results End If ElseIf TafelOptionButton1.Value = False Then If BeginForm.OverOptionButton1.Value = True Then ActiveWorkbook.Sheets("Overall Results").Visible = xlSheetVisible Sheets("Overall Results").Select Cells(4, 2).Value = Worksheets("Raw LSV Data").Cells(31, 2).Value Cells(7, 2).Value = Worksheets("Raw LSV Data").Cells(40, 2).Value Cells(10, 2).Value = Worksheets("Raw LSV Data").Cells(49, 2).Value Cells(13, 2).Value = Worksheets("Raw LSV Data").Cells(58, 2).Value Cells(4, 2).Characters(Len(Cells(4, 2).Value), 1).Font.Superscript = True Cells(7, 2).Characters(Len(Cells(7, 2).Value), 1).Font.Superscript = True Cells(10, 2).Characters(Len(Cells(10, 2).Value), 1).Font.Superscript = True Cells(13, 2).Characters(Len(Cells(13, 2).Value), 1).Font.Superscript = True results_0 End If End If Sheets("Raw LSV Data").Activate Update Sheets("Raw LSV Data").Activate If adNotOptionButton1 = True Then With Sheets("EChem System").Select Selection.Cells(30, 2).Interior.Color = RGB(112, 48, 160) Selection.Range(Cells(30, 2), Cells(30, 11)).Merge Selection.Range(Cells(30, 2), Cells(30, 11)).HorizontalAlignment = xlCenter Selection.Cells(31, 2).Interior.Color = RGB(255, 255, 255) Selection.Range(Cells(31, 2), Cells(34, 11)).Merge Selection.Range(Cells(31, 2), Cells(34, 11)).WrapText = True Selection.Range(Cells(31, 2), Cells(34, 11)).HorizontalAlignment = xlCenter Selection.Range(Cells(31, 2), Cells(34, 11)).VerticalAlignment = xlCenter Selection.Cells(31, 2) = addNotes1 End With ElseIf adNotOptionButton2 = True Then With Sheets("EChem System").Select Selection.Range(Cells(30, 2), Cells(34, 11)).Interior.Color = RGB(0, 0, 0) End With End If If iRNoOpt = False And iRAvgCompOpt = True Or iRNoOptButton = False And iRIndCompOpt = True Then iRCompImport End If Sheets("EChem System").Activate SavFil If exportOptionButton1 = True Then Export If Worksheets("StoredInfo(HIDDEN)").Range("I16").Value = True Then TafExport2 End If WorDoc End If Unload Me Dim sht As Worksheet, csheet As Worksheet Set csheet = ActiveSheet For Each sht In ActiveWorkbook.Worksheets If sht.Visible Then sht.Activate Range("A1").Select ActiveWindow.ScrollRow = 1 ActiveWindow.ScrollColumn = 1 End If 259 Next sht Application.CutCopyMode = False Dim OverOpt As String Worksheets("StoredInfo(HIDDEN)").Cells(14, 3) = BeginForm.OverOptionButton1.Value OverOpt = Worksheets("StoredInfo(HIDDEN)").Cells(14, 3).Value Sheets("EChem System").Activate ThisWorkbook.Worksheets("StoredInfo(HIDDEN)").Cells.EntireColumn.AutoFit Unload BeginForm Application.ScreenUpdating = True If lsvVal = "HER" And Worksheets("StoredInfo(HIDDEN)").Range("F26") = "True" And TafelOptionButton1.Value = False Then Application.Speech.Speak "H E R and import processing is complete on" & runVal & "files. Please wait for the program to reopen before continuing." ElseIf lsvVal = "HER" And Worksheets("StoredInfo(HIDDEN)").Range("F26") = "True" And TafelOptionButton1.Value = True Then Application.Speech.Speak "H E R, import, and Tafel processing is complete on" & runVal & "files. Please wait for the program to reopen before continuing." ElseIf lsvVal = "HER" And Worksheets("StoredInfo(HIDDEN)").Range("F26") = "False" And TafelOptionButton1.Value = True Then Application.Speech.Speak "H E R, import, i R compensation, and Tafel processing is complete on" & runVal & "files. Please wait for the program to reopen before continuing." ElseIf lsvVal = "HER" And Worksheets("StoredInfo(HIDDEN)").Range("F26") = "False" And TafelOptionButton1.Value = False Then Application.Speech.Speak "H E R, import, and i R compensation processing is complete on" & runVal & "files. Please wait for the program to reopen before continuing." ElseIf lsvVal = "OER" And Worksheets("StoredInfo(HIDDEN)").Range("F26") = "True" And TafelOptionButton1.Value = False Then Application.Speech.Speak "O E R and import processing is complete on" & runVal & "files. Please wait for the program to reopen before continuing." ElseIf lsvVal = "OER" And Worksheets("StoredInfo(HIDDEN)").Range("F26") = "True" And TafelOptionButton1.Value = True Then Application.Speech.Speak "O E R, import, and Tafel processing is complete on" & runVal & "files. Please wait for the program to reopen before continuing." ElseIf lsvVal = "OER" And Worksheets("StoredInfo(HIDDEN)").Range("F26") = "False" And TafelOptionButton1.Value = True Then Application.Speech.Speak "O E R, import, i R compensation, and Tafel processing is complete on" & runVal & "files. Please wait for the program to reopen before continuing." ElseIf lsvVal = "OER" And Worksheets("StoredInfo(HIDDEN)").Range("F26") = "False" And TafelOptionButton1.Value = False Then Application.Speech.Speak "O E R, import, and i R compensation processing is complete on" & runVal & "files. Please wait for the program to reopen before continuing." End If If ExitOptionButton1 Then Application.Quit End If reopen End Sub Public Sub ClearButton_Click() Call UserForm_Initialize End Sub Public Sub CancelButton_Click() Call UserForm_Initialize Unload Me End Sub Public Sub UserForm_Initialize() With InputParametersUserForm .Width = 540 .Height = 450 .StartupPosition = 0 .Zoom = 100 .Top = Application.Top + 165 .Left = Application.Left + 280 End With With ParticleComboBox .AddItem "Blank (carb-wx)" .AddItem "10 Pt-C (comm_Etek)" .AddItem "20 Pt-C (comm_Etek)" .AddItem "CoP3" .AddItem "CuP2" .AddItem "FeP2" .AddItem "c-NiP2" .AddItem "m-NiP2" .AddItem "NiP3" .AddItem "Ni5P4" .AddItem "Ni2P" .AddItem "CoPS3" .AddItem "Cu3PS4" .AddItem "FePS3" .AddItem "c-NiPS3" .AddItem "m-NiPS3" .AddItem "Co3O4" .AddItem "NiO" .AddItem "RuO2 (comm_anhyd)" 260 End With With LSVComboBox .AddItem "HER" .AddItem "OER" End With With PotentComboBox .AddItem "BAS 100b" ' .AddItem "CHI 760b" End With With WorkingComboBox .AddItem "Graphite-Wax Tip (G-Wax)" .AddItem "Glassy Carbon (GCE)" End With With CounterComboBox .AddItem "Platinum Mesh (Pt-Mesh)" .AddItem "Carbon Rod (CR)" .AddItem "Carbon Paper (CP)" .AddItem "Carbon Cloth (CC)" End With With ReferenceComboBox .AddItem "Saturated Calomel (SCE) Satd. KCl" .AddItem "Silver-Silver Chloride (Ag-AgCl) Satd. KCl" .AddItem "Mercury-Mercurous Oxide (HgO) 20% KOH" End With With ElectrolyteComboBox .AddItem "Sulfuric Acid (H2SO4)" .AddItem "Potassium Hydroxide (KOH)" .AddItem "Phosphate Buffer Solution (PBS)" .AddItem "Sodium Sulfate (Na2SO4)" End With With GasComboBox .AddItem "H2" .AddItem "N2" .AddItem "O2" End With ParticleComboBox.SetFocus ImportOptionButton1.Value = True MultiOptionButton2 = True adNotOptionButton2 = True exportOptionButton1 = True TafelOptionButton2.Value = True AlterRowOptionButton2.Value = True TafelPropFrame.Visible = False MinLabel.Visible = False MaxLabel.Visible = False MinRowTextBox.Visible = False MaxRowTextBox.Visible = False End Sub Public Sub MinRowTextBox_Enter() With MinRowTextBox .SelStart = 0 .SelLength = Len(.Text) End With End Sub Public Sub MaxRowTextBox_Enter() With MaxRowTextBox .SelStart = 0 .SelLength = Len(.Text) End With End Sub Public Sub Update() Application.ScreenUpdating = False Worksheets("EChem System").Activate With Worksheets("EChem System") If Len(InputParametersUserForm.ParticleComboBox.Value) > 0 Then .Cells(3, 2).Value = InputParametersUserForm.ParticleComboBox.Value ElseIf Len(InputParametersUserForm.DateTextBox.Value) > 0 Then .Cells(3, 11).Value = InputParametersUserForm.DateTextBox.Value ElseIf Len(InputParametersUserForm.NotePageTextBox.Value) > 0 Then .Cells(6, 11).Value = InputParametersUserForm.NotePageTextBox.Value ElseIf Len(InputParametersUserForm.BlankTipTextBox.Value) > 0 Then .Cells(3, 8).Value = InputParametersUserForm.BlankTipTextBox.Value ElseIf Len(InputParametersUserForm.TipSampleTextBox.Value) > 0 Then .Cells(6, 8).Value = InputParametersUserForm.TipSampleTextBox.Value End If 261 End With Application.ScreenUpdating = False End Sub C.3. Code for Modules A Module is a Sub or a collection of Subs written to breakup long lines of code that take input from UserForms and/or Cells when directed. The Modules are the Macros that are visible in the list under the View heading of Excel. The Module codes are listed as they appear in VBA, which is alphabetical, therefore they are mentioned in a different order than how the program will call them. The Modules may be called in lines of code that are explained after the specific Modules were introduced. C.3.1. AvgDataMod Code The AvgData and avgDataPlt Subs are used to process the potentiostat data into the Averaged Data Sheet and Average Plot Chart shown in Figure C.5 and Figure C.6 . Figure C.5: The image is an example of data that has been processed with the AvgData Sub that is placed into the Sheet named Averaged Data. Public Sub AvgData() Application.ScreenUpdating = False i = 2 For j = 3 To Worksheets("EChem System").Cells(12, 8).Value + 2 Step 1 262 Worksheets("Averaged Data").Cells(j, 2) = Worksheets("Raw LSV Data").Cells(2, i).Value Worksheets("Averaged Data").Cells(j, 2).Interior.Color = RGB(255, 255, 255) With Worksheets("Averaged Data").Cells(j, 2).Borders .Weight = xlMedium .Color = RGB(0, 0, 0) End With Worksheets("Averaged Data").Cells(j, 3) = Worksheets("Raw LSV Data").Cells(32, i).Value Worksheets("Averaged Data").Cells(j, 3).Interior.Color = RGB(255, 255, 255) With Worksheets("Averaged Data").Cells(j, 3).Borders .Weight = xlMedium .Color = RGB(0, 0, 0) End With Worksheets("Averaged Data").Cells(j, 4) = Worksheets("Raw LSV Data").Cells(41, i).Value Worksheets("Averaged Data").Cells(j, 4).Interior.Color = RGB(255, 255, 255) With Worksheets("Averaged Data").Cells(j, 4).Borders .Weight = xlMedium .Color = RGB(0, 0, 0) End With Worksheets("Averaged Data").Cells(j, 5) = Worksheets("Raw LSV Data").Cells(50, i).Value Worksheets("Averaged Data").Cells(j, 5).Interior.Color = RGB(255, 255, 255) With Worksheets("Averaged Data").Cells(j, 5).Borders .Weight = xlMedium .Color = RGB(0, 0, 0) End With Worksheets("Averaged Data").Cells(j, 6) = Worksheets("Raw LSV Data").Cells(59, i).Value Worksheets("Averaged Data").Cells(j, 6).Interior.Color = RGB(255, 255, 255) With Worksheets("Averaged Data").Cells(j, 6).Borders .Weight = xlMedium .Color = RGB(0, 0, 0) End With Worksheets("Averaged Data").Cells(j, 7) = Worksheets("Raw LSV Data").Cells(68, i).Value Worksheets("Averaged Data").Cells(j, 7).Interior.Color = RGB(255, 255, 255) With Worksheets("Averaged Data").Cells(j, 7).Borders .Weight = xlMedium .Color = RGB(0, 0, 0) End With i = i + 11 Next j Application.ScreenUpdating = False End Sub Public Sub avgData_1() Application.ScreenUpdating = False For j = 3 To Worksheets("EChem System").Cells(12, 8).Value + 3 Step 1 Worksheets("Averaged Data").Cells(3, 10) = Application.AverageIf(Worksheets("Averaged Data").Range("C3:C" & j), "<>0") Worksheets("Averaged Data").Cells(4, 10) = Application.AverageIf(Worksheets("Averaged Data").Range("D3:D" & j), "<>0") Worksheets("Averaged Data").Cells(5, 10) = Application.AverageIf(Worksheets("Averaged Data").Range("E3:E" & j), "<>0") Worksheets("Averaged Data").Cells(6, 10) = Application.AverageIf(Worksheets("Averaged Data").Range("F3:F" & j), "<>0") Worksheets("Averaged Data").Cells(7, 10) = Application.AverageIf(Worksheets("Averaged Data").Range("G3:G" & j), "<>0") Worksheets("Averaged Data").Cells(3, 11) = Application.StDev(Worksheets("Averaged Data").Range("C3:C" & j)) Worksheets("Averaged Data").Cells(4, 11) = Application.StDev(Worksheets("Averaged Data").Range("D3:D" & j)) Worksheets("Averaged Data").Cells(5, 11) = Application.StDev(Worksheets("Averaged Data").Range("E3:E" & j)) Worksheets("Averaged Data").Cells(6, 11) = Application.StDev(Worksheets("Averaged Data").Range("F3:F" & j)) Worksheets("Averaged Data").Cells(7, 11) = Application.StDev(Worksheets("Averaged Data").Range("G3:G" & j)) Next j Worksheets("Averaged Data").Range("B:G").EntireColumn.AutoFit Worksheets("Averaged Data").Range("I:K").EntireColumn.AutoFit Application.ScreenUpdating = False End Sub 263 -220 -200 -180 -160 -140 -120 -100 -80 -60 -40 -20 1 mA/cm2 10 mA/cm2 20 mA/cm2 50 mA/cm2 0 0 10 20 30 40 50 Run Number Figure C.6: The image is an example of a Potential (mV) versus Run Number plot that is produced by the avgDataPlt Sub. Public Sub avgDataPlt() Application.ScreenUpdating = False Dim yRnge As Range Dim xRnge As Range Chart6.Activate For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series Sheets("Averaged Data").Select For i = 3 To 7 Step 1 Sheets("Averaged Data").Select xValmax = Worksheets("EChem System").Cells(12, 8).Value + 2 For j = 3 To xValmax Step 1 xValmi = Worksheets("Averaged Data").Cells(j, 2) xValmin = Split(xValmi, " ") xValmini = xValmin(1) Worksheets("Averaged Data").Cells(j, 1) = xValmini Next j With Sheets("Averaged Data") Set xRnge = .Range(.Cells(3, 1), .Cells(xValmax, 1)) Set yRnge = .Range(.Cells(3, i), .Cells(xValmax, i)) End With Chart6.Activate With ActiveChart.SeriesCollection.NewSeries .ChartType = xlXYScatter .Name = Sheets("Averaged Data").Cells(2, i) .XValues = xRnge .Values = yRnge End With Next i With Chart6 .HasLegend = True .Legend.Left = 80 .Legend.Top = 62 .Legend.Format.TextFrame2.TextRange.Font.Size = 16 .Legend.Format.TextFrame2.TextRange.Font.Bold = msoTrue .Legend.Left = 84 .Legend.Top = 39 .Legend.Height = 36.375 .Legend.Width = 574 .Legend.Format.Line.Visible = msoFalse End With With Chart6.PlotArea .Height = 430 .Top = 20 .Width = 625 264 .Left = 40 .Format.Line.Visible = msoTrue .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Format.Line.Weight = 2.25 .Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With With Chart6.Axes(xlCategory) .HasTitle = True .MaximumScale = Worksheets("EChem System").Cells(12, 8).Value + Worksheets("EChem System").Cells(35, 1).Value .MinimumScale = Worksheets("Averaged Data").Cells(3, 1) - 1 .MajorTickMark = xlOutside .MinorTickMark = xlOutside .TickLabels.Font.Size = 16 .TickLabels.Font.Bold = msoTrue .Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 With Chart6.Axes(xlCategory).AxisTitle .Text = "Run Number" .Font.Size = 24 .Font.Bold = True End With End With With Chart6.Axes(xlValue) .ReversePlotOrder = True .HasTitle = True .MajorTickMark = xlOutside .Crosses = xlMaximum .TickLabels.Font.Size = 16 .TickLabels.Font.Bold = msoTrue .Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 With Chart6.Axes(xlValue).AxisTitle .Text = "Potential (mV vs. RHE)" .Font.Size = 24 .Font.Bold = True End With End With If Worksheets("EChem System").Cells(12, 8).Value <= 20 Then With Chart6.Axes(xlCategory) .MinorUnit = 1 .MajorUnit = 1 End With ElseIf Worksheets("EChem System").Cells(12, 8).Value > 20 And Worksheets("EChem System").Cells(12, 8).Value <= 50 Then With Chart6.Axes(xlCategory) .MinorUnit = 1 .MajorUnit = 5 End With ElseIf Worksheets("EChem System").Cells(12, 8).Value > 50 And Worksheets("EChem System").Cells(12, 8).Value <= 100 Then With Chart6.Axes(xlCategory) .MinorUnit = 5 .MajorUnit = 10 End With End If Application.ScreenUpdating = False End Sub C.3.2. CurDensPltMod Code The CurDensPlt Subs are programs used to produce Current Density (mA cm <sup>-2</sup> ) versus Potential (mV) plots, see Figure C.7 and Figure C.8 . The CurDensPlt Sub provides the full plot and the CurDensPlt2 Sub produces a narrowed and zoomed region for simpler comparison to literature plots. 265 -20 0 20 40 60 80 100 120 HER Current Density Overlays 140 -800 -600 -400 -200 0 200 400 Potential (mV) : RHE Figure C.7: The image is an example of overlays of Current Density (mA cm <sup>-2</sup> ) versus Potential (mV) by the CurDensPlt Sub. Public Sub CurDensPlt() Application.ScreenUpdating = False Dim yRnge As Range Dim xRnge As Range Chart4.Activate For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series Sheets("Raw LSV Data").Select For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select With Sheets("Raw LSV Data") Set xRnge = .Range(.Cells(5, i - 4), .Cells(5, i - 4).End(xlDown)) Set yRnge = .Range(.Cells(5, i - 3), .Cells(5, i - 3).End(xlDown)) End With Chart4.Activate With ActiveChart.SeriesCollection.NewSeries .ChartType = xlXYScatterLinesNoMarkers .Name = "Run " & Round((0.090909 * i), 0) .XValues = xRnge .Values = yRnge End With Next i Application.ScreenUpdating = False End Sub 266 Figure C.8: The image is an example of Current Density (mA cm <sup>-2</sup> ) versus Potential (mV) overlay plots in a narrowed/zoomed region by the CurDensPlt2 Sub. Public Sub curDensPlt2() Application.ScreenUpdating = False Dim yRnge As Range Dim xRnge As Range Chart5.Activate For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series Sheets("Raw LSV Data").Select For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select With Sheets("Raw LSV Data") Set xRnge = .Range(.Cells(5, i - 4), .Cells(5, i - 4).End(xlDown)) Set yRnge = .Range(.Cells(5, i - 3), .Cells(5, i - 3).End(xlDown)) End With Chart5.Activate With ActiveChart.SeriesCollection.NewSeries .ChartType = xlXYScatterLinesNoMarkers .Name = "Run " & Round((0.090909 * i), 0) .XValues = xRnge .Values = yRnge End With Next i Application.ScreenUpdating = False End Sub C.3.3. ExportMod Code The Export Sub is a program that takes certain plots as well as selected cell ranges, and exports them as Portable Network Graphic (.png) images, see Figure C.9 . The images allow for quick comparisons and visualizations of the data, which open rapidly without requiring Excel. The generated images are then saved into a Word document by the WorDocMod explained in Section C.3.9 . 267 Figure C.9: The images represent examples of the different image files that are produced by the Export Sub. Sub Export() Application.ScreenUpdating = True Dim myChartObject As ChartObject Dim fso As Object Dim zipName2 As String zipName2 = Worksheets("StoredInfo(HIDDEN)").Range("C6").Value Set fso = CreateObject("Scripting.FileSystemObject") parVal = Worksheets("EChem System").Cells(3, 2).Value multiVal = Worksheets("EChem System").Cells(12, 11).Value If Worksheets("EChem System").Cells(18, 5).Value = "HER" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "True" Then myFileName2 = parVal & " HER Full Tafel Plot.png" myFileName4 = parVal & " HER CurDens Over Plot.png" myFileName6 = parVal & " HER Tafel Plot.png" myFileName9 = parVal & " HER Tafel Plots.png" myFileName10 = parVal & " HER Current Density Plots.png" myFileName11 = parVal & " HER Average Plots.png" ElseIf Worksheets("EChem System").Cells(18, 5).Value = "HER" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "False" Then myFileName2 = parVal & " HER Full Tafel Plot.png" myFileName4 = parVal & " HER CurDens Over Plot.png" myFileName6 = parVal & " HER Tafel Plot.png" myFileName9 = parVal & " HER Tafel Plots.png" myFileName10 = parVal & " HER Current Density Plots.png" myFileName11 = parVal & " HER Average Plots.png" myFileName21 = parVal & " HER Full Tafel Plot with iR Comp.png" myFileName22 = parVal & " HER CurDens Over Plot with iR Comp.png" myFileName24 = parVal & " HER Tafel Plot with iR Comp.png" myFileName26 = parVal & " HER Tafel Plots with iR Comp.png" myFileName30 = parVal & " HER Current Density Plots with iR Comp.png" myFileName31 = parVal & " HER Average Plots with iR Comp.png" myFileName32 = parVal & " HER Overlay Plot of Non Comp vs iR Comp.png" ElseIf Worksheets("EChem System").Cells(18, 5).Value = "OER" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "True" Then myFileName2 = parVal & " OER Full Tafel Plot.png" myFileName4 = parVal & " OER CurDens Over Plot.png" myFileName6 = parVal & " OER Tafel Plot.png" myFileName9 = parVal & " OER Tafel Plots.png" myFileName10 = parVal & " OER Current Density Plots.png" myFileName11 = parVal & " OER Average Plots.png" ElseIf Worksheets("EChem System").Cells(18, 5).Value = "OER" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "False" Then myFileName2 = parVal & " OER Full Tafel Plot.png" myFileName4 = parVal & " OER CurDens Over Plot.png" myFileName6 = parVal & " OER Tafel Plot.png" myFileName9 = parVal & " OER Tafel Plots.png" myFileName10 = parVal & " OER Current Density Plots.png" myFileName11 = parVal & " OER Average Plots.png" myFileName21 = parVal & " OER Full Tafel Plot with iR Comp.png" myFileName22 = parVal & " OER CurDens Over Plot with iR Comp.png" myFileName24 = parVal & " OER Tafel Plot with iR Comp.png" myFileName26 = parVal & " OER Tafel Plots with iR Comp.png" myFileName30 = parVal & " OER Current Density Plots with iR Comp.png" myFileName31 = parVal & " OER Average Plots with iR Comp.png" myFileName32 = parVal & " OER Overlay Plot of Non Comp vs iR Comp.png" End If If Worksheets("EChem System").Cells(12, 11).Value <> "" Then If Worksheets("StoredInfo(HIDDEN)").Range("C12").Value = "True" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "True" Then Chart2.Activate Chart2.Export fileName:=zipName2 & "\" & multiVal & myFileName2, Filtername:="PNG" ElseIf Worksheets("StoredInfo(HIDDEN)").Range("C12").Value = "True" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "False" Then Chart2.Activate 268 Chart2.Export fileName:=zipName2 & "\" & multiVal & myFileName2, Filtername:="PNG" Chart10.Activate Chart10.Export fileName:=zipName2 & "\" & multiVal & myFileName21, Filtername:="PNG" End If If Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "True" Then Chart4.Activate Chart4.Export fileName:=zipName2 & "\" & multiVal & myFileName4, Filtername:="PNG" Chart5.Activate Chart5.Export fileName:=zipName2 & "\" & multiVal & myFileName10, Filtername:="PNG" ElseIf Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "False" Then Chart4.Activate Chart4.Export fileName:=zipName2 & "\" & multiVal & myFileName4, Filtername:="PNG" Chart5.Activate Chart5.Export fileName:=zipName2 & "\" & multiVal & myFileName10, Filtername:="PNG" Chart8.Activate Chart8.Export fileName:=zipName2 & "\" & multiVal & myFileName22, Filtername:="PNG" Chart9.Activate Chart9.Export fileName:=zipName2 & "\" & multiVal & myFileName30, Filtername:="PNG" Chart12.Activate Chart12.Export fileName:=zipName2 & "\" & multiVal & myFileName32, Filtername:="PNG" End If If Worksheets("StoredInfo(HIDDEN)").Range("C10").Value = "True" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "True" Then Chart6.Activate Chart6.Export fileName:=zipName2 & "\" & multiVal & myFileName11, Filtername:="PNG" ElseIf Worksheets("StoredInfo(HIDDEN)").Range("C10").Value = "True" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "False" Then Chart6.Activate Chart6.Export fileName:=zipName2 & "\" & multiVal & myFileName11, Filtername:="PNG" Chart7.Activate Chart7.Export fileName:=zipName2 & "\" & multiVal & myFileName31, Filtername:="PNG" End If If InputParametersUserForm.TafelOptionButton1.Value = True Then Worksheets("Tafel Info").ChartObjects(1).Activate Worksheets("Tafel Info").ChartObjects(1) _ .Chart.Export fileName:=zipName2 & "\" & multiVal & myFileName6, Filtername:="PNG" Chart3.Activate Chart3.Export fileName:=zipName2 & "\" & multiVal & myFileName9, Filtername:="PNG" End If ElseIf Worksheets("EChem System").Cells(12, 11).Value = "" Then If Worksheets("StoredInfo(HIDDEN)").Range("C12").Value = "True" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "True" Then Chart2.Activate Chart2.Export fileName:=zipName2 & "\All " & myFileName2, Filtername:="PNG" ElseIf Worksheets("StoredInfo(HIDDEN)").Range("C12").Value = "True" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "False" Then Chart2.Activate Chart2.Export fileName:=zipName2 & "\All " & myFileName2, Filtername:="PNG" Chart10.Activate Chart10.Export fileName:=zipName2 & "\All " & myFileName21, Filtername:="PNG" End If If Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "True" Then Chart4.Activate Chart4.Export fileName:=zipName2 & "\All " & myFileName4, Filtername:="PNG" Chart5.Activate Chart5.Export fileName:=zipName2 & "\All " & myFileName10, Filtername:="PNG" ElseIf Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "False" Then Chart4.Activate Chart4.Export fileName:=zipName2 & "\All " & myFileName4, Filtername:="PNG" Chart5.Activate Chart5.Export fileName:=zipName2 & "\All " & myFileName10, Filtername:="PNG" Chart8.Activate Chart8.Export fileName:=zipName2 & "\All " & myFileName22, Filtername:="PNG" Chart9.Activate Chart9.Export fileName:=zipName2 & "\All " & myFileName30, Filtername:="PNG" Chart12.Activate Chart12.Export fileName:=zipName2 & "\All " & myFileName32, Filtername:="PNG" End If If Worksheets("StoredInfo(HIDDEN)").Range("C10").Value = "True" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "True" Then Chart6.Activate Chart6.Export fileName:=zipName2 & "\All " & myFileName11, Filtername:="PNG" ElseIf Worksheets("StoredInfo(HIDDEN)").Range("C10").Value = "True" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "False" Then Chart6.Activate Chart6.Export fileName:=zipName2 & "\All " & myFileName11, Filtername:="PNG" Chart7.Activate Chart7.Export fileName:=zipName2 & "\All " & myFileName31, Filtername:="PNG" End If If InputParametersUserForm.TafelOptionButton1.Value = True Then 269 Worksheets("Tafel Info").ChartObjects(1).Activate Worksheets("Tafel Info").ChartObjects(1) _ .Chart.Export fileName:=zipName2 & "\All " & myFileName6, Filtername:="PNG" Chart3.Activate Chart3.Export fileName:=zipName2 & "\All " & myFileName9, Filtername:="PNG" End If End If Export2 Application.ScreenUpdating = False End Sub Sub Export2() Dim myChartObject As ChartObject Dim zipName2 As String parVal = Worksheets("EChem System").Cells(3, 2).Value multiVal = Worksheets("EChem System").Cells(12, 11).Value If Worksheets("EChem System").Cells(18, 5).Value = "HER" Then myFileName3 = parVal & " HER EChem System Info.png" myFileName7 = parVal & " HER Avg Data Table.png" myFileName8 = parVal & " HER Overall Results.png" myFileName27 = parVal & " HER Avg Data Table with iR Comp.png" myFileName28 = parVal & " HER Overall Results with iR Comp.png" ElseIf Worksheets("EChem System").Cells(18, 5).Value = "OER" Then myFileName3 = parVal & " OER EChem System Info.png" myFileName7 = parVal & " OER Avg Data Table.png" myFileName8 = parVal & " OER Overall Results.png" myFileName27 = parVal & " OER Avg Data Table with iR Comp.png" myFileName28 = parVal & " OER Overall Results with iR Comp.png" End If zipName2 = Worksheets("StoredInfo(HIDDEN)").Range("C6").Value Application.ScreenUpdating = True If InputParametersUserForm.MultiOptionButton1 = True Then Worksheets("EChem System").Activate Worksheets("EChem System").Range("A1:L35").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set oCht = Charts.Add oCht.ChartArea.Select oCht.Paste With oCht .Export fileName:=zipName2 & "\" & multiVal & myFileName3, Filtername:="PNG" .Delete End With If Worksheets("StoredInfo(HIDDEN)").Range("C10").Value = True And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = True Then Worksheets("Averaged Data").Activate Worksheets("Averaged Data").Select Worksheets("Averaged Data").Range("I2:K7").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set myChartObject = Worksheets("Averaged Data").ChartObjects.Add(Left:=600, Top:=600, Width:=500, Height:=260) Set oCht = Worksheets("Averaged Data").ChartObjects("Chart 2") oCht.Select With oCht.Chart .Paste ActiveSheet.ChartObjects("Chart 2").Activate ActiveChart.Shapes.Range(Array("chart")).Select Selection.ShapeRange.ScaleWidth 1.6887630657, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.ScaleHeight 1.6997071585, msoFalse, msoScaleFromTopLeft .Export fileName:=zipName2 & "\" & multiVal & myFileName7, Filtername:="PNG" End With oCht.Delete ElseIf Worksheets("StoredInfo(HIDDEN)").Range("C10").Value = "True" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "False" Then Worksheets("Averaged Data").Activate Worksheets("Averaged Data").Select Worksheets("Averaged Data").Range("I2:K7").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set myChartObject = Worksheets("Averaged Data").ChartObjects.Add(Left:=600, Top:=600, Width:=500, Height:=260) Set oCht = Worksheets("Averaged Data").ChartObjects("Chart 2") oCht.Select With oCht.Chart .Paste ActiveSheet.ChartObjects("Chart 2").Activate ActiveChart.Shapes.Range(Array("chart")).Select Selection.ShapeRange.ScaleWidth 1.6887630657, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.ScaleHeight 1.6997071585, msoFalse, msoScaleFromTopLeft .Export fileName:=zipName2 & "\" & multiVal & myFileName7, Filtername:="PNG" End With oCht.Delete 270 Worksheets("iR Comp Averaged Data").Activate Worksheets("iR Comp Averaged Data").Select Worksheets("iR Comp Averaged Data").Range("I2:K7").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set myChartObject = Worksheets("iR Comp Averaged Data").ChartObjects.Add(Left:=600, Top:=600, Width:=500, Height:=260) Set oCht = Worksheets("iR Comp Averaged Data").ChartObjects("Chart 2") oCht.Select With oCht.Chart .Paste ActiveSheet.ChartObjects("Chart 2").Activate ActiveChart.Shapes.Range(Array("chart")).Select Selection.ShapeRange.ScaleWidth 1.6887630657, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.ScaleHeight 1.6997071585, msoFalse, msoScaleFromTopLeft .Export fileName:=zipName2 & "\" & multiVal & myFileName27, Filtername:="PNG" End With oCht.Delete End If If Worksheets("StoredInfo(HIDDEN)").Range("C14").Value = "True" Then Worksheets("Overall Results").Activate Worksheets("Overall Results").Range("A1:S57").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set oCht = Charts.Add oCht.ChartArea.Select oCht.Paste With oCht .Export fileName:=zipName2 & "\" & multiVal & myFileName8, Filtername:="PNG" .Delete End With End If ElseIf InputParametersUserForm.MultiOptionButton2 = True Then Worksheets("EChem System").Activate Worksheets("EChem System").Range("A1:L35").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set oCht = Charts.Add oCht.ChartArea.Select oCht.Paste With oCht .Export fileName:=zipName2 & "\All " & myFileName3, Filtername:="PNG" .Delete End With If Worksheets("StoredInfo(HIDDEN)").Range("C10").Value = "True" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "True" Then Worksheets("Averaged Data").Activate Worksheets("Averaged Data").Select Worksheets("Averaged Data").Range("I2:K7").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set myChartObject = Worksheets("Averaged Data").ChartObjects.Add(Left:=600, Top:=600, Width:=500, Height:=260) Set oCht = Worksheets("Averaged Data").ChartObjects("Chart 2") oCht.Select With oCht.Chart .Paste ActiveSheet.ChartObjects("Chart 2").Activate ActiveChart.Shapes.Range(Array("chart")).Select Selection.ShapeRange.ScaleWidth 1.6887630657, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.ScaleHeight 1.6997071585, msoFalse, msoScaleFromTopLeft .Export fileName:=zipName2 & "\All " & myFileName7, Filtername:="PNG" End With oCht.Delete ElseIf Worksheets("StoredInfo(HIDDEN)").Range("C10").Value = "True" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "False" Then Worksheets("Averaged Data").Activate Worksheets("Averaged Data").Select Worksheets("Averaged Data").Range("I2:K7").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set myChartObject = Worksheets("Averaged Data").ChartObjects.Add(Left:=600, Top:=600, Width:=500, Height:=260) Set oCht = Worksheets("Averaged Data").ChartObjects("Chart 2") oCht.Select With oCht.Chart .Paste ActiveSheet.ChartObjects("Chart 2").Activate ActiveChart.Shapes.Range(Array("chart")).Select Selection.ShapeRange.ScaleWidth 1.6887630657, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.ScaleHeight 1.6997071585, msoFalse, msoScaleFromTopLeft .Export fileName:=zipName2 & "\All " & myFileName7, Filtername:="PNG" End With oCht.Delete Worksheets("iR Comp Averaged Data").Activate 271 Worksheets("iR Comp Averaged Data").Select Worksheets("iR Comp Averaged Data").Range("I2:K7").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set myChartObject = Worksheets("iR Comp Averaged Data").ChartObjects.Add(Left:=600, Top:=600, Width:=500, Height:=260) Set oCht = Worksheets("iR Comp Averaged Data").ChartObjects("Chart 2") oCht.Select With oCht.Chart .Paste ActiveSheet.ChartObjects("Chart 2").Activate ActiveChart.Shapes.Range(Array("chart")).Select Selection.ShapeRange.ScaleWidth 1.6887630657, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.ScaleHeight 1.6997071585, msoFalse, msoScaleFromTopLeft .Export fileName:=zipName2 & "\All " & myFileName27, Filtername:="PNG" End With oCht.Delete End If If Worksheets("StoredInfo(HIDDEN)").Range("C10").Value = "True" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "True" Then Worksheets("Overall Results").Activate Worksheets("Overall Results").Range("A1:S57").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set oCht = Charts.Add oCht.ChartArea.Select oCht.Paste With oCht .Export fileName:=zipName2 & "\All " & myFileName8, Filtername:="PNG" .Delete End With ElseIf Worksheets("StoredInfo(HIDDEN)").Range("C10").Value = "True" And Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value = "False" Then Worksheets("Overall Results").Activate Worksheets("Overall Results").Range("A1:S57").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set oCht = Charts.Add oCht.ChartArea.Select oCht.Paste With oCht .Export fileName:=zipName2 & "\All " & myFileName8, Filtername:="PNG" .Delete End With Worksheets("iR Comp Overall Results").Activate Worksheets("iR Comp Overall Results").Range("A1:S57").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set oCht = Charts.Add oCht.ChartArea.Select oCht.Paste With oCht .Export fileName:=zipName2 & "\All " & myFileName28, Filtername:="PNG" .Delete End With End If End If Application.ScreenUpdating = False End Sub Sub Export3() Application.ScreenUpdating = True Dim myChartObject As ChartObject Dim fso As Object Dim zipName2 As String zipName2 = Worksheets("StoredInfo(HIDDEN)").Range("C6").Value Set fso = CreateObject("Scripting.FileSystemObject") parVal = Worksheets("EChem System").Cells(3, 2).Value multiVal = Worksheets("EChem System").Cells(12, 11).Value If Worksheets("EChem System").Cells(18, 5).Value = "HER" Then myFileName21 = parVal & " HER Full Tafel Plot with iR Comp.png" myFileName22 = parVal & " HER CurDens Over Plot with iR Comp.png" myFileName24 = parVal & " HER Tafel Plot with iR Comp.png" myFileName26 = parVal & " HER Tafel Plots with iR Comp.png" myFileName30 = parVal & " HER Current Density Plots with iR Comp.png" myFileName31 = parVal & " HER Average Plots with iR Comp.png" myFileName32 = parVal & " HER Overlay Plot of Non Comp vs iR Comp.png" ElseIf Worksheets("EChem System").Cells(18, 5).Value = "OER" Then myFileName21 = parVal & " OER Full Tafel Plot with iR Comp.png" myFileName22 = parVal & " OER CurDens Over Plot with iR Comp.png" myFileName24 = parVal & " OER Tafel Plot with iR Comp.png" myFileName26 = parVal & " OER Tafel Plots with iR Comp.png" myFileName30 = parVal & " OER Current Density Plots with iR Comp.png" 272 myFileName31 = parVal & " OER Average Plots with iR Comp.png" myFileName32 = parVal & " OER Overlay Plot of Non Comp vs iR Comp.png" End If If Worksheets("EChem System").Cells(12, 11).Value <> "" Then If Worksheets("StoredInfo(HIDDEN)").Range("C12").Value = "True" Then Chart10.Activate Chart10.Export fileName:=zipName2 & "\" & multiVal & myFileName21, Filtername:="PNG" End If Chart8.Activate Chart8.Export fileName:=zipName2 & "\" & multiVal & myFileName22, Filtername:="PNG" Chart9.Activate Chart9.Export fileName:=zipName2 & "\" & multiVal & myFileName30, Filtername:="PNG" Chart12.Activate Chart12.Export fileName:=zipName2 & "\" & multiVal & myFileName32, Filtername:="PNG" If Worksheets("StoredInfo(HIDDEN)").Range("C10").Value = "True" Then Chart7.Activate Chart7.Export fileName:=zipName2 & "\" & multiVal & myFileName31, Filtername:="PNG" End If ElseIf Worksheets("EChem System").Cells(12, 11).Value = "" Then If Worksheets("StoredInfo(HIDDEN)").Range("C12").Value = "True" Then Chart10.Activate Chart10.Export fileName:=zipName2 & "\All " & myFileName21, Filtername:="PNG" End If Chart8.Activate Chart8.Export fileName:=zipName2 & "\All " & myFileName22, Filtername:="PNG" Chart9.Activate Chart9.Export fileName:=zipName2 & "\All " & myFileName30, Filtername:="PNG" Chart12.Activate Chart12.Export fileName:=zipName2 & "\All " & myFileName32, Filtername:="PNG" If Worksheets("StoredInfo(HIDDEN)").Range("C10").Value = "True" Then Chart7.Activate Chart7.Export fileName:=zipName2 & "\All " & myFileName31, Filtername:="PNG" End If End If Export4 Application.ScreenUpdating = False End Sub Sub Export4() Dim myChartObject As ChartObject Dim zipName2 As String parVal = Worksheets("EChem System").Cells(3, 2).Value multiVal = Worksheets("EChem System").Cells(12, 11).Value If Worksheets("EChem System").Cells(18, 5).Value = "HER" Then myFileName27 = parVal & " HER Avg Data Table with iR Comp.png" myFileName28 = parVal & " HER Overall Results with iR Comp.png" ElseIf Worksheets("EChem System").Cells(18, 5).Value = "OER" Then myFileName27 = parVal & " OER Avg Data Table with iR Comp.png" myFileName28 = parVal & " OER Overall Results with iR Comp.png" End If zipName2 = Worksheets("StoredInfo(HIDDEN)").Range("C6").Value Application.ScreenUpdating = True If Worksheets("EChem System").Cells(12, 11).Value <> "" Then If Worksheets("StoredInfo(HIDDEN)").Range("C10").Value = "True" Then Worksheets("iR Comp Averaged Data").Activate Worksheets("iR Comp Averaged Data").Select Worksheets("iR Comp Averaged Data").Range("I2:K7").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set myChartObject = Worksheets("iR Comp Averaged Data").ChartObjects.Add(Left:=600, Top:=600, Width:=500, Height:=260) Set oCht = Worksheets("iR Comp Averaged Data").ChartObjects("Chart 2") oCht.Select With oCht.Chart .Paste ActiveSheet.ChartObjects("Chart 2").Activate ActiveChart.Shapes.Range(Array("chart")).Select Selection.ShapeRange.ScaleWidth 1.6887630657, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.ScaleHeight 1.6997071585, msoFalse, msoScaleFromTopLeft .Export fileName:=zipName2 & "\" & multiVal & myFileName27, Filtername:="PNG" End With oCht.Delete End If ElseIf Worksheets("EChem System").Cells(12, 11).Value = "" Then If Worksheets("StoredInfo(HIDDEN)").Range("C10").Value = "True" Then Worksheets("iR Comp Averaged Data").Activate Worksheets("iR Comp Averaged Data").Select Worksheets("iR Comp Averaged Data").Range("I2:K7").CopyPicture Appearance:=xlScreen, Format:=xlBitmap 273 Application.DisplayAlerts = False Set myChartObject = Worksheets("iR Comp Averaged Data").ChartObjects.Add(Left:=600, Top:=600, Width:=500, Height:=260) Set oCht = Worksheets("iR Comp Averaged Data").ChartObjects("Chart 2") oCht.Select With oCht.Chart .Paste ActiveSheet.ChartObjects("Chart 2").Activate ActiveChart.Shapes.Range(Array("chart")).Select Selection.ShapeRange.ScaleWidth 1.6887630657, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.ScaleHeight 1.6997071585, msoFalse, msoScaleFromTopLeft .Export fileName:=zipName2 & "\All " & myFileName27, Filtername:="PNG" End With oCht.Delete End If If Worksheets("StoredInfo(HIDDEN)").Range("C10").Value = "True" Then Worksheets("iR Comp Overall Results").Activate Worksheets("iR Comp Overall Results").Range("A1:S57").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set oCht = Charts.Add oCht.ChartArea.Select oCht.Paste With oCht .Export fileName:=zipName2 & "\All " & myFileName28, Filtername:="PNG" .Delete End With End If End If Application.ScreenUpdating = False End Sub C.3.4. FullTafPlotMod Code The FullTafPlot Sub is a program that makes a plot from the data that has been processed into the appropriate units for Tafel plots as shown in Figure C.10 . This data is not analyzed for specific Tafel values with this program, that process is in the TafelMod, but provides the full plot to determine where Tafel analysis is to be performed. Figure C.10: The images are examples of data that has been processed with the FullTafPlot Sub. The left image has buttons that require user input for running the Tafel Sub, the right image is without the buttons as it is post Tafel Sub analysis. 274 Public Sub FullTafPlot() Application.ScreenUpdating = False If Worksheets("EChem System").Cells(12, 8).Value <= 10 Then FullTafPlot1 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 20 Then FullTafPlot2 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 30 Then FullTafPlot3 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 40 Then FullTafPlot4 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 50 Then FullTafPlot5 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 60 Then FullTafPlot6 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 70 Then FullTafPlot7 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 80 Then FullTafPlot8 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 90 Then FullTafPlot9 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 100 Then FullTafPlot10 End If Application.ScreenUpdating = False End Sub Public Sub FullTafPlot1() Application.ScreenUpdating = False Dim xRng As Range Dim yRng As Range Chart2.Activate For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series Sheets("Raw LSV Data").Select For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select With Sheets("Raw LSV Data") Set yRng = .Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = .Range(Cells(5, i), Cells(5, i).End(xlDown)) End With Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i Application.ScreenUpdating = False End Sub Public Sub FullTafPlot2() Application.ScreenUpdating = False Chart2.Activate For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series Sheets("Raw LSV Data").Select For i = 11 To 22 Step 11 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i For i = 44 To 55 Step 11 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng 275 .Values = yRng End With Next i For i = 88 To 110 Step 22 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i Sheets("EChem System").Select If Worksheets("EChem System").Cells(12, 8).Value > 10 And Worksheets("EChem System").Cells(12, 8).Value <= 12 Then i = (Worksheets("EChem System").Cells(12, 8).Value * 11) Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If If Worksheets("EChem System").Cells(12, 8).Value > 12 And Worksheets("EChem System").Cells(12, 8).Value <= 15 Then i = 132 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With i = (Worksheets("EChem System").Cells(12, 8).Value * 11) Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If If Worksheets("EChem System").Cells(12, 8).Value = 16 Then For i = 132 To 165 Step 33 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i i = (Worksheets("EChem System").Cells(12, 8).Value * 11) Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If If Worksheets("EChem System").Cells(12, 8).Value > 16 And Worksheets("EChem System").Cells(12, 8).Value <= 18 Then For i = 132 To 165 Step 33 Sheets("Raw LSV Data").Select 276 Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i i = 176 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With i = (Worksheets("EChem System").Cells(12, 8).Value * 11) Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If If Worksheets("EChem System").Cells(12, 8).Value > 18 And Worksheets("EChem System").Cells(12, 8).Value <= 20 Then For i = 132 To 165 Step 33 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i For i = 176 To 198 Step 22 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i i = (Worksheets("EChem System").Cells(12, 8).Value * 11) Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If Application.ScreenUpdating = False End Sub Public Sub FullTafPlot3() Application.ScreenUpdating = False Chart2.Activate For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series Sheets("Raw LSV Data").Select For i = 11 To 55 Step 22 Sheets("Raw LSV Data").Select 277 Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i + 1), Cells(5, i + 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i For i = 110 To 165 Step 55 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i For i = 198 To 220 Step 22 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i If Worksheets("EChem System").Cells(12, 8).Value > 20 And Worksheets("EChem System").Cells(12, 8).Value < 23 Then i = (Worksheets("EChem System").Cells(12, 8).Value * 11) Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If If Worksheets("EChem System").Cells(12, 8).Value = 23 Then i = 253 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If If Worksheets("EChem System").Cells(12, 8).Value = 24 Then For i = 253 To 264 Step 11 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i End If If Worksheets("EChem System").Cells(12, 8).Value = 25 Then For i = 253 To 275 Step 22 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries 278 .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i End If If Worksheets("EChem System").Cells(12, 8).Value > 25 And Worksheets("EChem System").Cells(12, 8).Value <= 27 Then For i = 253 To 275 Step 22 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If If Worksheets("EChem System").Cells(12, 8).Value > 27 And Worksheets("EChem System").Cells(12, 8).Value <= 30 Then For i = 253 To 297 Step 22 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i i = (Worksheets("EChem System").Cells(12, 8).Value * 11) Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If Application.ScreenUpdating = False End Sub Public Sub FullTafPlot4() Application.ScreenUpdating = False Chart2.Activate For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series Sheets("Raw LSV Data").Select For i = 11 To 55 Step 44 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i For i = 110 To 330 Step 55 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) 279 Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i If Worksheets("EChem System").Cells(12, 8).Value > 30 And Worksheets("EChem System").Cells(12, 8).Value < 33 Then i = (Worksheets("EChem System").Cells(12, 8).Value * 11) Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With ElseIf Worksheets("EChem System").Cells(12, 8).Value = 33 Then i = 363 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With ElseIf Worksheets("EChem System").Cells(12, 8).Value = 34 Then For i = 363 To 374 Step 11 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i ElseIf Worksheets("EChem System").Cells(12, 8).Value = 35 Then For i = 363 To 385 Step 22 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i ElseIf Worksheets("EChem System").Cells(12, 8).Value > 35 And Worksheets("EChem System").Cells(12, 8).Value <= 37 Then For i = 363 To 385 Step 22 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With ElseIf Worksheets("EChem System").Cells(12, 8).Value > 37 And Worksheets("EChem System").Cells(12, 8).Value <= 40 Then 280 For i = 363 To 407 Step 22 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If Application.ScreenUpdating = False End Sub Public Sub FullTafPlot5() Application.ScreenUpdating = False Chart2.Activate For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series Sheets("Raw LSV Data").Select For i = 11 To 55 Step 44 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i For i = 110 To 440 Step 55 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i If Worksheets("EChem System").Cells(12, 8).Value > 40 And Worksheets("EChem System").Cells(12, 8).Value < 45 Then i = (Worksheets("EChem System").Cells(12, 8).Value * 11) Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If If Worksheets("EChem System").Cells(12, 8).Value = 45 Then i = 495 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With 281 End If If Worksheets("EChem System").Cells(12, 8).Value > 45 And Worksheets("EChem System").Cells(12, 8).Value <= 50 Then i = 495 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If Application.ScreenUpdating = False End Sub Public Sub FullTafPlot6() Application.ScreenUpdating = False Chart2.Activate For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series Sheets("Raw LSV Data").Select For i = 55 To 110 Step 55 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i For i = 220 To 550 Step 55 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i If Worksheets("EChem System").Cells(12, 8).Value > 50 And Worksheets("EChem System").Cells(12, 8).Value < 55 Then i = (Worksheets("EChem System").Cells(12, 8).Value * 11) Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If If Worksheets("EChem System").Cells(12, 8).Value = 55 Then i = 605 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng 282 End With End If If Worksheets("EChem System").Cells(12, 8).Value > 55 And Worksheets("EChem System").Cells(12, 8).Value <= 60 Then i = 605 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If Application.ScreenUpdating = False End Sub Public Sub FullTafPlot7() Application.ScreenUpdating = False Chart2.Activate For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series Sheets("Raw LSV Data").Select For i = 55 To 110 Step 55 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i For i = 220 To 440 Step 110 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i For i = 495 To 660 Step 55 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i If Worksheets("EChem System").Cells(12, 8).Value > 60 And Worksheets("EChem System").Cells(12, 8).Value < 65 Then i = (Worksheets("EChem System").Cells(12, 8).Value * 11) Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng 283 End With End If If Worksheets("EChem System").Cells(12, 8).Value = 65 Then i = 715 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If If Worksheets("EChem System").Cells(12, 8).Value > 65 And Worksheets("EChem System").Cells(12, 8).Value <= 70 Then i = 715 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If Application.ScreenUpdating = False End Sub Public Sub FullTafPlot8() Application.ScreenUpdating = False Chart2.Activate For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series Sheets("Raw LSV Data").Select For i = 55 To 110 Step 55 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i For i = 220 To 660 Step 110 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i For i = 715 To 770 Step 55 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng 284 End With Next i If Worksheets("EChem System").Cells(12, 8).Value > 70 And Worksheets("EChem System").Cells(12, 8).Value < 75 Then i = (Worksheets("EChem System").Cells(12, 8).Value * 11) Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If If Worksheets("EChem System").Cells(12, 8).Value = 75 Then i = 825 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If If Worksheets("EChem System").Cells(12, 8).Value > 75 And Worksheets("EChem System").Cells(12, 8).Value <= 80 Then i = 825 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If Application.ScreenUpdating = False End Sub Public Sub FullTafPlot9() Application.ScreenUpdating = False Chart2.Activate For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series Sheets("Raw LSV Data").Select For i = 55 To 110 Step 55 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i For i = 220 To 880 Step 110 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng 285 .Values = yRng End With Next i If Worksheets("EChem System").Cells(12, 8).Value > 80 And Worksheets("EChem System").Cells(12, 8).Value < 85 Then i = (Worksheets("EChem System").Cells(12, 8).Value * 11) Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If If Worksheets("EChem System").Cells(12, 8).Value = 85 Then i = 935 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If If Worksheets("EChem System").Cells(12, 8).Value > 85 And Worksheets("EChem System").Cells(12, 8).Value <= 90 Then i = 935 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If Application.ScreenUpdating = False End Sub Public Sub FullTafPlot10() Application.ScreenUpdating = False Chart2.Activate For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series Sheets("Raw LSV Data").Select For i = 55 To 110 Step 55 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With Next i For i = 220 To 990 Step 110 Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, i), Cells(5, i).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) 286 .XValues = xRng .Values = yRng End With Next i If Worksheets("EChem System").Cells(12, 8).Value > 90 And Worksheets("EChem System").Cells(12, 8).Value <= 100 Then Sheets("Raw LSV Data").Select Set yRng = Sheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(5, i - 1).End(xlDown)) Set xRng = Sheets("Raw LSV Data").Range(Cells(5, rngVal * 10 + 8), Cells(5, rngVal * 10 + 8).End(xlDown)) Chart2.Activate With ActiveChart.SeriesCollection.NewSeries .Name = "Run " & Round((i) * 0.090909, 0) .XValues = xRng .Values = yRng End With End If Application.ScreenUpdating = False End Sub C.3.5. ImportMod Code The Importxt Sub is a key program of this data processing program, as it is the code that imports the .txt and .csv files from the potentiostat software into the Cells of Excel Sheets, a process that takes several hours by hand and only a few minutes with this program code. Public filePath, lsvVal, iROptVal, TafelOptVal, refVal, fileName, numPos, addNotes1, colLength, diamVal, eRef, pHVal, ovPot, runVal As String Public correlVal, partVal, plotVal, minVal, maxVal, accVal, dirVal As String Public addVal, rngVal As Integer Public lRow1, rowLen As Long Public Path As Variant Public iCopy As Boolean Public Sub Importxt() Application.ScreenUpdating = False Dim fso As New FileSystemObject Dim filesystem As New FileSystemObject Dim StripFilename As String ActiveWorkbook.Sheets("Import").Visible = xlSheetVisible Sheets("Import").UsedRange.ClearContents Set fd = Application.FileDialog(msoFileDialogFilePicker) With fd .AllowMultiSelect = True .Title = "Select Files to Import" .Filters.Clear .Filters.Add "Text Files", "*.txt, *.csv" If .Show = False Then Application.Speech.Speak "No files were selected, or the cancel button was clicked, please wait for the program to restart." On Error Resume Next Application.DisplayAlerts = False reopen Else runVal = .SelectedItems.Count Worksheets("StoredInfo(HIDDEN)").Range("E6").Value = "runVal" Worksheets("StoredInfo(HIDDEN)").Range("F6").Value = runVal If runVal <> Worksheets("StoredInfo(HIDDEN)").Range("F4").Value And Worksheets("StoredInfo(HIDDEN)").Range("C18").Value = True Then Application.Speech.Speak "The number of files selected do not match the number entered for the individual resistance values. Please wait for the program to restart and ensure that the number of files selected match the number for the individual resistance values." On Error Resume Next Application.DisplayAlerts = False reopen End If If runVal > 100 Then Application.Speech.Speak "This program can only handle 100 runs at a time, please wait for the program to restart." On Error Resume Next Application.DisplayAlerts = False reopen 287 End If lsvVal = InputParametersUserForm.LSVComboBox.Value iROptVal = Worksheets("StoredInfo(HIDDEN)").Cells(26, 6).Value TafelOptVal = Worksheets("StoredInfo(HIDDEN)").Cells(10, 9).Value If lsvVal = "HER" And iROptVal = True And TafelOptVal = False Then Application.Speech.Speak "H E R data processing has begun for" & runVal & "files" ElseIf lsvVal = "HER" And iROptVal = True And TafelOptVal = True Then Application.Speech.Speak "H E R data processing with Tafel analysis has begun for" & runVal & "files" ElseIf lsvVal = "HER" And iROptVal = False And TafelOptVal = True Then Application.Speech.Speak "H E R data processing with i R compensation and Tafel analysis has begun for" & runVal & "files" ElseIf lsvVal = "HER" And iROptVal = False And TafelOptVal = False Then Application.Speech.Speak "H E R data processing with i R compensation has begun for" & runVal & "files" ElseIf lsvVal = "OER" And iROptVal = True And TafelOptVal = False Then Application.Speech.Speak "O E R data processing has begun for" & runVal & "files" ElseIf lsvVal = "OER" And iROptVal = True And TafelOptVal = True Then Application.Speech.Speak "O E R data processing with Tafel analysis has begun for" & runVal & "files" ElseIf lsvVal = "OER" And iROptVal = False And TafelOptVal = True Then Application.Speech.Speak "O E R data processing with i R compensation and Tafel analysis has begun for" & runVal & "files" ElseIf lsvVal = "OER" And iROptVal = False And TafelOptVal = False Then Application.Speech.Speak "O E R data processing with i R compensation has begun for" & runVal & "files" End If Application.Calculation = xlCalculationManual i = 11 For Each Path In .SelectedItems filePath = Path StripFilename = filesystem.GetParentFolderName(Path) Worksheets("StoredInfo(HIDDEN)").Range("C4").Value = StripFilename Strip = Split(StripFilename, "\",, vbTextCompare) dirVal = Strip(UBound(Strip)) Sheets("Import").UsedRange.ClearContents Sheets("Import").Select fileName = fso.GetFileName(filePath) fileDate = fso.GetFile(filePath).DateCreated File = Split(fileName, ".") With ActiveSheet.QueryTables.Add(Connection:= _ "TEXT;" & filePath _ , Destination:=Range("$A$1")) .Name = File(0) .FieldNames = True .RowNumbers = False .FillAdjacentFormulas = False .PreserveFormatting = True .RefreshOnFileOpen = False .RefreshStyle = xlInsertDeleteCells .SavePassword = False .SaveData = True .AdjustColumnWidth = True .RefreshPeriod = 0 .TextFilePromptOnRefresh = False .TextFilePlatform = 1251 .TextFileStartRow = 1 .TextFileParseType = xlDelimited .TextFileTextQualifier = xlTextQualifierDoubleQuote .TextFileConsecutiveDelimiter = False .TextFileTabDelimiter = False .TextFileSemicolonDelimiter = False .TextFileCommaDelimiter = True .TextFileOtherDelimiter = "*" .TextFileSpaceDelimiter = False .TextFileColumnDataTypes = Array(1, 1, 1, 1) .TextFileTrailingMinusNumbers = True .Refresh BackgroundQuery:=False End With numPosSearch Sheets("Import").Select Application.DisplayAlerts = False addVal = InputParametersUserForm.firRunTextBox.Value Worksheets("StoredInfo(HIDDEN)").Range("C2").Value = addVal Sheets("Raw LSV Data").Select iCopy = True lRow1 = ActiveWorkbook.Worksheets("Import").Cells(Rows.Count, 2).End(xlUp).Row Application.DisplayAlerts = False Worksheets("Raw LSV Data").Activate Worksheets("Raw LSV Data").Range("B1:B68").Copy _ Destination:=Worksheets("Raw LSV Data").Range(Cells(1, i - 9), Cells(68, i - 9)) 288 Worksheets("Raw LSV Data").Range("D2:K4").Copy _ Destination:=Worksheets("Raw LSV Data").Range(Cells(2, i - 7), Cells(4, i)) If Worksheets("Import").Cells(numPos - 1, 1) = "Potential (V)" Then Worksheets("Import").Range("C" & numPos & ":C" & lRow1).FormulaR1C1 = "=RC[-2]*1000" Worksheets("Import").Range("C" & numPos & ":C" & lRow1).Copy Worksheets("Import").Range("A" & numPos & ":A" & lRow1).PasteSpecial Paste:=xlPasteValues Worksheets("Import").Range("D" & numPos & ":D" & lRow1).FormulaR1C1 = "=RC[-2]*-1" Worksheets("Import").Range("D" & numPos & ":D" & lRow1).Copy Worksheets("Import").Range("B" & numPos & ":B" & lRow1).PasteSpecial Paste:=xlPasteValues End If Worksheets("Import").Range("A" & numPos & ":B" & lRow1).Copy _ Destination:=Worksheets("Raw LSV Data").Range(Cells(5, i - 7), Cells(lRow1 - numPos + 6, i - 6)) On Error Resume Next Worksheets("Import").Range("A1:A" & numPos - 4).Copy _ Destination:=ThisWorkbook.Worksheets("Raw LSV Data").Range(Cells(4, i - 9), Cells(numPos - 2, i - 9)) On Error Resume Next Worksheets("Raw LSV Data").Range(Cells(5, i - 4), Cells(lRow1 - numPos + 5, i - 4)).FormulaR1C1 = "=RC[-3]+" & eRef & "+(" & pHVal & "*59)" Worksheets("Raw LSV Data").Range(Cells(5, i - 3), Cells(lRow1 - numPos + 5, i - 3)).FormulaR1C1 = "=(RC[-3]*1000)/(((" & diamVal & "/20)^2)*" & WorksheetFunction.Pi() & ")" Worksheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(lRow1 - numPos + 5, i - 1)).FormulaR1C1 = "=(RC[-3]/1000)-" & ovPot Worksheets("Raw LSV Data").Range(Cells(5, i), Cells(lRow1 - numPos + 5, i)).FormulaR1C1 = "=log(RC[-3])" With Worksheets("Raw LSV Data").Range(Cells(5, i - 7), Cells(lRow1 - numPos + 5, i - 6)) With .Borders .LineStyle = xlContinuous .Color = RGB(0, 0, 0) .TintAndShade = 0 .Weight = xlThin End With .Interior.ColorIndex = 0 End With With Worksheets("Raw LSV Data").Range(Cells(5, i - 4), Cells(lRow1 - numPos + 5, i - 3)) With .Borders .LineStyle = xlContinuous .Color = RGB(0, 0, 0) .TintAndShade = 0 .Weight = xlThin End With .Interior.ColorIndex = 0 End With With Worksheets("Raw LSV Data").Range(Cells(5, i - 1), Cells(lRow1 - numPos + 5, i)) With .Borders .LineStyle = xlContinuous .Color = RGB(0, 0, 0) .TintAndShade = 0 .Weight = xlThin End With .Interior.ColorIndex = 0 End With With Worksheets("Raw LSV Data").Range(Cells(4, i - 9), Cells(numPos - 2, i - 9)) With .Borders .LineStyle = xlContinuous .Color = RGB(0, 0, 0) .TintAndShade = 0 .Weight = xlThin End With .Interior.ColorIndex = 0 End With With Worksheets("Raw LSV Data").Cells(2, i - 9) .Value = "Run " & Round((i) * 0.090909, 0) .HorizontalAlignment = xlCenter .Interior.ColorIndex = 0 End With i = i + 11 Next Path End If End With Sheets("Import").UsedRange.ClearContents Application.Calculation = xlCalculationAutomatic For i = 1 To runVal * 11 Step 11 With Worksheets("Raw LSV Data") Columns(i).ColumnWidth = 2.14 Columns(i + 1).AutoFit Columns(i + 2).ColumnWidth = 2.14 Columns(i + 3).AutoFit Columns(i + 4).AutoFit 289 Columns(i + 5).ColumnWidth = 2.14 Columns(i + 6).AutoFit Columns(i + 7).AutoFit Columns(i + 8).ColumnWidth = 2.14 Columns(i + 9).AutoFit Columns(i + 10).AutoFit Columns(i + 11).ColumnWidth = 2.14 End With Next i mergCentBord Dim lRowHide, lColHide As Long lRowHide = Worksheets("Raw LSV Data").Cells.Find(what:="*", _ After:=Range("A1"), _ LookAt:=xlPart, _ LookIn:=xlFormulas, _ SearchOrder:=xlByRows, _ SearchDirection:=xlPrevious, _ MatchCase:=False).Row Worksheets("StoredInfo(HIDDEN)").Range("E8").Value = "lRowHide" Worksheets("StoredInfo(HIDDEN)").Range("F8").Value = lRowHide lColHide = Worksheets("Raw LSV Data").Cells.Find(what:="*", _ After:=Range("A1"), _ LookAt:=xlPart, _ LookIn:=xlFormulas, _ SearchOrder:=xlByColumns, _ SearchDirection:=xlPrevious, _ MatchCase:=False).Column Worksheets("StoredInfo(HIDDEN)").Range("E10").Value = "lColHide" Worksheets("StoredInfo(HIDDEN)").Range("F10").Value = lColHide Worksheets("Raw LSV Data").Range(Cells(1, lColHide + 2), Cells(1, Columns.Count)).EntireColumn.Hidden = True Worksheets("Raw LSV Data").Range(Cells(lRowHide + 2, 1), Cells(Rows.Count, Columns.Count)).EntireRow.Hidden = True ActiveWorkbook.Sheets("Import").Visible = xlSheetVeryHidden ActiveWorkbook.Sheets("StoredInfo(HIDDEN)").Visible = xlSheetVeryHidden ActiveWorkbook.Sheets("InputUserForm").Visible = xlSheetVeryHidden Application.ScreenUpdating = False End Sub Sub numPosSearch() For i = 1 To Rows.Count If IsNumeric(Worksheets("Import").Cells(i, "B").Value) And Worksheets("Import").Cells(i, "B").Value <> "" Then numPos = i Exit Sub End If Next i End Sub Sub mergCentBord() Application.ScreenUpdating = False For i = 1 To runVal * 11 Step 11 Worksheets("Raw LSV Data").Range(Cells(2, i + 3), Cells(2, i + 4)).Select With Selection .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = True End With Worksheets("Raw LSV Data").Range(Cells(2, i + 6), Cells(2, i + 7)).Select With Selection .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = True End With Worksheets("Raw LSV Data").Range(Cells(2, i + 9), Cells(2, i + 10)).Select With Selection .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom 290 .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = True End With Worksheets("Raw LSV Data").Range(Cells(2, i + 3), Cells(2, i + 4)).Select With Selection.Borders .LineStyle = xlContinuous .ColorIndex = 0 .TintAndShade = 0 .Weight = xlMedium End With Worksheets("Raw LSV Data").Range(Cells(2, i + 6), Cells(2, i + 7)).Select With Selection.Borders .LineStyle = xlContinuous .ColorIndex = 0 .TintAndShade = 0 .Weight = xlMedium End With Worksheets("Raw LSV Data").Range(Cells(2, i + 9), Cells(2, i + 10)).Select With Selection.Borders .LineStyle = xlContinuous .ColorIndex = 0 .TintAndShade = 0 .Weight = xlMedium End With Worksheets("Raw LSV Data").Cells(4, i + 3).Select With Selection.Borders .LineStyle = xlContinuous .ColorIndex = 0 .TintAndShade = 0 .Weight = xlMedium End With Worksheets("Raw LSV Data").Cells(4, i + 5).Select With Selection.Borders .LineStyle = xlContinuous .ColorIndex = 0 .TintAndShade = 0 .Weight = xlMedium End With Worksheets("Raw LSV Data").Cells(4, i + 6).Select With Selection.Borders .LineStyle = xlContinuous .ColorIndex = 0 .TintAndShade = 0 .Weight = xlMedium End With Worksheets("Raw LSV Data").Cells(4, i + 7).Select With Selection.Borders .LineStyle = xlContinuous .ColorIndex = 0 .TintAndShade = 0 .Weight = xlMedium End With Worksheets("Raw LSV Data").Cells(4, i + 9).Select With Selection.Borders .LineStyle = xlContinuous .ColorIndex = 0 .TintAndShade = 0 .Weight = xlMedium End With Worksheets("Raw LSV Data").Cells(4, i + 10).Select With Selection.Borders .LineStyle = xlContinuous .ColorIndex = 0 .TintAndShade = 0 .Weight = xlMedium End With Next i Application.ScreenUpdating = False End Sub Sub reopen() 291 ThisWorkbook.Saved = True ThisWorkbook.ChangeFileAccess xlReadOnly,, False Application.Wait Now + TimeValue("00:00:01") ThisWorkbook.ChangeFileAccess xlReadWrite,, True End Sub C.3.6. ResultsMod Code The Results Sub is a program that fills the cells of the Overall Results Sheet. The program takes values from the other Sheets where the data is found and consolidates the data for display on one Sheet. The different numbered _results_ subs are designed to run when the number of selected files is between the set values, for example _results10_ is run when the number of selected files is less than or equal to 10. Public Sub Results() Application.ScreenUpdating = False If Worksheets("EChem System").Cells(12, 8).Value <= 10 Then results10 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 20 Then results20 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 30 Then results30 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 40 Then results40 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 50 Then results50 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 60 Then results60 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 70 Then results70 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 80 Then results80 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 90 Then results90 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 100 Then results100 End If Application.ScreenUpdating = False End Sub Public Sub results10() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 1 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, runCounter * 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, runCounter * 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, runCounter * 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, runCounter * 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, runCounter * 2).Value Cells(5, 5).Value = Worksheets("Tafel Info").Cells(24, 2).Value Cells(8, 5).Value = Worksheets("Tafel Info").Cells(26, 2).Value Cells(11, 5).Value = Worksheets("Tafel Info").Cells(19, 2).Value Cells(12, 5).Value = Worksheets("Tafel Info").Cells(21, 2).Value End If If runCounter = 2 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value 292 Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = Worksheets("Tafel Info").Cells(24, 7).Value Cells(8, 11).Value = Worksheets("Tafel Info").Cells(26, 7).Value Cells(11, 11).Value = Worksheets("Tafel Info").Cells(19, 7).Value Cells(12, 11).Value = Worksheets("Tafel Info").Cells(21, 7).Value End If If runCounter = 3 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = Worksheets("Tafel Info").Cells(24, 12).Value Cells(8, 17).Value = Worksheets("Tafel Info").Cells(26, 12).Value Cells(11, 17).Value = Worksheets("Tafel Info").Cells(19, 12).Value Cells(12, 17).Value = Worksheets("Tafel Info").Cells(21, 12).Value End If If runCounter = 4 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = Worksheets("Tafel Info").Cells(47, 2).Value Cells(22, 5).Value = Worksheets("Tafel Info").Cells(49, 2).Value Cells(25, 5).Value = Worksheets("Tafel Info").Cells(42, 2).Value Cells(26, 5).Value = Worksheets("Tafel Info").Cells(44, 2).Value End If If runCounter = 5 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) 293 Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = Worksheets("Tafel Info").Cells(47, 7).Value Cells(22, 11).Value = Worksheets("Tafel Info").Cells(49, 7).Value Cells(25, 11).Value = Worksheets("Tafel Info").Cells(42, 7).Value Cells(26, 11).Value = Worksheets("Tafel Info").Cells(44, 7).Value End If If runCounter = 6 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = Worksheets("Tafel Info").Cells(47, 12).Value Cells(22, 17).Value = Worksheets("Tafel Info").Cells(49, 12).Value Cells(25, 17).Value = Worksheets("Tafel Info").Cells(42, 12).Value Cells(26, 17).Value = Worksheets("Tafel Info").Cells(44, 12).Value End If If runCounter = 7 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = Worksheets("Tafel Info").Cells(70, 2).Value Cells(36, 5).Value = Worksheets("Tafel Info").Cells(72, 2).Value Cells(39, 5).Value = Worksheets("Tafel Info").Cells(65, 2).Value Cells(40, 5).Value = Worksheets("Tafel Info").Cells(67, 2).Value End If If runCounter = 8 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = 9 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") 294 Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results20() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 1 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = Worksheets("Tafel Info").Cells(24, 2).Value Cells(8, 5).Value = Worksheets("Tafel Info").Cells(26, 2).Value Cells(11, 5).Value = Worksheets("Tafel Info").Cells(19, 2).Value Cells(12, 5).Value = Worksheets("Tafel Info").Cells(21, 2).Value End If If runCounter = 2 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value 295 Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = Worksheets("Tafel Info").Cells(24, 7).Value Cells(8, 11).Value = Worksheets("Tafel Info").Cells(26, 7).Value Cells(11, 11).Value = Worksheets("Tafel Info").Cells(19, 7).Value Cells(12, 11).Value = Worksheets("Tafel Info").Cells(21, 7).Value End If If runCounter = 4 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = Worksheets("Tafel Info").Cells(24, 12).Value Cells(8, 17).Value = Worksheets("Tafel Info").Cells(26, 12).Value Cells(11, 17).Value = Worksheets("Tafel Info").Cells(19, 12).Value Cells(12, 17).Value = Worksheets("Tafel Info").Cells(21, 12).Value End If If runCounter = 5 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = Worksheets("Tafel Info").Cells(47, 2).Value Cells(22, 5).Value = Worksheets("Tafel Info").Cells(49, 2).Value Cells(25, 5).Value = Worksheets("Tafel Info").Cells(42, 2).Value Cells(26, 5).Value = Worksheets("Tafel Info").Cells(44, 2).Value End If If runCounter = 8 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = Worksheets("Tafel Info").Cells(47, 7).Value Cells(22, 11).Value = Worksheets("Tafel Info").Cells(49, 7).Value Cells(25, 11).Value = Worksheets("Tafel Info").Cells(42, 7).Value Cells(26, 11).Value = Worksheets("Tafel Info").Cells(44, 7).Value End If If runCounter = 10 Then 296 Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = Worksheets("Tafel Info").Cells(47, 12).Value Cells(22, 17).Value = Worksheets("Tafel Info").Cells(49, 12).Value Cells(25, 17).Value = Worksheets("Tafel Info").Cells(42, 12).Value Cells(26, 17).Value = Worksheets("Tafel Info").Cells(44, 12).Value End If If Worksheets("EChem System").Cells(12, 8).Value > 10 And Worksheets("EChem System").Cells(12, 8).Value <= 12 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = Worksheets("Tafel Info").Cells(70, 2).Value Cells(36, 5).Value = Worksheets("Tafel Info").Cells(72, 2).Value Cells(39, 5).Value = Worksheets("Tafel Info").Cells(65, 2).Value Cells(40, 5).Value = Worksheets("Tafel Info").Cells(67, 2).Value End If End If If Worksheets("EChem System").Cells(12, 8).Value > 12 And Worksheets("EChem System").Cells(12, 8).Value <= 15 Then If runCounter = 12 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = Worksheets("Tafel Info").Cells(70, 2).Value Cells(36, 5).Value = Worksheets("Tafel Info").Cells(72, 2).Value Cells(39, 5).Value = Worksheets("Tafel Info").Cells(65, 2).Value Cells(40, 5).Value = Worksheets("Tafel Info").Cells(67, 2).Value End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) 297 Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If End If If Worksheets("EChem System").Cells(12, 8).Value = 16 Then If runCounter = 12 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = Worksheets("Tafel Info").Cells(70, 2).Value Cells(36, 5).Value = Worksheets("Tafel Info").Cells(72, 2).Value Cells(39, 5).Value = Worksheets("Tafel Info").Cells(65, 2).Value Cells(40, 5).Value = Worksheets("Tafel Info").Cells(67, 2).Value End If If runCounter = 15 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value 298 Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If End If If Worksheets("EChem System").Cells(12, 8).Value > 16 And Worksheets("EChem System").Cells(12, 8).Value <= 18 Then If runCounter = 12 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = Worksheets("Tafel Info").Cells(70, 2).Value Cells(36, 5).Value = Worksheets("Tafel Info").Cells(72, 2).Value Cells(39, 5).Value = Worksheets("Tafel Info").Cells(65, 2).Value Cells(40, 5).Value = Worksheets("Tafel Info").Cells(67, 2).Value End If If runCounter = 15 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = 16 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value 299 End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value End If End If If Worksheets("EChem System").Cells(12, 8).Value > 18 And Worksheets("EChem System").Cells(12, 8).Value <= 20 Then If runCounter = 12 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = Worksheets("Tafel Info").Cells(70, 2).Value Cells(36, 5).Value = Worksheets("Tafel Info").Cells(72, 2).Value Cells(39, 5).Value = Worksheets("Tafel Info").Cells(65, 2).Value Cells(40, 5).Value = Worksheets("Tafel Info").Cells(67, 2).Value End If If runCounter = 15 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = 16 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value 300 Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If If runCounter = 18 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = Worksheets("Tafel Info").Cells(93, 7).Value Cells(50, 11).Value = Worksheets("Tafel Info").Cells(95, 7).Value Cells(53, 11).Value = Worksheets("Tafel Info").Cells(88, 7).Value Cells(54, 11).Value = Worksheets("Tafel Info").Cells(90, 7).Value End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results30() 301 Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 1 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = Worksheets("Tafel Info").Cells(24, 2).Value Cells(8, 5).Value = Worksheets("Tafel Info").Cells(26, 2).Value Cells(11, 5).Value = Worksheets("Tafel Info").Cells(19, 2).Value Cells(12, 5).Value = Worksheets("Tafel Info").Cells(21, 2).Value End If If runCounter = 3 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = Worksheets("Tafel Info").Cells(24, 7).Value Cells(8, 11).Value = Worksheets("Tafel Info").Cells(26, 7).Value Cells(11, 11).Value = Worksheets("Tafel Info").Cells(19, 7).Value Cells(12, 11).Value = Worksheets("Tafel Info").Cells(21, 7).Value End If If runCounter = 5 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = Worksheets("Tafel Info").Cells(24, 12).Value Cells(8, 17).Value = Worksheets("Tafel Info").Cells(26, 12).Value Cells(11, 17).Value = Worksheets("Tafel Info").Cells(19, 12).Value Cells(12, 17).Value = Worksheets("Tafel Info").Cells(21, 12).Value End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) 302 Cells(19, 5).Value = Worksheets("Tafel Info").Cells(47, 2).Value Cells(22, 5).Value = Worksheets("Tafel Info").Cells(49, 2).Value Cells(25, 5).Value = Worksheets("Tafel Info").Cells(42, 2).Value Cells(26, 5).Value = Worksheets("Tafel Info").Cells(44, 2).Value End If If runCounter = 15 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = Worksheets("Tafel Info").Cells(47, 7).Value Cells(22, 11).Value = Worksheets("Tafel Info").Cells(49, 7).Value Cells(25, 11).Value = Worksheets("Tafel Info").Cells(42, 7).Value Cells(26, 11).Value = Worksheets("Tafel Info").Cells(44, 7).Value End If If runCounter = 18 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = Worksheets("Tafel Info").Cells(47, 12).Value Cells(22, 17).Value = Worksheets("Tafel Info").Cells(49, 12).Value Cells(25, 17).Value = Worksheets("Tafel Info").Cells(42, 12).Value Cells(26, 17).Value = Worksheets("Tafel Info").Cells(44, 12).Value End If If runCounter = 20 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = Worksheets("Tafel Info").Cells(70, 2).Value Cells(36, 5).Value = Worksheets("Tafel Info").Cells(72, 2).Value Cells(39, 5).Value = Worksheets("Tafel Info").Cells(65, 2).Value Cells(40, 5).Value = Worksheets("Tafel Info").Cells(67, 2).Value End If If Worksheets("EChem System").Cells(12, 8).Value > 20 And Worksheets("EChem System").Cells(12, 8).Value < 23 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") 303 Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If End If If Worksheets("EChem System").Cells(12, 8).Value = 23 Then If runCounter = 23 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If End If If Worksheets("EChem System").Cells(12, 8).Value = 24 Then If runCounter = 23 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value 304 Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If End If If Worksheets("EChem System").Cells(12, 8).Value = 25 Then If runCounter = 23 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = 25 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If End If If Worksheets("EChem System").Cells(12, 8).Value > 25 And Worksheets("EChem System").Cells(12, 8).Value <= 27 Then If runCounter = 23 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) 305 Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = 25 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value End If End If If Worksheets("EChem System").Cells(12, 8).Value > 27 And Worksheets("EChem System").Cells(12, 8).Value <= 30 Then If runCounter = 23 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value 306 Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = 25 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If If runCounter = 27 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = Worksheets("Tafel Info").Cells(93, 7).Value Cells(50, 11).Value = Worksheets("Tafel Info").Cells(95, 7).Value Cells(53, 11).Value = Worksheets("Tafel Info").Cells(88, 7).Value Cells(54, 11).Value = Worksheets("Tafel Info").Cells(90, 7).Value 307 End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results40() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 1 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = Worksheets("Tafel Info").Cells(24, 2).Value Cells(8, 5).Value = Worksheets("Tafel Info").Cells(26, 2).Value Cells(11, 5).Value = Worksheets("Tafel Info").Cells(19, 2).Value Cells(12, 5).Value = Worksheets("Tafel Info").Cells(21, 2).Value End If If runCounter = 5 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = Worksheets("Tafel Info").Cells(24, 7).Value Cells(8, 11).Value = Worksheets("Tafel Info").Cells(26, 7).Value Cells(11, 11).Value = Worksheets("Tafel Info").Cells(19, 7).Value Cells(12, 11).Value = Worksheets("Tafel Info").Cells(21, 7).Value End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = Worksheets("Tafel Info").Cells(24, 12).Value Cells(8, 17).Value = Worksheets("Tafel Info").Cells(26, 12).Value Cells(11, 17).Value = Worksheets("Tafel Info").Cells(19, 12).Value Cells(12, 17).Value = Worksheets("Tafel Info").Cells(21, 12).Value End If If runCounter = 15 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) 308 Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = Worksheets("Tafel Info").Cells(47, 2).Value Cells(22, 5).Value = Worksheets("Tafel Info").Cells(49, 2).Value Cells(25, 5).Value = Worksheets("Tafel Info").Cells(42, 2).Value Cells(26, 5).Value = Worksheets("Tafel Info").Cells(44, 2).Value End If If runCounter = 20 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = Worksheets("Tafel Info").Cells(47, 7).Value Cells(22, 11).Value = Worksheets("Tafel Info").Cells(49, 7).Value Cells(25, 11).Value = Worksheets("Tafel Info").Cells(42, 7).Value Cells(26, 11).Value = Worksheets("Tafel Info").Cells(44, 7).Value End If If runCounter = 25 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = Worksheets("Tafel Info").Cells(47, 12).Value Cells(22, 17).Value = Worksheets("Tafel Info").Cells(49, 12).Value Cells(25, 17).Value = Worksheets("Tafel Info").Cells(42, 12).Value Cells(26, 17).Value = Worksheets("Tafel Info").Cells(44, 12).Value End If If runCounter = 30 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = Worksheets("Tafel Info").Cells(70, 2).Value 309 Cells(36, 5).Value = Worksheets("Tafel Info").Cells(72, 2).Value Cells(39, 5).Value = Worksheets("Tafel Info").Cells(65, 2).Value Cells(40, 5).Value = Worksheets("Tafel Info").Cells(67, 2).Value End If If Worksheets("EChem System").Cells(12, 8).Value > 30 And Worksheets("EChem System").Cells(12, 8).Value < 33 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If End If If Worksheets("EChem System").Cells(12, 8).Value = 33 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If End If If Worksheets("EChem System").Cells(12, 8).Value = 34 Then If runCounter = 33 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If 310 If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If End If If Worksheets("EChem System").Cells(12, 8).Value = 35 Then If runCounter = 33 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = 35 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If End If If Worksheets("EChem System").Cells(12, 8).Value > 35 And Worksheets("EChem System").Cells(12, 8).Value <= 37 Then If runCounter = 33 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) 311 Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = 35 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value End If End If If Worksheets("EChem System").Cells(12, 8).Value > 37 And Worksheets("EChem System").Cells(12, 8).Value <= 40 Then If runCounter = 33 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value 312 Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = 35 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If If runCounter = 37 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) 313 Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = Worksheets("Tafel Info").Cells(93, 7).Value Cells(50, 11).Value = Worksheets("Tafel Info").Cells(95, 7).Value Cells(53, 11).Value = Worksheets("Tafel Info").Cells(88, 7).Value Cells(54, 11).Value = Worksheets("Tafel Info").Cells(90, 7).Value End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results50() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 1 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = Worksheets("Tafel Info").Cells(24, 2).Value Cells(8, 5).Value = Worksheets("Tafel Info").Cells(26, 2).Value Cells(11, 5).Value = Worksheets("Tafel Info").Cells(19, 2).Value Cells(12, 5).Value = Worksheets("Tafel Info").Cells(21, 2).Value End If If runCounter = 5 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = Worksheets("Tafel Info").Cells(24, 7).Value Cells(8, 11).Value = Worksheets("Tafel Info").Cells(26, 7).Value Cells(11, 11).Value = Worksheets("Tafel Info").Cells(19, 7).Value Cells(12, 11).Value = Worksheets("Tafel Info").Cells(21, 7).Value End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = Worksheets("Tafel Info").Cells(24, 12).Value Cells(8, 17).Value = Worksheets("Tafel Info").Cells(26, 12).Value Cells(11, 17).Value = Worksheets("Tafel Info").Cells(19, 12).Value Cells(12, 17).Value = Worksheets("Tafel Info").Cells(21, 12).Value End If If runCounter = 15 Then 314 Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = Worksheets("Tafel Info").Cells(47, 2).Value Cells(22, 5).Value = Worksheets("Tafel Info").Cells(49, 2).Value Cells(25, 5).Value = Worksheets("Tafel Info").Cells(42, 2).Value Cells(26, 5).Value = Worksheets("Tafel Info").Cells(44, 2).Value End If If runCounter = 20 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = Worksheets("Tafel Info").Cells(47, 7).Value Cells(22, 11).Value = Worksheets("Tafel Info").Cells(49, 7).Value Cells(25, 11).Value = Worksheets("Tafel Info").Cells(42, 7).Value Cells(26, 11).Value = Worksheets("Tafel Info").Cells(44, 7).Value End If If runCounter = 25 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = Worksheets("Tafel Info").Cells(47, 12).Value Cells(22, 17).Value = Worksheets("Tafel Info").Cells(49, 12).Value Cells(25, 17).Value = Worksheets("Tafel Info").Cells(42, 12).Value Cells(26, 17).Value = Worksheets("Tafel Info").Cells(44, 12).Value End If If runCounter = 30 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value 315 Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = Worksheets("Tafel Info").Cells(70, 2).Value Cells(36, 5).Value = Worksheets("Tafel Info").Cells(72, 2).Value Cells(39, 5).Value = Worksheets("Tafel Info").Cells(65, 2).Value Cells(40, 5).Value = Worksheets("Tafel Info").Cells(67, 2).Value End If If runCounter = 35 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = 40 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If If Worksheets("EChem System").Cells(12, 8).Value > 40 And Worksheets("EChem System").Cells(12, 8).Value < 45 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value 316 Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value End If End If If runCounter = 45 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value End If If Worksheets("EChem System").Cells(12, 8).Value > 45 And Worksheets("EChem System").Cells(12, 8).Value <= 50 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = Worksheets("Tafel Info").Cells(93, 7).Value Cells(50, 11).Value = Worksheets("Tafel Info").Cells(95, 7).Value Cells(53, 11).Value = Worksheets("Tafel Info").Cells(88, 7).Value Cells(54, 11).Value = Worksheets("Tafel Info").Cells(90, 7).Value End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results60() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 5 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = Worksheets("Tafel Info").Cells(24, 2).Value 317 Cells(8, 5).Value = Worksheets("Tafel Info").Cells(26, 2).Value Cells(11, 5).Value = Worksheets("Tafel Info").Cells(19, 2).Value Cells(12, 5).Value = Worksheets("Tafel Info").Cells(21, 2).Value End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = Worksheets("Tafel Info").Cells(24, 7).Value Cells(8, 11).Value = Worksheets("Tafel Info").Cells(26, 7).Value Cells(11, 11).Value = Worksheets("Tafel Info").Cells(19, 7).Value Cells(12, 11).Value = Worksheets("Tafel Info").Cells(21, 7).Value End If If runCounter = 20 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = Worksheets("Tafel Info").Cells(24, 12).Value Cells(8, 17).Value = Worksheets("Tafel Info").Cells(26, 12).Value Cells(11, 17).Value = Worksheets("Tafel Info").Cells(19, 12).Value Cells(12, 17).Value = Worksheets("Tafel Info").Cells(21, 12).Value End If If runCounter = 25 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = Worksheets("Tafel Info").Cells(47, 2).Value Cells(22, 5).Value = Worksheets("Tafel Info").Cells(49, 2).Value Cells(25, 5).Value = Worksheets("Tafel Info").Cells(42, 2).Value Cells(26, 5).Value = Worksheets("Tafel Info").Cells(44, 2).Value End If If runCounter = 30 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) 318 Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = Worksheets("Tafel Info").Cells(47, 7).Value Cells(22, 11).Value = Worksheets("Tafel Info").Cells(49, 7).Value Cells(25, 11).Value = Worksheets("Tafel Info").Cells(42, 7).Value Cells(26, 11).Value = Worksheets("Tafel Info").Cells(44, 7).Value End If If runCounter = 35 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = Worksheets("Tafel Info").Cells(47, 12).Value Cells(22, 17).Value = Worksheets("Tafel Info").Cells(49, 12).Value Cells(25, 17).Value = Worksheets("Tafel Info").Cells(42, 12).Value Cells(26, 17).Value = Worksheets("Tafel Info").Cells(44, 12).Value End If If runCounter = 40 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = Worksheets("Tafel Info").Cells(70, 2).Value Cells(36, 5).Value = Worksheets("Tafel Info").Cells(72, 2).Value Cells(39, 5).Value = Worksheets("Tafel Info").Cells(65, 2).Value Cells(40, 5).Value = Worksheets("Tafel Info").Cells(67, 2).Value End If If runCounter = 45 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value 319 Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = 50 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If If Worksheets("EChem System").Cells(12, 8).Value > 50 And Worksheets("EChem System").Cells(12, 8).Value < 55 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value End If End If If runCounter = 55 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value 320 End If If Worksheets("EChem System").Cells(12, 8).Value > 55 And Worksheets("EChem System").Cells(12, 8).Value <= 60 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = Worksheets("Tafel Info").Cells(93, 7).Value Cells(50, 11).Value = Worksheets("Tafel Info").Cells(95, 7).Value Cells(53, 11).Value = Worksheets("Tafel Info").Cells(88, 7).Value Cells(54, 11).Value = Worksheets("Tafel Info").Cells(90, 7).Value End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results70() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 5 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = Worksheets("Tafel Info").Cells(24, 2).Value Cells(8, 5).Value = Worksheets("Tafel Info").Cells(26, 2).Value Cells(11, 5).Value = Worksheets("Tafel Info").Cells(19, 2).Value Cells(12, 5).Value = Worksheets("Tafel Info").Cells(21, 2).Value End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = Worksheets("Tafel Info").Cells(24, 7).Value Cells(8, 11).Value = Worksheets("Tafel Info").Cells(26, 7).Value Cells(11, 11).Value = Worksheets("Tafel Info").Cells(19, 7).Value Cells(12, 11).Value = Worksheets("Tafel Info").Cells(21, 7).Value End If 321 If runCounter = 20 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = Worksheets("Tafel Info").Cells(24, 12).Value Cells(8, 17).Value = Worksheets("Tafel Info").Cells(26, 12).Value Cells(11, 17).Value = Worksheets("Tafel Info").Cells(19, 12).Value Cells(12, 17).Value = Worksheets("Tafel Info").Cells(21, 12).Value End If If runCounter = 30 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = Worksheets("Tafel Info").Cells(47, 2).Value Cells(22, 5).Value = Worksheets("Tafel Info").Cells(49, 2).Value Cells(25, 5).Value = Worksheets("Tafel Info").Cells(42, 2).Value Cells(26, 5).Value = Worksheets("Tafel Info").Cells(44, 2).Value End If If runCounter = 40 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = Worksheets("Tafel Info").Cells(47, 7).Value Cells(22, 11).Value = Worksheets("Tafel Info").Cells(49, 7).Value Cells(25, 11).Value = Worksheets("Tafel Info").Cells(42, 7).Value Cells(26, 11).Value = Worksheets("Tafel Info").Cells(44, 7).Value End If If runCounter = 45 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) 322 Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = Worksheets("Tafel Info").Cells(47, 12).Value Cells(22, 17).Value = Worksheets("Tafel Info").Cells(49, 12).Value Cells(25, 17).Value = Worksheets("Tafel Info").Cells(42, 12).Value Cells(26, 17).Value = Worksheets("Tafel Info").Cells(44, 12).Value End If If runCounter = 50 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = Worksheets("Tafel Info").Cells(70, 2).Value Cells(36, 5).Value = Worksheets("Tafel Info").Cells(72, 2).Value Cells(39, 5).Value = Worksheets("Tafel Info").Cells(65, 2).Value Cells(40, 5).Value = Worksheets("Tafel Info").Cells(67, 2).Value End If If runCounter = 55 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = 60 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value 323 Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If If Worksheets("EChem System").Cells(12, 8).Value > 60 And Worksheets("EChem System").Cells(12, 8).Value < 65 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value End If End If If runCounter = 65 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value End If If Worksheets("EChem System").Cells(12, 8).Value > 65 And Worksheets("EChem System").Cells(12, 8).Value <= 70 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) 324 Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = Worksheets("Tafel Info").Cells(93, 7).Value Cells(50, 11).Value = Worksheets("Tafel Info").Cells(95, 7).Value Cells(53, 11).Value = Worksheets("Tafel Info").Cells(88, 7).Value Cells(54, 11).Value = Worksheets("Tafel Info").Cells(90, 7).Value End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results80() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 5 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = Worksheets("Tafel Info").Cells(24, 2).Value Cells(8, 5).Value = Worksheets("Tafel Info").Cells(26, 2).Value Cells(11, 5).Value = Worksheets("Tafel Info").Cells(19, 2).Value Cells(12, 5).Value = Worksheets("Tafel Info").Cells(21, 2).Value End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = Worksheets("Tafel Info").Cells(24, 7).Value Cells(8, 11).Value = Worksheets("Tafel Info").Cells(26, 7).Value Cells(11, 11).Value = Worksheets("Tafel Info").Cells(19, 7).Value Cells(12, 11).Value = Worksheets("Tafel Info").Cells(21, 7).Value End If If runCounter = 20 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = Worksheets("Tafel Info").Cells(24, 12).Value Cells(8, 17).Value = Worksheets("Tafel Info").Cells(26, 12).Value Cells(11, 17).Value = Worksheets("Tafel Info").Cells(19, 12).Value Cells(12, 17).Value = Worksheets("Tafel Info").Cells(21, 12).Value End If If runCounter = 30 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select 325 Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = Worksheets("Tafel Info").Cells(47, 2).Value Cells(22, 5).Value = Worksheets("Tafel Info").Cells(49, 2).Value Cells(25, 5).Value = Worksheets("Tafel Info").Cells(42, 2).Value Cells(26, 5).Value = Worksheets("Tafel Info").Cells(44, 2).Value End If If runCounter = 40 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = Worksheets("Tafel Info").Cells(47, 7).Value Cells(22, 11).Value = Worksheets("Tafel Info").Cells(49, 7).Value Cells(25, 11).Value = Worksheets("Tafel Info").Cells(42, 7).Value Cells(26, 11).Value = Worksheets("Tafel Info").Cells(44, 7).Value End If If runCounter = 50 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = Worksheets("Tafel Info").Cells(47, 12).Value Cells(22, 17).Value = Worksheets("Tafel Info").Cells(49, 12).Value Cells(25, 17).Value = Worksheets("Tafel Info").Cells(42, 12).Value Cells(26, 17).Value = Worksheets("Tafel Info").Cells(44, 12).Value End If If runCounter = 60 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) 326 Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = Worksheets("Tafel Info").Cells(70, 2).Value Cells(36, 5).Value = Worksheets("Tafel Info").Cells(72, 2).Value Cells(39, 5).Value = Worksheets("Tafel Info").Cells(65, 2).Value Cells(40, 5).Value = Worksheets("Tafel Info").Cells(67, 2).Value End If If runCounter = 65 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = 70 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If If Worksheets("EChem System").Cells(12, 8).Value > 70 And Worksheets("EChem System").Cells(12, 8).Value < 75 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value 327 End If End If If runCounter = 75 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value End If If Worksheets("EChem System").Cells(12, 8).Value > 75 And Worksheets("EChem System").Cells(12, 8).Value <= 80 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = Worksheets("Tafel Info").Cells(93, 7).Value Cells(50, 11).Value = Worksheets("Tafel Info").Cells(95, 7).Value Cells(53, 11).Value = Worksheets("Tafel Info").Cells(88, 7).Value Cells(54, 11).Value = Worksheets("Tafel Info").Cells(90, 7).Value End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results90() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 5 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = Worksheets("Tafel Info").Cells(24, 2).Value Cells(8, 5).Value = Worksheets("Tafel Info").Cells(26, 2).Value Cells(11, 5).Value = Worksheets("Tafel Info").Cells(19, 2).Value Cells(12, 5).Value = Worksheets("Tafel Info").Cells(21, 2).Value 328 End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = Worksheets("Tafel Info").Cells(24, 7).Value Cells(8, 11).Value = Worksheets("Tafel Info").Cells(26, 7).Value Cells(11, 11).Value = Worksheets("Tafel Info").Cells(19, 7).Value Cells(12, 11).Value = Worksheets("Tafel Info").Cells(21, 7).Value End If If runCounter = 20 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = Worksheets("Tafel Info").Cells(24, 12).Value Cells(8, 17).Value = Worksheets("Tafel Info").Cells(26, 12).Value Cells(11, 17).Value = Worksheets("Tafel Info").Cells(19, 12).Value Cells(12, 17).Value = Worksheets("Tafel Info").Cells(21, 12).Value End If If runCounter = 30 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = Worksheets("Tafel Info").Cells(47, 2).Value Cells(22, 5).Value = Worksheets("Tafel Info").Cells(49, 2).Value Cells(25, 5).Value = Worksheets("Tafel Info").Cells(42, 2).Value Cells(26, 5).Value = Worksheets("Tafel Info").Cells(44, 2).Value End If If runCounter = 40 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value 329 Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = Worksheets("Tafel Info").Cells(47, 7).Value Cells(22, 11).Value = Worksheets("Tafel Info").Cells(49, 7).Value Cells(25, 11).Value = Worksheets("Tafel Info").Cells(42, 7).Value Cells(26, 11).Value = Worksheets("Tafel Info").Cells(44, 7).Value End If If runCounter = 50 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = Worksheets("Tafel Info").Cells(47, 12).Value Cells(22, 17).Value = Worksheets("Tafel Info").Cells(49, 12).Value Cells(25, 17).Value = Worksheets("Tafel Info").Cells(42, 12).Value Cells(26, 17).Value = Worksheets("Tafel Info").Cells(44, 12).Value End If If runCounter = 60 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = Worksheets("Tafel Info").Cells(70, 2).Value Cells(36, 5).Value = Worksheets("Tafel Info").Cells(72, 2).Value Cells(39, 5).Value = Worksheets("Tafel Info").Cells(65, 2).Value Cells(40, 5).Value = Worksheets("Tafel Info").Cells(67, 2).Value End If If runCounter = 70 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) 330 Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = 80 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If If Worksheets("EChem System").Cells(12, 8).Value > 80 And Worksheets("EChem System").Cells(12, 8).Value < 85 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value End If End If If runCounter = 85 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value End If If Worksheets("EChem System").Cells(12, 8).Value > 85 And Worksheets("EChem System").Cells(12, 8).Value <= 90 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then 331 Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = Worksheets("Tafel Info").Cells(93, 7).Value Cells(50, 11).Value = Worksheets("Tafel Info").Cells(95, 7).Value Cells(53, 11).Value = Worksheets("Tafel Info").Cells(88, 7).Value Cells(54, 11).Value = Worksheets("Tafel Info").Cells(90, 7).Value End If End If Next runCounter 'Application.ScreenUpdating = False Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results100() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 5 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = Worksheets("Tafel Info").Cells(24, 2).Value Cells(8, 5).Value = Worksheets("Tafel Info").Cells(26, 2).Value Cells(11, 5).Value = Worksheets("Tafel Info").Cells(19, 2).Value Cells(12, 5).Value = Worksheets("Tafel Info").Cells(21, 2).Value End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = Worksheets("Tafel Info").Cells(24, 7).Value Cells(8, 11).Value = Worksheets("Tafel Info").Cells(26, 7).Value Cells(11, 11).Value = Worksheets("Tafel Info").Cells(19, 7).Value Cells(12, 11).Value = Worksheets("Tafel Info").Cells(21, 7).Value End If If runCounter = 20 Then Worksheets("Overall Results").Range("B2:F14").Copy _ 332 Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = Worksheets("Tafel Info").Cells(24, 12).Value Cells(8, 17).Value = Worksheets("Tafel Info").Cells(26, 12).Value Cells(11, 17).Value = Worksheets("Tafel Info").Cells(19, 12).Value Cells(12, 17).Value = Worksheets("Tafel Info").Cells(21, 12).Value End If If runCounter = 30 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = Worksheets("Tafel Info").Cells(47, 2).Value Cells(22, 5).Value = Worksheets("Tafel Info").Cells(49, 2).Value Cells(25, 5).Value = Worksheets("Tafel Info").Cells(42, 2).Value Cells(26, 5).Value = Worksheets("Tafel Info").Cells(44, 2).Value End If If runCounter = 40 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = Worksheets("Tafel Info").Cells(47, 7).Value Cells(22, 11).Value = Worksheets("Tafel Info").Cells(49, 7).Value Cells(25, 11).Value = Worksheets("Tafel Info").Cells(42, 7).Value Cells(26, 11).Value = Worksheets("Tafel Info").Cells(44, 7).Value End If If runCounter = 50 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) 333 Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = Worksheets("Tafel Info").Cells(47, 12).Value Cells(22, 17).Value = Worksheets("Tafel Info").Cells(49, 12).Value Cells(25, 17).Value = Worksheets("Tafel Info").Cells(42, 12).Value Cells(26, 17).Value = Worksheets("Tafel Info").Cells(44, 12).Value End If If runCounter = 60 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = Worksheets("Tafel Info").Cells(70, 2).Value Cells(36, 5).Value = Worksheets("Tafel Info").Cells(72, 2).Value Cells(39, 5).Value = Worksheets("Tafel Info").Cells(65, 2).Value Cells(40, 5).Value = Worksheets("Tafel Info").Cells(67, 2).Value End If If runCounter = 70 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = Worksheets("Tafel Info").Cells(70, 7).Value Cells(36, 11).Value = Worksheets("Tafel Info").Cells(72, 7).Value Cells(39, 11).Value = Worksheets("Tafel Info").Cells(65, 7).Value Cells(40, 11).Value = Worksheets("Tafel Info").Cells(67, 7).Value End If If runCounter = 80 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = Worksheets("Tafel Info").Cells(70, 12).Value Cells(36, 17).Value = Worksheets("Tafel Info").Cells(72, 12).Value Cells(39, 17).Value = Worksheets("Tafel Info").Cells(65, 12).Value 334 Cells(40, 17).Value = Worksheets("Tafel Info").Cells(67, 12).Value End If If runCounter = 90 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = Worksheets("Tafel Info").Cells(93, 2).Value Cells(50, 5).Value = Worksheets("Tafel Info").Cells(95, 2).Value Cells(53, 5).Value = Worksheets("Tafel Info").Cells(88, 2).Value Cells(54, 5).Value = Worksheets("Tafel Info").Cells(90, 2).Value End If If Worksheets("EChem System").Cells(12, 8).Value > 90 And Worksheets("EChem System").Cells(12, 8).Value <= 100 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = Worksheets("Tafel Info").Cells(93, 7).Value Cells(50, 11).Value = Worksheets("Tafel Info").Cells(95, 7).Value Cells(53, 11).Value = Worksheets("Tafel Info").Cells(88, 7).Value Cells(54, 11).Value = Worksheets("Tafel Info").Cells(90, 7).Value End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results_0() Application.ScreenUpdating = False If Worksheets("EChem System").Cells(12, 8).Value <= 10 Then results10_1 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 20 Then results20_1 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 30 Then results30_1 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 40 Then results40_1 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 50 Then results50_1 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 60 Then results60_1 335 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 70 Then results70_1 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 80 Then results80_1 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 90 Then results90_1 ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 100 Then results100_1 End If Application.ScreenUpdating = False End Sub Public Sub results10_1() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 1 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = "'No' was selected for Tafel option" Cells(8, 5).Value = "'No' was selected for Tafel option" Cells(11, 5).Value = "'No' was selected for Tafel option" Cells(12, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 2 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = "'No' was selected for Tafel option" Cells(8, 11).Value = "'No' was selected for Tafel option" Cells(11, 11).Value = "'No' was selected for Tafel option" Cells(12, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 3 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = "'No' was selected for Tafel option" Cells(8, 17).Value = "'No' was selected for Tafel option" Cells(11, 17).Value = "'No' was selected for Tafel option" Cells(12, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 4 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) 336 Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = "'No' was selected for Tafel option" Cells(22, 5).Value = "'No' was selected for Tafel option" Cells(25, 5).Value = "'No' was selected for Tafel option" Cells(26, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 5 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = "'No' was selected for Tafel option" Cells(22, 11).Value = "'No' was selected for Tafel option" Cells(25, 11).Value = "'No' was selected for Tafel option" Cells(26, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 6 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = "'No' was selected for Tafel option" Cells(22, 17).Value = "'No' was selected for Tafel option" Cells(25, 17).Value = "'No' was selected for Tafel option" Cells(26, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 7 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value 337 Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = "'No' was selected for Tafel option" Cells(36, 5).Value = "'No' was selected for Tafel option" Cells(39, 5).Value = "'No' was selected for Tafel option" Cells(40, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 8 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 9 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If Next runCounter 338 Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results20_1() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 1 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = "'No' was selected for Tafel option" Cells(8, 5).Value = "'No' was selected for Tafel option" Cells(11, 5).Value = "'No' was selected for Tafel option" Cells(12, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 2 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = "'No' was selected for Tafel option" Cells(8, 11).Value = "'No' was selected for Tafel option" Cells(11, 11).Value = "'No' was selected for Tafel option" Cells(12, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 4 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = "'No' was selected for Tafel option" Cells(8, 17).Value = "'No' was selected for Tafel option" Cells(11, 17).Value = "'No' was selected for Tafel option" Cells(12, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 5 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value 339 Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = "'No' was selected for Tafel option" Cells(22, 5).Value = "'No' was selected for Tafel option" Cells(25, 5).Value = "'No' was selected for Tafel option" Cells(26, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 8 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = "'No' was selected for Tafel option" Cells(22, 11).Value = "'No' was selected for Tafel option" Cells(25, 11).Value = "'No' was selected for Tafel option" Cells(26, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = "'No' was selected for Tafel option" Cells(22, 17).Value = "'No' was selected for Tafel option" Cells(25, 17).Value = "'No' was selected for Tafel option" Cells(26, 17).Value = "'No' was selected for Tafel option" End If If Worksheets("EChem System").Cells(12, 8).Value > 10 And Worksheets("EChem System").Cells(12, 8).Value <= 12 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = "'No' was selected for Tafel option" Cells(36, 5).Value = "'No' was selected for Tafel option" Cells(39, 5).Value = "'No' was selected for Tafel option" 340 Cells(40, 5).Value = "'No' was selected for Tafel option" End If End If If Worksheets("EChem System").Cells(12, 8).Value > 12 And Worksheets("EChem System").Cells(12, 8).Value < 15 Then If runCounter = 12 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = "'No' was selected for Tafel option" Cells(36, 5).Value = "'No' was selected for Tafel option" Cells(39, 5).Value = "'No' was selected for Tafel option" Cells(40, 5).Value = "'No' was selected for Tafel option" End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If End If If Worksheets("EChem System").Cells(12, 8).Value = 15 Then If runCounter = 12 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = "'No' was selected for Tafel option" Cells(36, 5).Value = "'No' was selected for Tafel option" Cells(39, 5).Value = "'No' was selected for Tafel option" Cells(40, 5).Value = "'No' was selected for Tafel option" End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") 341 Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If End If If Worksheets("EChem System").Cells(12, 8).Value = 16 Then If runCounter = 12 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = "'No' was selected for Tafel option" Cells(36, 5).Value = "'No' was selected for Tafel option" Cells(39, 5).Value = "'No' was selected for Tafel option" Cells(40, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 15 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value 342 Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If End If If Worksheets("EChem System").Cells(12, 8).Value > 16 And Worksheets("EChem System").Cells(12, 8).Value <= 18 Then If runCounter = 12 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = "'No' was selected for Tafel option" Cells(36, 5).Value = "'No' was selected for Tafel option" Cells(39, 5).Value = "'No' was selected for Tafel option" Cells(40, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 15 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 16 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) 343 Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If End If If Worksheets("EChem System").Cells(12, 8).Value > 18 And Worksheets("EChem System").Cells(12, 8).Value <= 20 Then If runCounter = 12 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = "'No' was selected for Tafel option" Cells(36, 5).Value = "'No' was selected for Tafel option" Cells(39, 5).Value = "'No' was selected for Tafel option" Cells(40, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 15 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 16 Then Worksheets("Overall Results").Range("B2:F14").Copy _ 344 Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 18 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = "'No' was selected for Tafel option" Cells(50, 11).Value = "'No' was selected for Tafel option" Cells(53, 11).Value = "'No' was selected for Tafel option" Cells(54, 11).Value = "'No' was selected for Tafel option" End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit 345 Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results30_1() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 1 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = "'No' was selected for Tafel option" Cells(8, 5).Value = "'No' was selected for Tafel option" Cells(11, 5).Value = "'No' was selected for Tafel option" Cells(12, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 3 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = "'No' was selected for Tafel option" Cells(8, 11).Value = "'No' was selected for Tafel option" Cells(11, 11).Value = "'No' was selected for Tafel option" Cells(12, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 5 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = "'No' was selected for Tafel option" Cells(8, 17).Value = "'No' was selected for Tafel option" Cells(11, 17).Value = "'No' was selected for Tafel option" Cells(12, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) 346 Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = "'No' was selected for Tafel option" Cells(22, 5).Value = "'No' was selected for Tafel option" Cells(25, 5).Value = "'No' was selected for Tafel option" Cells(26, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 15 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = "'No' was selected for Tafel option" Cells(22, 11).Value = "'No' was selected for Tafel option" Cells(25, 11).Value = "'No' was selected for Tafel option" Cells(26, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 18 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = "'No' was selected for Tafel option" Cells(22, 17).Value = "'No' was selected for Tafel option" Cells(25, 17).Value = "'No' was selected for Tafel option" Cells(26, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 20 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = "'No' was selected for Tafel option" Cells(36, 5).Value = "'No' was selected for Tafel option" Cells(39, 5).Value = "'No' was selected for Tafel option" Cells(40, 5).Value = "'No' was selected for Tafel option" End If 347 If Worksheets("EChem System").Cells(12, 8).Value > 20 And Worksheets("EChem System").Cells(12, 8).Value < 23 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If End If If Worksheets("EChem System").Cells(12, 8).Value = 23 Then If runCounter = 23 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If End If If Worksheets("EChem System").Cells(12, 8).Value = 24 Then If runCounter = 23 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select 348 Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If End If If Worksheets("EChem System").Cells(12, 8).Value = 25 Then If runCounter = 23 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 25 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If End If If Worksheets("EChem System").Cells(12, 8).Value > 25 And Worksheets("EChem System").Cells(12, 8).Value <= 27 Then If runCounter = 23 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) 349 Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 25 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If End If If Worksheets("EChem System").Cells(12, 8).Value > 27 And Worksheets("EChem System").Cells(12, 8).Value <= 30 Then If runCounter = 23 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) 350 Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 25 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 27 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) 351 Cells(47, 11).Value = "'No' was selected for Tafel option" Cells(50, 11).Value = "'No' was selected for Tafel option" Cells(53, 11).Value = "'No' was selected for Tafel option" Cells(54, 11).Value = "'No' was selected for Tafel option" End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results40_1() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 1 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = "'No' was selected for Tafel option" Cells(8, 5).Value = "'No' was selected for Tafel option" Cells(11, 5).Value = "'No' was selected for Tafel option" Cells(12, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 5 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = "'No' was selected for Tafel option" Cells(8, 11).Value = "'No' was selected for Tafel option" Cells(11, 11).Value = "'No' was selected for Tafel option" Cells(12, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = "'No' was selected for Tafel option" Cells(8, 17).Value = "'No' was selected for Tafel option" Cells(11, 17).Value = "'No' was selected for Tafel option" Cells(12, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 15 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) 352 Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = "'No' was selected for Tafel option" Cells(22, 5).Value = "'No' was selected for Tafel option" Cells(25, 5).Value = "'No' was selected for Tafel option" Cells(26, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 20 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = "'No' was selected for Tafel option" Cells(22, 11).Value = "'No' was selected for Tafel option" Cells(25, 11).Value = "'No' was selected for Tafel option" Cells(26, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 25 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = "'No' was selected for Tafel option" Cells(22, 17).Value = "'No' was selected for Tafel option" Cells(25, 17).Value = "'No' was selected for Tafel option" Cells(26, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 30 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value 353 Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = "'No' was selected for Tafel option" Cells(36, 5).Value = "'No' was selected for Tafel option" Cells(39, 5).Value = "'No' was selected for Tafel option" Cells(40, 5).Value = "'No' was selected for Tafel option" End If If Worksheets("EChem System").Cells(12, 8).Value > 30 And Worksheets("EChem System").Cells(12, 8).Value < 33 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If End If If Worksheets("EChem System").Cells(12, 8).Value = 33 Then If runCounter = 33 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If End If If Worksheets("EChem System").Cells(12, 8).Value = 34 Then If runCounter = 33 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" 354 Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If End If If Worksheets("EChem System").Cells(12, 8).Value = 35 Then If runCounter = 33 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 35 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If End If If Worksheets("EChem System").Cells(12, 8).Value > 35 And Worksheets("EChem System").Cells(12, 8).Value <= 37 Then If runCounter = 33 Then 355 Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 35 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If End If If Worksheets("EChem System").Cells(12, 8).Value > 37 And Worksheets("EChem System").Cells(12, 8).Value <= 40 Then If runCounter = 33 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value 356 Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 35 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 37 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) 357 Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = "'No' was selected for Tafel option" Cells(50, 11).Value = "'No' was selected for Tafel option" Cells(53, 11).Value = "'No' was selected for Tafel option" Cells(54, 11).Value = "'No' was selected for Tafel option" End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results50_1() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 1 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = "'No' was selected for Tafel option" Cells(8, 5).Value = "'No' was selected for Tafel option" Cells(11, 5).Value = "'No' was selected for Tafel option" Cells(12, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 5 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = "'No' was selected for Tafel option" Cells(8, 11).Value = "'No' was selected for Tafel option" Cells(11, 11).Value = "'No' was selected for Tafel option" Cells(12, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = "'No' was selected for Tafel option" Cells(8, 17).Value = "'No' was selected for Tafel option" 358 Cells(11, 17).Value = "'No' was selected for Tafel option" Cells(12, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 15 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = "'No' was selected for Tafel option" Cells(22, 5).Value = "'No' was selected for Tafel option" Cells(25, 5).Value = "'No' was selected for Tafel option" Cells(26, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 20 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = "'No' was selected for Tafel option" Cells(22, 11).Value = "'No' was selected for Tafel option" Cells(25, 11).Value = "'No' was selected for Tafel option" Cells(26, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 25 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = "'No' was selected for Tafel option" Cells(22, 17).Value = "'No' was selected for Tafel option" Cells(25, 17).Value = "'No' was selected for Tafel option" Cells(26, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 30 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value 359 Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = "'No' was selected for Tafel option" Cells(36, 5).Value = "'No' was selected for Tafel option" Cells(39, 5).Value = "'No' was selected for Tafel option" Cells(40, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 35 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 40 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If If Worksheets("EChem System").Cells(12, 8).Value > 40 And Worksheets("EChem System").Cells(12, 8).Value < 45 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value 360 Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If End If If runCounter = 45 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If If Worksheets("EChem System").Cells(12, 8).Value > 45 And Worksheets("EChem System").Cells(12, 8).Value <= 50 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = "'No' was selected for Tafel option" Cells(50, 11).Value = "'No' was selected for Tafel option" Cells(53, 11).Value = "'No' was selected for Tafel option" Cells(54, 11).Value = "'No' was selected for Tafel option" End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results60_1() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 5 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value 361 Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = "'No' was selected for Tafel option" Cells(8, 5).Value = "'No' was selected for Tafel option" Cells(11, 5).Value = "'No' was selected for Tafel option" Cells(12, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = "'No' was selected for Tafel option" Cells(8, 11).Value = "'No' was selected for Tafel option" Cells(11, 11).Value = "'No' was selected for Tafel option" Cells(12, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 20 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = "'No' was selected for Tafel option" Cells(8, 17).Value = "'No' was selected for Tafel option" Cells(11, 17).Value = "'No' was selected for Tafel option" Cells(12, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 25 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = "'No' was selected for Tafel option" Cells(22, 5).Value = "'No' was selected for Tafel option" Cells(25, 5).Value = "'No' was selected for Tafel option" Cells(26, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 30 Then 362 Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = "'No' was selected for Tafel option" Cells(22, 11).Value = "'No' was selected for Tafel option" Cells(25, 11).Value = "'No' was selected for Tafel option" Cells(26, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 35 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = "'No' was selected for Tafel option" Cells(22, 17).Value = "'No' was selected for Tafel option" Cells(25, 17).Value = "'No' was selected for Tafel option" Cells(26, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 40 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = "'No' was selected for Tafel option" Cells(36, 5).Value = "'No' was selected for Tafel option" Cells(39, 5).Value = "'No' was selected for Tafel option" Cells(40, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 45 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value 363 Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 50 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If If Worksheets("EChem System").Cells(12, 8).Value > 50 And Worksheets("EChem System").Cells(12, 8).Value < 55 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If End If If runCounter = 55 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) 364 Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If If Worksheets("EChem System").Cells(12, 8).Value > 55 And Worksheets("EChem System").Cells(12, 8).Value <= 60 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = "'No' was selected for Tafel option" Cells(50, 11).Value = "'No' was selected for Tafel option" Cells(53, 11).Value = "'No' was selected for Tafel option" Cells(54, 11).Value = "'No' was selected for Tafel option" End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results70_1() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 5 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = "'No' was selected for Tafel option" Cells(8, 5).Value = "'No' was selected for Tafel option" Cells(11, 5).Value = "'No' was selected for Tafel option" Cells(12, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = "'No' was selected for Tafel option" 365 Cells(8, 11).Value = "'No' was selected for Tafel option" Cells(11, 11).Value = "'No' was selected for Tafel option" Cells(12, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 20 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = "'No' was selected for Tafel option" Cells(8, 17).Value = "'No' was selected for Tafel option" Cells(11, 17).Value = "'No' was selected for Tafel option" Cells(12, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 30 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = "'No' was selected for Tafel option" Cells(22, 5).Value = "'No' was selected for Tafel option" Cells(25, 5).Value = "'No' was selected for Tafel option" Cells(26, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 40 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = "'No' was selected for Tafel option" Cells(22, 11).Value = "'No' was selected for Tafel option" Cells(25, 11).Value = "'No' was selected for Tafel option" Cells(26, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 45 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) 366 Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = "'No' was selected for Tafel option" Cells(22, 17).Value = "'No' was selected for Tafel option" Cells(25, 17).Value = "'No' was selected for Tafel option" Cells(26, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 50 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = "'No' was selected for Tafel option" Cells(36, 5).Value = "'No' was selected for Tafel option" Cells(39, 5).Value = "'No' was selected for Tafel option" Cells(40, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 55 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 60 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value 367 Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If If Worksheets("EChem System").Cells(12, 8).Value > 60 And Worksheets("EChem System").Cells(12, 8).Value < 65 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If End If If runCounter = 65 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If If Worksheets("EChem System").Cells(12, 8).Value > 65 And Worksheets("EChem System").Cells(12, 8).Value <= 70 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) 368 Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = "'No' was selected for Tafel option" Cells(50, 11).Value = "'No' was selected for Tafel option" Cells(53, 11).Value = "'No' was selected for Tafel option" Cells(54, 11).Value = "'No' was selected for Tafel option" End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results80_1() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 5 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = "'No' was selected for Tafel option" Cells(8, 5).Value = "'No' was selected for Tafel option" Cells(11, 5).Value = "'No' was selected for Tafel option" Cells(12, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = "'No' was selected for Tafel option" Cells(8, 11).Value = "'No' was selected for Tafel option" Cells(11, 11).Value = "'No' was selected for Tafel option" Cells(12, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 20 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = "'No' was selected for Tafel option" Cells(8, 17).Value = "'No' was selected for Tafel option" Cells(11, 17).Value = "'No' was selected for Tafel option" Cells(12, 17).Value = "'No' was selected for Tafel option" End If 369 If runCounter = 30 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = "'No' was selected for Tafel option" Cells(22, 5).Value = "'No' was selected for Tafel option" Cells(25, 5).Value = "'No' was selected for Tafel option" Cells(26, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 40 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = "'No' was selected for Tafel option" Cells(22, 11).Value = "'No' was selected for Tafel option" Cells(25, 11).Value = "'No' was selected for Tafel option" Cells(26, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 50 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = "'No' was selected for Tafel option" Cells(22, 17).Value = "'No' was selected for Tafel option" Cells(25, 17).Value = "'No' was selected for Tafel option" Cells(26, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 60 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) 370 Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = "'No' was selected for Tafel option" Cells(36, 5).Value = "'No' was selected for Tafel option" Cells(39, 5).Value = "'No' was selected for Tafel option" Cells(40, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 65 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 70 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If If Worksheets("EChem System").Cells(12, 8).Value > 70 And Worksheets("EChem System").Cells(12, 8).Value < 75 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) 371 Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If End If If runCounter = 75 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If If Worksheets("EChem System").Cells(12, 8).Value > 75 And Worksheets("EChem System").Cells(12, 8).Value <= 80 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = "'No' was selected for Tafel option" Cells(50, 11).Value = "'No' was selected for Tafel option" Cells(53, 11).Value = "'No' was selected for Tafel option" Cells(54, 11).Value = "'No' was selected for Tafel option" End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results90_1() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 5 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value 372 Cells(5, 5).Value = "'No' was selected for Tafel option" Cells(8, 5).Value = "'No' was selected for Tafel option" Cells(11, 5).Value = "'No' was selected for Tafel option" Cells(12, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = "'No' was selected for Tafel option" Cells(8, 11).Value = "'No' was selected for Tafel option" Cells(11, 11).Value = "'No' was selected for Tafel option" Cells(12, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 20 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = "'No' was selected for Tafel option" Cells(8, 17).Value = "'No' was selected for Tafel option" Cells(11, 17).Value = "'No' was selected for Tafel option" Cells(12, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 30 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = "'No' was selected for Tafel option" Cells(22, 5).Value = "'No' was selected for Tafel option" Cells(25, 5).Value = "'No' was selected for Tafel option" Cells(26, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 40 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select 373 Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = "'No' was selected for Tafel option" Cells(22, 11).Value = "'No' was selected for Tafel option" Cells(25, 11).Value = "'No' was selected for Tafel option" Cells(26, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 50 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = "'No' was selected for Tafel option" Cells(22, 17).Value = "'No' was selected for Tafel option" Cells(25, 17).Value = "'No' was selected for Tafel option" Cells(26, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 60 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = "'No' was selected for Tafel option" Cells(36, 5).Value = "'No' was selected for Tafel option" Cells(39, 5).Value = "'No' was selected for Tafel option" Cells(40, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 70 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) 374 Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 80 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If If Worksheets("EChem System").Cells(12, 8).Value > 80 And Worksheets("EChem System").Cells(12, 8).Value < 85 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If End If If runCounter = 85 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" 375 Cells(54, 5).Value = "'No' was selected for Tafel option" End If If Worksheets("EChem System").Cells(12, 8).Value > 85 And Worksheets("EChem System").Cells(12, 8).Value <= 90 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = "'No' was selected for Tafel option" Cells(50, 11).Value = "'No' was selected for Tafel option" Cells(53, 11).Value = "'No' was selected for Tafel option" Cells(54, 11).Value = "'No' was selected for Tafel option" End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub Public Sub results100_1() Application.ScreenUpdating = False For runCounter = 1 To Worksheets("EChem System").Cells(12, 8).Value If runCounter = 5 Then Sheets("Overall Results").Select Cells(2, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Cells(5, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Cells(8, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Cells(11, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Cells(14, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Cells(5, 5).Value = "'No' was selected for Tafel option" Cells(8, 5).Value = "'No' was selected for Tafel option" Cells(11, 5).Value = "'No' was selected for Tafel option" Cells(12, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 10 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H2:L14") Sheets("Overall Results").Select Cells(2, 8).Interior.Color = RGB(155, 194, 230) Cells(2, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 8), Cells(4, 9)).Interior.Color = RGB(155, 194, 230) Cells(5, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 8), Cells(7, 9)).Interior.Color = RGB(155, 194, 230) Cells(8, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 8), Cells(10, 9)).Interior.Color = RGB(155, 194, 230) Cells(11, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 8), Cells(13, 9)).Interior.Color = RGB(155, 194, 230) Cells(14, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 11), Cells(4, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(7, 11), Cells(7, 12)).Interior.Color = RGB(155, 194, 230) Range(Cells(10, 11), Cells(10, 12)).Interior.Color = RGB(155, 194, 230) Cells(5, 11).Value = "'No' was selected for Tafel option" Cells(8, 11).Value = "'No' was selected for Tafel option" Cells(11, 11).Value = "'No' was selected for Tafel option" Cells(12, 11).Value = "'No' was selected for Tafel option" 376 End If If runCounter = 20 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N2:R14") Sheets("Overall Results").Select Cells(2, 14).Interior.Color = RGB(198, 89, 17) Cells(2, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 14), Cells(4, 15)).Interior.Color = RGB(198, 89, 17) Cells(5, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(7, 14), Cells(7, 15)).Interior.Color = RGB(198, 89, 17) Cells(8, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(10, 14), Cells(10, 15)).Interior.Color = RGB(198, 89, 17) Cells(11, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(13, 14), Cells(13, 15)).Interior.Color = RGB(198, 89, 17) Cells(14, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(4, 17), Cells(4, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(7, 17), Cells(7, 18)).Interior.Color = RGB(198, 89, 17) Range(Cells(10, 17), Cells(10, 18)).Interior.Color = RGB(198, 89, 17) Cells(5, 17).Value = "'No' was selected for Tafel option" Cells(8, 17).Value = "'No' was selected for Tafel option" Cells(11, 17).Value = "'No' was selected for Tafel option" Cells(12, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 30 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B16:F26") Sheets("Overall Results").Select Cells(16, 2).Interior.Color = RGB(112, 173, 71) Cells(16, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 2), Cells(18, 3)).Interior.Color = RGB(112, 173, 71) Cells(19, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 2), Cells(21, 3)).Interior.Color = RGB(112, 173, 71) Cells(22, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 2), Cells(24, 3)).Interior.Color = RGB(112, 173, 71) Cells(25, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 2), Cells(27, 3)).Interior.Color = RGB(112, 173, 71) Cells(28, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 5), Cells(18, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(21, 5), Cells(21, 6)).Interior.Color = RGB(112, 173, 71) Range(Cells(24, 5), Cells(24, 6)).Interior.Color = RGB(112, 173, 71) Cells(19, 5).Value = "'No' was selected for Tafel option" Cells(22, 5).Value = "'No' was selected for Tafel option" Cells(25, 5).Value = "'No' was selected for Tafel option" Cells(26, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 40 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H16:L26") Sheets("Overall Results").Select Cells(16, 8).Interior.Color = RGB(255, 217, 102) Cells(16, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 8), Cells(18, 9)).Interior.Color = RGB(255, 217, 102) Cells(19, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(21, 8), Cells(21, 9)).Interior.Color = RGB(255, 217, 102) Cells(22, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 8), Cells(24, 9)).Interior.Color = RGB(255, 217, 102) Cells(25, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 8), Cells(27, 9)).Interior.Color = RGB(255, 217, 102) Cells(28, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 11), Cells(18, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(21, 11), Cells(21, 12)).Interior.Color = RGB(255, 217, 102) Range(Cells(24, 11), Cells(24, 12)).Interior.Color = RGB(255, 217, 102) Cells(19, 11).Value = "'No' was selected for Tafel option" Cells(22, 11).Value = "'No' was selected for Tafel option" Cells(25, 11).Value = "'No' was selected for Tafel option" Cells(26, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 50 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N16:R26") Sheets("Overall Results").Select Cells(16, 14).Interior.Color = RGB(166, 166, 166) Cells(16, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 14), Cells(18, 15)).Interior.Color = RGB(166, 166, 166) Cells(19, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value 377 Range(Cells(21, 14), Cells(21, 15)).Interior.Color = RGB(166, 166, 166) Cells(22, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(24, 14), Cells(24, 15)).Interior.Color = RGB(166, 166, 166) Cells(25, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(27, 14), Cells(27, 15)).Interior.Color = RGB(166, 166, 166) Cells(28, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(18, 17), Cells(18, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(21, 17), Cells(21, 18)).Interior.Color = RGB(166, 166, 166) Range(Cells(24, 17), Cells(24, 18)).Interior.Color = RGB(166, 166, 166) Cells(19, 17).Value = "'No' was selected for Tafel option" Cells(22, 17).Value = "'No' was selected for Tafel option" Cells(25, 17).Value = "'No' was selected for Tafel option" Cells(26, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 60 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B30:E42") Sheets("Overall Results").Select Cells(30, 2).Interior.Color = RGB(47, 117, 181) Cells(30, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 2), Cells(32, 3)).Interior.Color = RGB(47, 117, 181) Cells(33, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 2), Cells(35, 3)).Interior.Color = RGB(47, 117, 181) Cells(36, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 2), Cells(38, 3)).Interior.Color = RGB(47, 117, 181) Cells(39, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 2), Cells(41, 3)).Interior.Color = RGB(47, 117, 181) Cells(42, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 5), Cells(32, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(35, 5), Cells(35, 6)).Interior.Color = RGB(47, 117, 181) Range(Cells(38, 5), Cells(38, 6)).Interior.Color = RGB(47, 117, 181) Cells(33, 5).Value = "'No' was selected for Tafel option" Cells(36, 5).Value = "'No' was selected for Tafel option" Cells(39, 5).Value = "'No' was selected for Tafel option" Cells(40, 5).Value = "'No' was selected for Tafel option" End If If runCounter = 70 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H30:L42") Sheets("Overall Results").Select Cells(30, 8).Interior.Color = RGB(131, 60, 12) Cells(30, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 8), Cells(32, 9)).Interior.Color = RGB(131, 60, 12) Cells(33, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 8), Cells(35, 9)).Interior.Color = RGB(131, 60, 12) Cells(36, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 8), Cells(38, 9)).Interior.Color = RGB(131, 60, 12) Cells(39, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 8), Cells(41, 9)).Interior.Color = RGB(131, 60, 12) Cells(42, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 11), Cells(32, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(35, 11), Cells(35, 12)).Interior.Color = RGB(131, 60, 12) Range(Cells(38, 11), Cells(38, 12)).Interior.Color = RGB(131, 60, 12) Cells(33, 11).Value = "'No' was selected for Tafel option" Cells(36, 11).Value = "'No' was selected for Tafel option" Cells(39, 11).Value = "'No' was selected for Tafel option" Cells(40, 11).Value = "'No' was selected for Tafel option" End If If runCounter = 80 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("N30:R42") Sheets("Overall Results").Select Cells(30, 14).Interior.Color = RGB(255, 255, 0) Cells(30, 14).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 14), Cells(32, 15)).Interior.Color = RGB(255, 255, 0) Cells(33, 14).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(35, 14), Cells(35, 15)).Interior.Color = RGB(255, 255, 0) Cells(36, 14).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(38, 14), Cells(38, 15)).Interior.Color = RGB(255, 255, 0) Cells(39, 14).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(41, 14), Cells(41, 15)).Interior.Color = RGB(255, 255, 0) Cells(42, 14).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(32, 17), Cells(32, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(35, 17), Cells(35, 18)).Interior.Color = RGB(255, 255, 0) Range(Cells(38, 17), Cells(38, 18)).Interior.Color = RGB(255, 255, 0) 378 Cells(33, 17).Value = "'No' was selected for Tafel option" Cells(36, 17).Value = "'No' was selected for Tafel option" Cells(39, 17).Value = "'No' was selected for Tafel option" Cells(40, 17).Value = "'No' was selected for Tafel option" End If If runCounter = 90 Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("B44:F56") Sheets("Overall Results").Select Cells(44, 2).Interior.Color = RGB(102, 255, 204) Cells(44, 2).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 2), Cells(46, 3)).Interior.Color = RGB(102, 255, 204) Cells(47, 2).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 2), Cells(49, 3)).Interior.Color = RGB(102, 255, 204) Cells(50, 2).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 2), Cells(52, 3)).Interior.Color = RGB(102, 255, 204) Cells(53, 2).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 2), Cells(55, 3)).Interior.Color = RGB(102, 255, 204) Cells(56, 2).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 5), Cells(46, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(49, 5), Cells(49, 6)).Interior.Color = RGB(102, 255, 204) Range(Cells(52, 5), Cells(52, 6)).Interior.Color = RGB(102, 255, 204) Cells(47, 5).Value = "'No' was selected for Tafel option" Cells(50, 5).Value = "'No' was selected for Tafel option" Cells(53, 5).Value = "'No' was selected for Tafel option" Cells(54, 5).Value = "'No' was selected for Tafel option" End If If Worksheets("EChem System").Cells(12, 8).Value > 90 And Worksheets("EChem System").Cells(12, 8).Value <= 100 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Overall Results").Range("B2:F14").Copy _ Destination:=Worksheets("Overall Results").Range("H44:L56") Sheets("Overall Results").Select Cells(44, 8).Interior.Color = RGB(0, 0, 0) Cells(44, 8).Font.Color = RGB(255, 255, 255) Cells(44, 8).Value = Worksheets("Raw LSV Data").Cells(2, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 8), Cells(46, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 8), Cells(46, 9)).Font.Color = RGB(255, 255, 255) Cells(47, 8).Value = Worksheets("Raw LSV Data").Cells(32, ((runCounter - 1) * 11) + 2).Value Range(Cells(49, 8), Cells(49, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 8), Cells(49, 9)).Font.Color = RGB(255, 255, 255) Cells(50, 8).Value = Worksheets("Raw LSV Data").Cells(41, ((runCounter - 1) * 11) + 2).Value Range(Cells(52, 8), Cells(52, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 8), Cells(52, 9)).Font.Color = RGB(255, 255, 255) Cells(53, 8).Value = Worksheets("Raw LSV Data").Cells(50, ((runCounter - 1) * 11) + 2).Value Range(Cells(55, 8), Cells(55, 9)).Interior.Color = RGB(0, 0, 0) Range(Cells(55, 8), Cells(55, 9)).Font.Color = RGB(255, 255, 255) Cells(56, 8).Value = Worksheets("Raw LSV Data").Cells(59, ((runCounter - 1) * 11) + 2).Value Range(Cells(46, 11), Cells(46, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(46, 11), Cells(46, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(49, 11), Cells(49, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(49, 11), Cells(49, 12)).Font.Color = RGB(255, 255, 255) Range(Cells(52, 11), Cells(52, 12)).Interior.Color = RGB(0, 0, 0) Range(Cells(52, 11), Cells(52, 12)).Font.Color = RGB(255, 255, 255) Cells(47, 11).Value = "'No' was selected for Tafel option" Cells(50, 11).Value = "'No' was selected for Tafel option" Cells(53, 11).Value = "'No' was selected for Tafel option" Cells(54, 11).Value = "'No' was selected for Tafel option" End If End If Next runCounter Worksheets("Overall Results").Range("B:R").EntireColumn.AutoFit Sheets("Overall Results").Select Application.ScreenUpdating = False End Sub C.3.7. SavFilMod Code The SavFil Sub is a program that creates folders, and the Macro Enabled Excel file (.xlsm) as part of the full program operation as it nears completion. The Excel file is 379 saved within a newly created folder within the main data folder, where the selected data for processing was and is found. Sub SavFil() Application.ScreenUpdating = False Dim fso As Object Dim zipName, zipName1 As String Set fso = CreateObject("Scripting.FileSystemObject") On Error Resume Next parVal = Worksheets("EChem System").Cells(3, 2).Value multiVal = Worksheets("EChem System").Cells(15, 11).Value If IsEmpty(dirVal) Then Exit Sub If Worksheets("EChem System").Cells(18, 5).Value = "HER" Then If InputParametersUserForm.MultiOptionButton1 = True Then myFileName_1 = multiVal & parVal & " HER" zipName = Worksheets("StoredInfo(HIDDEN)").Range("C4").Value If Not fso.FolderExists(zipName) Then fso.CreateFolder (zipName) End If zipNm1 = zipName & "\" & myFileName_1 Worksheets("StoredInfo(HIDDEN)").Range("C8").Value = zipNm1 zipName1 = Worksheets("StoredInfo(HIDDEN)").Range("C8").Value If Not fso.FolderExists(zipName1) Then fso.CreateFolder (zipName1) End If ElseIf InputParametersUserForm.MultiOptionButton2 = True Then myFileName_1 = "All " & parVal & " HER" zipName = Worksheets("StoredInfo(HIDDEN)").Range("C4").Value If Not fso.FolderExists(zipName) Then fso.CreateFolder (zipName) End If zipNm1 = zipName & "\" & myFileName_1 Worksheets("StoredInfo(HIDDEN)").Range("C8").Value = zipNm1 zipName1 = Worksheets("StoredInfo(HIDDEN)").Range("C8").Value If Not fso.FolderExists(zipName1) Then fso.CreateFolder (zipName1) End If End If ElseIf Worksheets("EChem System").Cells(18, 5).Value = "OER" Then If InputParametersUserForm.MultiOptionButton1 = True Then myFileName_1 = multiVal & parVal & " OER" zipName = Worksheets("StoredInfo(HIDDEN)").Range("C4").Value If Not fso.FolderExists(zipName) Then fso.CreateFolder (zipName) End If zipNm1 = zipName & "\" & myFileName_1 Worksheets("StoredInfo(HIDDEN)").Range("C8").Value = zipNm1 zipName1 = Worksheets("StoredInfo(HIDDEN)").Range("C8").Value If Not fso.FolderExists(zipName1) Then fso.CreateFolder (zipName1) End If ElseIf InputParametersUserForm.MultiOptionButton2 = True Then myFileName_1 = "All " & parVal & " OER" zipName = Worksheets("StoredInfo(HIDDEN)").Range("C4").Value If Not fso.FolderExists(zipName) Then fso.CreateFolder (zipName) End If zipNm1 = zipName & "\" & myFileName_1 Worksheets("StoredInfo(HIDDEN)").Range("C8").Value = zipNm1 zipName1 = Worksheets("StoredInfo(HIDDEN)").Range("C8").Value If Not fso.FolderExists(zipName1) Then fso.CreateFolder (zipName1) End If End If End If zipName1 = Worksheets("StoredInfo(HIDDEN)").Range("C8").Value iFil = "Image Files" zipNm2 = zipName1 & "\" & iFil If Not fso.FolderExists(zipNm2) Then fso.CreateFolder (zipNm2) 380 End If Worksheets("StoredInfo(HIDDEN)").Range("C6").Value = zipNm2 Application.ScreenUpdating = False ActiveWorkbook.SaveAs fileName:=zipName1 & "\" & myFileName_1 & ".xlsm", _ FileFormat:=xlOpenXMLWorkbookMacroEnabled, Password:="", WriteResPassword:="", _ ReadOnlyRecommended:=False, CreateBackup:=False End Sub C.3.8. TafelMod Code The Tafel Sub is a program that determines the Tafel information from user input and the imported potentiostat data and presents it on a Sheet as shown in Figure C.11 and in a Chart as shown Figure C.12 . The user must look at the full Tafel plot that is generated by the FullTafPlotMod, and then decide a point on the plot that will be used as the starting point for Tafel analysis. The code uses the user input point along with the Correl VBA function to determine the linearity in both directions from the input point until another user input value, the desired correlation coefficient, is no longer maintained in that direction. The correlation is determined in one direction from the point, the combination of the two will lead to an overall correlation coefficient that is less than the user value. The different Tafel Subs are used when up to a certain number of files were selected for processing, for example, Tafel1 is the code performed when up to 10 files were selected. This code works well with data that overlays well, however the user must run the program individually, once for each file, if the full Tafel plots do not overlay well as it will lead to incorrect Tafel values. 381 Figure C.11: The image is a screen shot of the Tafel Info Sheet. The different colored boxes are the results of Tafel analysis on specific Run numbers. The plot in the upper right displays the Tafel slopes for different Runs, which is useful when looking for consistent, or inconsistent behavior. Figure C.12: The image is the plot/chart that results from the Tafel Sub that includes the average of all of the specified Run number slopes and their deviation; there is an outlier in this data that when removed, would reduce the deviation significantly for this data set. 382 Public Sub Tafel() Application.ScreenUpdating = False With Sheets("EChem System").Select Selection.Cells(21, 8).Interior.Color = RGB(255, 255, 255) Selection.Cells(24, 8).Interior.Color = RGB(255, 255, 255) Selection.Cells(27, 8).Interior.Color = RGB(255, 255, 255) Selection.Cells(20, 8).Interior.Color = RGB(244, 176, 132) Selection.Cells(23, 8).Interior.Color = RGB(191, 143, 0) Selection.Cells(26, 8).Interior.Color = RGB(191, 143, 0) End With If Worksheets("EChem System").Cells(12, 8).Value <= 10 Then Tafel1 Tafel1Plt Application.DisplayAlerts = False ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 20 Then Tafel2 Tafel2Plt Application.DisplayAlerts = False ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 30 Then Tafel3 Tafel3Plt Application.DisplayAlerts = False ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 40 Then Tafel4 Tafel4Plt Application.DisplayAlerts = False ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 50 Then Tafel5 Tafel5Plt Application.DisplayAlerts = False ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 60 Then Tafel6 Tafel6Plt Application.DisplayAlerts = False ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 70 Then Tafel7 Tafel7Plt Application.DisplayAlerts = False ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 80 Then Tafel8 Tafel8Plt Application.DisplayAlerts = False ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 90 Then Tafel9 Tafel9Plt Application.DisplayAlerts = False ElseIf Worksheets("EChem System").Cells(12, 8).Value <= 100 Then Tafel10 Tafel10Plt Application.DisplayAlerts = False End If Chart3.Visible = True Application.ScreenUpdating = False End Sub Public Sub Tafel1() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim ChartObj As ChartObject Dim xRng As Range Dim yRng As Range Sheets("Tafel Info").Select ActiveSheet.Shapes.Range(Array("TextBox 2")).Select Selection.ShapeRange.IncrementLeft 4.3 Worksheets("Tafel Info").ChartObjects(1).Activate 383 ActiveChart.ChartType = xlXYScatterLinesNoMarkers With ActiveChart.PlotArea .Format.Line.Visible = msoTrue .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Format.Line.Transparency = 0 End With Set ChartObj = ActiveSheet.ChartObjects("Chart 6") For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 1 Then xPlacement = 8 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 150 .Trendlines(1).DataLabel.Top = 125 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 384 End With End If If runCounter = 2 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G5:J26") xPlacement = 8 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(155, 194, 230) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 105 .Trendlines(1).DataLabel.Top = 215 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 3 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L5:O26") xPlacement = 8 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(198, 89, 17) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) 385 Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 280 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 4 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B28:E49") xPlacement = 31 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(112, 173, 71) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 5 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G28:J49") xPlacement = 31 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) 386 .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 217, 102) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 6 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L28:O49") xPlacement = 31 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(166, 166, 166) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) 387 .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 7 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B51:E72") xPlacement = 54 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(47, 117, 181) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 190 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 8 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) 388 End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 9 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 10 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 yPlacement = 2 389 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If Set Chart = ChartObj.Chart Chart.HasLegend = False If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel1Plt() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim xRng As Range Dim yRng As Range If Worksheets("EChem System").Cells(12, 8).Value = 1 Then Chart3.Activate With Chart3 .ChartType = xlXYScatterLinesNoMarkers End With ActiveChart.Shapes.AddTextbox(msoTextOrientationHorizontal, 197.5, 107.5, _ 191.6666929134, 33.3333070866).Select 390 Selection.ShapeRange.TextFrame2.TextRange.Font.Bold = msoTrue Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = _ Round(Worksheets("Tafel Info").Cells(24, 2)) & " mV/decade" Selection.ShapeRange(1).TextFrame2.TextRange.Characters.ParagraphFormat. _ FirstLineIndent = 0 With Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Font .Bold = msoTrue .NameComplexScript = "+mn-cs" .NameFarEast = "+mn-ea" .Size = 18 .Name = "+mn-lt" End With Selection.ShapeRange.ScaleWidth 1#, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.IncrementLeft 117 Selection.ShapeRange.IncrementTop 30 Selection.ShapeRange.IncrementRotation 334 Else Chart3.Activate With Chart3 .ChartType = xlXYScatterLinesNoMarkers End With ActiveChart.Shapes.AddTextbox(msoTextOrientationHorizontal, 197.5, 107.5, _ 191.6666929134, 33.3333070866).Select Selection.ShapeRange.TextFrame2.TextRange.Font.Bold = msoTrue Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = _ Round(Worksheets("Tafel Info").Cells(2, 13)) & " ± " & Round(Worksheets("Tafel Info").Cells(3, 13)) & " mV/decade" Selection.ShapeRange(1).TextFrame2.TextRange.Characters.ParagraphFormat. _ FirstLineIndent = 0 With Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Font .Bold = msoTrue .NameComplexScript = "+mn-cs" .NameFarEast = "+mn-ea" .Size = 18 .Name = "+mn-lt" End With Selection.ShapeRange.ScaleWidth 1#, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.IncrementLeft 117 Selection.ShapeRange.IncrementTop 30 Selection.ShapeRange.IncrementRotation 334 End If For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) 391 If runCounter = 1 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) End With End If If runCounter = 2 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) End With End If If runCounter = 3 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) End With End If If runCounter = 4 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) End With End If If runCounter = 5 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) End With End If If runCounter = 6 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) End With End If If runCounter = 7 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) 392 Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) End With End If If runCounter = 8 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = 9 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) End With End If If runCounter = 10 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If Chart3.Activate With ActiveChart.Legend .Top = 205.1 .Height = 215.1 .Width = 105.3 .Left = 543.8 End With If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel2() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) 393 Dim ChartObj As ChartObject Dim xRng As Range Dim yRng As Range Sheets("Tafel Info").Select ActiveSheet.Shapes.Range(Array("TextBox 2")).Select Selection.ShapeRange.IncrementLeft 4.3 Worksheets("Tafel Info").ChartObjects(1).Activate ActiveChart.ChartType = xlXYScatterLinesNoMarkers With ActiveChart.PlotArea .Format.Line.Visible = msoTrue .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Format.Line.Transparency = 0 End With Set ChartObj = ActiveSheet.ChartObjects("Chart 6") For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 1 Then xPlacement = 8 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True 394 .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 150 .Trendlines(1).DataLabel.Top = 125 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 2 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G5:J26") xPlacement = 8 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(155, 194, 230) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 105 .Trendlines(1).DataLabel.Top = 215 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 4 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L5:O26") xPlacement = 8 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(198, 89, 17) End With 395 With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(198, 89, 17) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 280 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 5 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B28:E49") xPlacement = 31 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(112, 173, 71) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 8 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G28:J49") 396 xPlacement = 31 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 217, 102) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 10 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L28:O49") xPlacement = 31 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(166, 166, 166) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter 397 .Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If Worksheets("EChem System").Cells(12, 8).Value > 10 And Worksheets("EChem System").Cells(12, 8).Value <= 12 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B51:E72") xPlacement = 54 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(47, 117, 181) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 190 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If If Worksheets("EChem System").Cells(12, 8).Value > 12 And Worksheets("EChem System").Cells(12, 8).Value <= 15 Then If runCounter = 12 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B51:E72") xPlacement = 54 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter 398 .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(47, 117, 181) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 190 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 399 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If If Worksheets("EChem System").Cells(12, 8).Value = 16 Then If runCounter = 12 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B51:E72") xPlacement = 54 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(47, 117, 181) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 190 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 15 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) 400 End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If If Worksheets("EChem System").Cells(12, 8).Value > 16 And Worksheets("EChem System").Cells(12, 8).Value <= 18 Then If runCounter = 12 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B51:E72") 401 xPlacement = 54 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(47, 117, 181) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 190 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 15 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter 402 .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 16 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) 403 .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If If Worksheets("EChem System").Cells(12, 8).Value > 18 And Worksheets("EChem System").Cells(12, 8).Value <= 20 Then If runCounter = 12 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B51:E72") xPlacement = 54 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(47, 117, 181) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 190 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(47, 117, 181) 404 .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 15 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 16 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j 405 Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 18 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G74:J95") xPlacement = 77 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select 406 Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement - 1, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement + 7, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 575 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If Set Chart = ChartObj.Chart Chart.HasLegend = False If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel2Plt() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim xRng As Range Dim yRng As Range Chart3.Activate With Chart3 ActiveChart.ChartType = xlXYScatterLinesNoMarkers End With ActiveChart.Shapes.AddTextbox(msoTextOrientationHorizontal, 197.5, 107.5, _ 191.6666929134, 33.3333070866).Select 407 Selection.ShapeRange.TextFrame2.TextRange.Font.Bold = msoTrue Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = _ Round(Worksheets("Tafel Info").Cells(2, 13)) & " ± " & Round(Worksheets("Tafel Info").Cells(3, 13)) & " mV/decade" With Selection.ShapeRange(1).TextFrame2.TextRange.Characters().Font .Bold = msoTrue .NameComplexScript = "+mn-cs" .NameFarEast = "+mn-ea" .Size = 18 .Name = "+mn-lt" End With Selection.ShapeRange.ScaleWidth 1#, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.IncrementLeft 117 Selection.ShapeRange.IncrementTop 30 Selection.ShapeRange.IncrementRotation 334 For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 1 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) End With End If If runCounter = 2 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) End With End If If runCounter = 4 Then Sheets("Raw LSV Data").Select 408 Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) End With End If If runCounter = 5 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) End With End If If runCounter = 8 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) End With End If If runCounter = 10 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) End With End If If Worksheets("EChem System").Cells(12, 8).Value > 10 And Worksheets("EChem System").Cells(12, 8).Value <= 12 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) End With End If End If If Worksheets("EChem System").Cells(12, 8).Value > 12 And Worksheets("EChem System").Cells(12, 8).Value <= 15 Then If runCounter = 12 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select 409 Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If End If If Worksheets("EChem System").Cells(12, 8).Value = 16 Then If runCounter = 12 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) End With End If If runCounter = 15 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) End With End If End If If Worksheets("EChem System").Cells(12, 8).Value > 16 And Worksheets("EChem System").Cells(12, 8).Value <= 18 Then If runCounter = 12 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) End With End If If runCounter = 15 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = 16 Then 410 Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If End If If Worksheets("EChem System").Cells(12, 8).Value > 18 And Worksheets("EChem System").Cells(12, 8).Value <= 20 Then If runCounter = 12 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) End With End If If runCounter = 15 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = 16 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) End With End If If runCounter = 18 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select 411 Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) End With End If End If Chart3.Activate With ActiveChart.Legend .Top = 205.1 .Height = 215.1 .Width = 105.3 .Left = 543.8 End With If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel3() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim ChartObj As ChartObject Dim xRng As Range Dim yRng As Range Sheets("Tafel Info").Select ActiveSheet.Shapes.Range(Array("TextBox 2")).Select Selection.ShapeRange.IncrementLeft 4.3 Worksheets("Tafel Info").ChartObjects(1).Activate ActiveChart.ChartType = xlXYScatterLinesNoMarkers With ActiveChart.PlotArea .Format.Line.Visible = msoTrue .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Format.Line.Transparency = 0 End With Set ChartObj = ActiveSheet.ChartObjects("Chart 6") For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) 412 If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 1 Then xPlacement = 8 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 150 .Trendlines(1).DataLabel.Top = 125 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 3 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G5:J26") xPlacement = 8 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(155, 194, 230) End With Next i Next j 413 Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 105 .Trendlines(1).DataLabel.Top = 215 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 5 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L5:O26") xPlacement = 8 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(198, 89, 17) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 280 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 10 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B28:E49") xPlacement = 31 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select 414 Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(112, 173, 71) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 15 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G28:J49") xPlacement = 31 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 217, 102) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True 415 .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 18 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L28:O49") xPlacement = 31 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(166, 166, 166) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 20 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B51:E72") xPlacement = 54 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(47, 117, 181) End With 416 With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(47, 117, 181) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 190 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If Worksheets("EChem System").Cells(12, 8).Value > 20 And Worksheets("EChem System").Cells(12, 8).Value < 23 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If If Worksheets("EChem System").Cells(12, 8).Value = 23 Then 417 If runCounter = 23 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If If Worksheets("EChem System").Cells(12, 8).Value = 24 Then If runCounter = 23 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) 418 Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If If Worksheets("EChem System").Cells(12, 8).Value = 25 Then If runCounter = 23 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select 419 Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 25 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True 420 .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If If Worksheets("EChem System").Cells(12, 8).Value > 25 And Worksheets("EChem System").Cells(12, 8).Value <= 27 Then If runCounter = 23 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 25 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) 421 .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If 422 If Worksheets("EChem System").Cells(12, 8).Value > 27 And Worksheets("EChem System").Cells(12, 8).Value <= 30 Then If runCounter = 23 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 25 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) 423 With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 27 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G74:J95") xPlacement = 77 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter 424 .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement - 1, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement + 7, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 575 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If Set Chart = ChartObj.Chart Chart.HasLegend = False If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel3Plt() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim xRng As Range Dim yRng As Range Chart3.Activate With Chart3 .ChartType = xlXYScatterLinesNoMarkers End With ActiveChart.Shapes.AddTextbox(msoTextOrientationHorizontal, 197.5, 107.5, _ 191.6666929134, 33.3333070866).Select Selection.ShapeRange.TextFrame2.TextRange.Font.Bold = msoTrue Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = _ Round(Worksheets("Tafel Info").Cells(2, 13)) & " ± " & Round(Worksheets("Tafel Info").Cells(3, 13)) & " mV/decade" 425 With Selection.ShapeRange(1).TextFrame2.TextRange.Characters().Font .Bold = msoTrue .NameComplexScript = "+mn-cs" .NameFarEast = "+mn-ea" .Size = 18 .Name = "+mn-lt" End With Selection.ShapeRange.ScaleWidth 1#, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.IncrementLeft 117 Selection.ShapeRange.IncrementTop 30 Selection.ShapeRange.IncrementRotation 334 For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 1 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) End With End If If runCounter = 3 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) End With End If If runCounter = 5 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate 426 With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) End With End If If runCounter = 10 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) End With End If If runCounter = 15 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) End With End If If runCounter = 18 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) End With End If If runCounter = 20 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) End With End If If Worksheets("EChem System").Cells(12, 8).Value > 20 And Worksheets("EChem System").Cells(12, 8).Value < 23 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If End If If Worksheets("EChem System").Cells(12, 8).Value = 23 Then If runCounter = 23 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate 427 With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If End If If Worksheets("EChem System").Cells(12, 8).Value = 24 Then If runCounter = 23 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) End With End If End If If Worksheets("EChem System").Cells(12, 8).Value = 25 Then If runCounter = 23 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = 25 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) End With End If End If If Worksheets("EChem System").Cells(12, 8).Value > 25 And Worksheets("EChem System").Cells(12, 8).Value <= 27 Then If runCounter = 23 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = 25 Then Sheets("Raw LSV Data").Select 428 Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If End If If Worksheets("EChem System").Cells(12, 8).Value > 27 And Worksheets("EChem System").Cells(12, 8).Value <= 30 Then If runCounter = 23 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = 25 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) End With End If If runCounter = 27 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) End With End If End If Chart3.Activate With ActiveChart.Legend 429 .Top = 205.1 .Height = 215.1 .Width = 105.3 .Left = 543.8 End With If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel4() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim ChartObj As ChartObject Dim xRng As Range Dim yRng As Range Sheets("Tafel Info").Select ActiveSheet.Shapes.Range(Array("TextBox 2")).Select Selection.ShapeRange.IncrementLeft 4.3 Worksheets("Tafel Info").ChartObjects(1).Activate ActiveChart.ChartType = xlXYScatterLinesNoMarkers With ActiveChart.PlotArea .Format.Line.Visible = msoTrue .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Format.Line.Transparency = 0 End With Set ChartObj = ActiveSheet.ChartObjects("Chart 6") For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j 430 Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 1 Then xPlacement = 8 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 150 .Trendlines(1).DataLabel.Top = 125 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 5 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G5:J26") xPlacement = 8 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(155, 194, 230) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True 431 .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 105 .Trendlines(1).DataLabel.Top = 215 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 10 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L5:O26") xPlacement = 8 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(198, 89, 17) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 280 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 15 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B28:E49") xPlacement = 31 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(112, 173, 71) End With 432 With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(112, 173, 71) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 20 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G28:J49") xPlacement = 31 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 217, 102) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 25 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L28:O49") 433 xPlacement = 31 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(166, 166, 166) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 30 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B51:E72") xPlacement = 54 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(47, 117, 181) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter 434 .Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 190 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If Worksheets("EChem System").Cells(12, 8).Value > 30 And Worksheets("EChem System").Cells(12, 8).Value < 33 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If If Worksheets("EChem System").Cells(12, 8).Value = 34 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter 435 .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If If Worksheets("EChem System").Cells(12, 8).Value = 35 Then If runCounter = 33 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) 436 .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 35 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If If Worksheets("EChem System").Cells(12, 8).Value > 35 And Worksheets("EChem System").Cells(12, 8).Value <= 37 Then If runCounter = 33 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With 437 With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 35 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") 438 xPlacement = 77 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If If Worksheets("EChem System").Cells(12, 8).Value > 37 And Worksheets("EChem System").Cells(12, 8).Value <= 40 Then If runCounter = 33 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng 439 .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 35 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 37 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge 440 End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G74:J95") xPlacement = 77 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement - 1, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement + 7, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) 441 .Trendlines(1).DataLabel.Left = 575 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If Set Chart = ChartObj.Chart Chart.HasLegend = False If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel4Plt() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim xRng As Range Dim yRng As Range Chart3.Activate With Chart3 .ChartType = xlXYScatterLinesNoMarkers End With ActiveChart.Shapes.AddTextbox(msoTextOrientationHorizontal, 197.5, 107.5, _ 191.6666929134, 33.3333070866).Select Selection.ShapeRange.TextFrame2.TextRange.Font.Bold = msoTrue Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = _ Round(Worksheets("Tafel Info").Cells(2, 13)) & " ± " & Round(Worksheets("Tafel Info").Cells(3, 13)) & " mV/decade" With Selection.ShapeRange(1).TextFrame2.TextRange.Characters().Font .Bold = msoTrue .NameComplexScript = "+mn-cs" .NameFarEast = "+mn-ea" .Size = 18 .Name = "+mn-lt" End With Selection.ShapeRange.ScaleWidth 1#, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.IncrementLeft 117 Selection.ShapeRange.IncrementTop 30 Selection.ShapeRange.IncrementRotation 334 For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) 442 If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 1 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) End With End If If runCounter = 5 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) End With End If If runCounter = 10 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) End With End If If runCounter = 15 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) End With End If If runCounter = 20 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) End With End If 443 If runCounter = 25 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) End With End If If runCounter = 30 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) End With End If If Worksheets("EChem System").Cells(12, 8).Value > 30 And Worksheets("EChem System").Cells(12, 8).Value < 33 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If End If If Worksheets("EChem System").Cells(12, 8).Value = 34 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If End If If Worksheets("EChem System").Cells(12, 8).Value = 35 Then If runCounter = 33 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = 35 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) 444 End With End If End If If Worksheets("EChem System").Cells(12, 8).Value > 35 And Worksheets("EChem System").Cells(12, 8).Value <= 37 Then If runCounter = 33 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = 35 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If End If If Worksheets("EChem System").Cells(12, 8).Value > 37 And Worksheets("EChem System").Cells(12, 8).Value <= 40 Then If runCounter = 33 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = 35 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) End With End If If runCounter = 37 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter 445 .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) End With End If End If Chart3.Activate With ActiveChart.Legend .Top = 205.1 .Height = 215.1 .Width = 105.3 .Left = 543.8 End With If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel5() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim ChartObj As ChartObject Dim xRng As Range Dim yRng As Range Sheets("Tafel Info").Select ActiveSheet.Shapes.Range(Array("TextBox 2")).Select Selection.ShapeRange.IncrementLeft 4.3 Worksheets("Tafel Info").ChartObjects(1).Activate ActiveChart.ChartType = xlXYScatterLinesNoMarkers With ActiveChart.PlotArea .Format.Line.Visible = msoTrue .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Format.Line.Transparency = 0 End With Set ChartObj = ActiveSheet.ChartObjects("Chart 6") For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) 446 On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 1 Then xPlacement = 8 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 150 .Trendlines(1).DataLabel.Top = 125 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 5 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G5:J26") xPlacement = 8 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(155, 194, 230) 447 End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(155, 194, 230) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 105 .Trendlines(1).DataLabel.Top = 215 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 10 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L5:O26") xPlacement = 8 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(198, 89, 17) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 280 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 15 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ 448 Destination:=Worksheets("Tafel Info").Range("B28:E49") xPlacement = 31 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(112, 173, 71) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 20 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G28:J49") xPlacement = 31 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 217, 102) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng 449 .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 25 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L28:O49") xPlacement = 31 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(166, 166, 166) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 30 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B51:E72") xPlacement = 54 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With 450 With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(47, 117, 181) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 190 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 35 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid 451 .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 40 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If Worksheets("EChem System").Cells(12, 8).Value > 40 And Worksheets("EChem System").Cells(12, 8).Value < 45 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j 452 Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If If runCounter = 45 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If Worksheets("EChem System").Cells(12, 8).Value > 45 And Worksheets("EChem System").Cells(12, 8).Value <= 50 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G74:J95") xPlacement = 77 yPlacement = 7 For j = 1 To 2 453 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement - 1, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement + 7, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 575 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If Set Chart = ChartObj.Chart Chart.HasLegend = False If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel5Plt() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim xRng As Range Dim yRng As Range Chart3.Activate With Chart3 .ChartType = xlXYScatterLinesNoMarkers End With 454 ActiveChart.Shapes.AddTextbox(msoTextOrientationHorizontal, 197.5, 107.5, _ 191.6666929134, 33.3333070866).Select Selection.ShapeRange.TextFrame2.TextRange.Font.Bold = msoTrue Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = _ Round(Worksheets("Tafel Info").Cells(2, 13)) & " ± " & Round(Worksheets("Tafel Info").Cells(3, 13)) & " mV/decade" With Selection.ShapeRange(1).TextFrame2.TextRange.Characters().Font .Bold = msoTrue .NameComplexScript = "+mn-cs" .NameFarEast = "+mn-ea" .Size = 18 .Name = "+mn-lt" End With Selection.ShapeRange.ScaleWidth 1#, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.IncrementLeft 117 Selection.ShapeRange.IncrementTop 30 Selection.ShapeRange.IncrementRotation 334 For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 1 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) End With End If If runCounter = 5 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) End With End If 455 If runCounter = 10 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) End With End If If runCounter = 15 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) End With End If If runCounter = 20 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) End With End If If runCounter = 25 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) End With End If If runCounter = 30 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) End With End If If runCounter = 35 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = 40 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) 456 Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) End With End If If Worksheets("EChem System").Cells(12, 8).Value > 40 And Worksheets("EChem System").Cells(12, 8).Value < 45 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If End If If runCounter = 45 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If If Worksheets("EChem System").Cells(12, 8).Value > 45 And Worksheets("EChem System").Cells(12, 8).Value <= 50 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) End With End If End If Chart3.Activate With ActiveChart.Legend .Top = 205.1 .Height = 215.1 .Width = 105.3 .Left = 543.8 End With If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel6() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row 457 Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim ChartObj As ChartObject Dim xRng As Range Dim yRng As Range Sheets("Tafel Info").Select ActiveSheet.Shapes.Range(Array("TextBox 2")).Select Selection.ShapeRange.IncrementLeft 4.3 Worksheets("Tafel Info").ChartObjects(1).Activate ActiveChart.ChartType = xlXYScatterLinesNoMarkers With ActiveChart.PlotArea .Format.Line.Visible = msoTrue .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Format.Line.Transparency = 0 End With Set ChartObj = ActiveSheet.ChartObjects("Chart 6") For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 5 Then xPlacement = 8 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) 458 .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 150 .Trendlines(1).DataLabel.Top = 125 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 10 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G5:J26") xPlacement = 8 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(155, 194, 230) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 105 .Trendlines(1).DataLabel.Top = 215 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 20 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L5:O26") xPlacement = 8 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(198, 89, 17) 459 End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(198, 89, 17) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 280 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 25 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B28:E49") xPlacement = 31 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(112, 173, 71) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With 460 End If If runCounter = 30 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G28:J49") xPlacement = 31 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 217, 102) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 35 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L28:O49") xPlacement = 31 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(166, 166, 166) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) 461 With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 40 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B51:E72") xPlacement = 54 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(47, 117, 181) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 190 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 45 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter 462 .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 50 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 463 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If Worksheets("EChem System").Cells(12, 8).Value > 50 And Worksheets("EChem System").Cells(12, 8).Value < 55 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If If runCounter = 55 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) 464 .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If Worksheets("EChem System").Cells(12, 8).Value > 55 And Worksheets("EChem System").Cells(12, 8).Value <= 60 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G74:J95") xPlacement = 77 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement - 1, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement + 7, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 575 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If 465 End If Set Chart = ChartObj.Chart Chart.HasLegend = False If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel6Plt() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim xRng As Range Dim yRng As Range Chart3.Activate With Chart3 .ChartType = xlXYScatterLinesNoMarkers End With ActiveChart.Shapes.AddTextbox(msoTextOrientationHorizontal, 197.5, 107.5, _ 191.6666929134, 33.3333070866).Select Selection.ShapeRange.TextFrame2.TextRange.Font.Bold = msoTrue Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = _ Round(Worksheets("Tafel Info").Cells(2, 13)) & " ± " & Round(Worksheets("Tafel Info").Cells(3, 13)) & " mV/decade" With Selection.ShapeRange(1).TextFrame2.TextRange.Characters().Font .Bold = msoTrue .NameComplexScript = "+mn-cs" .NameFarEast = "+mn-ea" .Size = 18 .Name = "+mn-lt" End With Selection.ShapeRange.ScaleWidth 1#, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.IncrementLeft 117 Selection.ShapeRange.IncrementTop 30 Selection.ShapeRange.IncrementRotation 334 For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then 466 difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 5 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) End With End If If runCounter = 10 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) End With End If If runCounter = 20 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) End With End If If runCounter = 25 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) End With End If If runCounter = 30 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) End With End If If runCounter = 35 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng 467 .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) End With End If If runCounter = 40 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) End With End If If runCounter = 45 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = 50 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) End With End If If Worksheets("EChem System").Cells(12, 8).Value > 50 And Worksheets("EChem System").Cells(12, 8).Value < 55 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If End If If runCounter = 55 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If If Worksheets("EChem System").Cells(12, 8).Value > 55 And Worksheets("EChem System").Cells(12, 8).Value <= 60 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng 468 .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) End With End If End If Chart3.Activate With ActiveChart.Legend .Top = 205.1 .Height = 215.1 .Width = 105.3 .Left = 543.8 End With If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel7() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim ChartObj As ChartObject Dim xRng As Range Dim yRng As Range Sheets("Tafel Info").Select ActiveSheet.Shapes.Range(Array("TextBox 2")).Select Selection.ShapeRange.IncrementLeft 4.3 Worksheets("Tafel Info").ChartObjects(1).Activate ActiveChart.ChartType = xlXYScatterLinesNoMarkers With ActiveChart.PlotArea .Format.Line.Visible = msoTrue .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Format.Line.Transparency = 0 End With Set ChartObj = ActiveSheet.ChartObjects("Chart 6") For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If 469 difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 5 Then xPlacement = 8 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 150 .Trendlines(1).DataLabel.Top = 125 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 10 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G5:J26") xPlacement = 8 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(155, 194, 230) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng 470 .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 105 .Trendlines(1).DataLabel.Top = 215 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 20 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L5:O26") xPlacement = 8 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(198, 89, 17) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 30 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B28:E49") xPlacement = 31 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge 471 End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(112, 173, 71) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 40 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G28:J49") xPlacement = 31 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 217, 102) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 217, 102) 472 .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 45 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L28:O49") xPlacement = 31 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(166, 166, 166) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 50 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B51:E72") xPlacement = 54 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(47, 117, 181) End With Next i Next j 473 Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 190 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 55 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 60 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select 474 Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If Worksheets("EChem System").Cells(12, 8).Value > 60 And Worksheets("EChem System").Cells(12, 8).Value < 65 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True 475 .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If If runCounter = 65 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If Worksheets("EChem System").Cells(12, 8).Value > 65 And Worksheets("EChem System").Cells(12, 8).Value <= 70 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G74:J95") xPlacement = 77 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) 476 End With With Cells(xPlacement - 1, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement + 7, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 575 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If Set Chart = ChartObj.Chart Chart.HasLegend = False If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel7Plt() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim xRng As Range Dim yRng As Range Chart3.Activate With Chart3 .ChartType = xlXYScatterLinesNoMarkers End With ActiveChart.Shapes.AddTextbox(msoTextOrientationHorizontal, 197.5, 107.5, _ 191.6666929134, 33.3333070866).Select Selection.ShapeRange.TextFrame2.TextRange.Font.Bold = msoTrue Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = _ Round(Worksheets("Tafel Info").Cells(2, 13)) & " ± " & Round(Worksheets("Tafel Info").Cells(3, 13)) & " mV/decade" With Selection.ShapeRange(1).TextFrame2.TextRange.Characters().Font .Bold = msoTrue .NameComplexScript = "+mn-cs" .NameFarEast = "+mn-ea" .Size = 18 .Name = "+mn-lt" 477 End With Selection.ShapeRange.ScaleWidth 1#, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.IncrementLeft 117 Selection.ShapeRange.IncrementTop 30 Selection.ShapeRange.IncrementRotation 334 For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 5 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) End With End If If runCounter = 10 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) End With End If If runCounter = 20 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) End With 478 End If If runCounter = 30 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) End With End If If runCounter = 40 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) End With End If If runCounter = 45 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) End With End If If runCounter = 50 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) End With End If If runCounter = 55 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = 60 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) End With End If If Worksheets("EChem System").Cells(12, 8).Value > 60 And Worksheets("EChem System").Cells(12, 8).Value < 65 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then 479 Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If End If If runCounter = 65 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If If Worksheets("EChem System").Cells(12, 8).Value > 65 And Worksheets("EChem System").Cells(12, 8).Value <= 70 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) End With End If End If Chart3.Activate With ActiveChart.Legend .Top = 205.1 .Height = 215.1 .Width = 105.3 .Left = 543.8 End With If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel8() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 10000) Dim correlArr2(1 To 10000) Dim ChartObj As ChartObject Dim xRng As Range Dim yRng As Range Sheets("Tafel Info").Select ActiveSheet.Shapes.Range(Array("TextBox 2")).Select Selection.ShapeRange.IncrementLeft 4.3 Worksheets("Tafel Info").ChartObjects(1).Activate 480 ActiveChart.ChartType = xlXYScatterLinesNoMarkers With ActiveChart.PlotArea .Format.Line.Visible = msoTrue .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Format.Line.Transparency = 0 End With Set ChartObj = ActiveSheet.ChartObjects("Chart 6") For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 5 Then xPlacement = 8 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 150 .Trendlines(1).DataLabel.Top = 125 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 481 End With End If If runCounter = 10 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G5:J26") xPlacement = 8 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(155, 194, 230) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 105 .Trendlines(1).DataLabel.Top = 215 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 20 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L5:O26") xPlacement = 8 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(198, 89, 17) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) 482 Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 280 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 30 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B28:E49") xPlacement = 31 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(112, 173, 71) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 40 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G28:J49") xPlacement = 31 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) 483 .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 217, 102) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 50 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L28:O49") xPlacement = 31 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(166, 166, 166) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) 484 .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 60 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B51:E72") xPlacement = 54 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(47, 117, 181) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 190 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 65 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) 485 End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 70 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If Worksheets("EChem System").Cells(12, 8).Value > 70 And Worksheets("EChem System").Cells(12, 8).Value < 75 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 486 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If If runCounter = 75 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter 487 .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If Worksheets("EChem System").Cells(12, 8).Value > 75 And Worksheets("EChem System").Cells(12, 8).Value <= 80 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G74:J95") xPlacement = 77 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement - 1, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement + 7, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 575 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If Set Chart = ChartObj.Chart Chart.HasLegend = False If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False 488 End Sub Public Sub Tafel8Plt() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 10000) Dim correlArr2(1 To 10000) Dim xRng As Range Dim yRng As Range Chart3.Activate With Chart3 .ChartType = xlXYScatterLinesNoMarkers End With ActiveChart.Shapes.AddTextbox(msoTextOrientationHorizontal, 197.5, 107.5, _ 191.6666929134, 33.3333070866).Select Selection.ShapeRange.TextFrame2.TextRange.Font.Bold = msoTrue Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = _ Round(Worksheets("Tafel Info").Cells(2, 13)) & " ± " & Round(Worksheets("Tafel Info").Cells(3, 13)) & " mV/decade" With Selection.ShapeRange(1).TextFrame2.TextRange.Characters().Font .Bold = msoTrue .NameComplexScript = "+mn-cs" .NameFarEast = "+mn-ea" .Size = 18 .Name = "+mn-lt" End With Selection.ShapeRange.ScaleWidth 1#, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.IncrementLeft 117 Selection.ShapeRange.IncrementTop 30 Selection.ShapeRange.IncrementRotation 334 For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 5 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) 489 Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) End With End If If runCounter = 10 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) End With End If If runCounter = 20 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) End With End If If runCounter = 30 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) End With End If If runCounter = 40 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) End With End If If runCounter = 50 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) End With End If If runCounter = 60 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate 490 With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) End With End If If runCounter = 65 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = 70 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) End With End If If Worksheets("EChem System").Cells(12, 8).Value > 70 And Worksheets("EChem System").Cells(12, 8).Value < 75 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If End If If runCounter = 75 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If If Worksheets("EChem System").Cells(12, 8).Value > 75 And Worksheets("EChem System").Cells(12, 8).Value <= 80 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) End With End If End If Chart3.Activate With ActiveChart.Legend .Top = 205.1 .Height = 215.1 491 .Width = 105.3 .Left = 543.8 End With If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel9() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim ChartObj As ChartObject Dim xRng As Range Dim yRng As Range Sheets("Tafel Info").Select ActiveSheet.Shapes.Range(Array("TextBox 2")).Select Selection.ShapeRange.IncrementLeft 4.3 Worksheets("Tafel Info").ChartObjects(1).Activate ActiveChart.ChartType = xlXYScatterLinesNoMarkers With ActiveChart.PlotArea .Format.Line.Visible = msoTrue .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Format.Line.Transparency = 0 End With Set ChartObj = ActiveSheet.ChartObjects("Chart 6") For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) 492 If runCounter = 5 Then xPlacement = 8 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 150 .Trendlines(1).DataLabel.Top = 125 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 10 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G5:J26") xPlacement = 8 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(155, 194, 230) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 105 493 .Trendlines(1).DataLabel.Top = 215 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 20 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L5:O26") xPlacement = 8 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(198, 89, 17) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 280 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 30 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B28:E49") xPlacement = 31 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(112, 173, 71) End With 494 Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 40 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G28:J49") xPlacement = 31 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 217, 102) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 50 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L28:O49") xPlacement = 31 yPlacement = 12 For j = 1 To 2 495 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(166, 166, 166) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 60 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B51:E72") xPlacement = 54 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(47, 117, 181) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(47, 117, 181) 496 .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 190 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 70 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 80 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) 497 .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If Worksheets("EChem System").Cells(12, 8).Value > 80 And Worksheets("EChem System").Cells(12, 8).Value < 85 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If 498 End If If runCounter = 85 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If Worksheets("EChem System").Cells(12, 8).Value > 85 And Worksheets("EChem System").Cells(12, 8).Value <= 90 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G74:J95") xPlacement = 77 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement - 1, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement + 7, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With Next i 499 Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 575 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If Set Chart = ChartObj.Chart Chart.HasLegend = False If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel9Plt() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim xRng As Range Dim yRng As Range Chart3.Activate With Chart3 .ChartType = xlXYScatterLinesNoMarkers End With ActiveChart.Shapes.AddTextbox(msoTextOrientationHorizontal, 197.5, 107.5, _ 191.6666929134, 33.3333070866).Select Selection.ShapeRange.TextFrame2.TextRange.Font.Bold = msoTrue Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = _ Round(Worksheets("Tafel Info").Cells(2, 13)) & " ± " & Round(Worksheets("Tafel Info").Cells(3, 13)) & " mV/decade" With Selection.ShapeRange(1).TextFrame2.TextRange.Characters().Font .Bold = msoTrue .NameComplexScript = "+mn-cs" .NameFarEast = "+mn-ea" .Size = 18 .Name = "+mn-lt" End With Selection.ShapeRange.ScaleWidth 1#, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.IncrementLeft 117 Selection.ShapeRange.IncrementTop 30 Selection.ShapeRange.IncrementRotation 334 For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 500 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 5 Then xPlacement = 8 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) End With End If If runCounter = 10 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) End With End If If runCounter = 20 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng 501 .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) End With End If If runCounter = 30 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) End With End If If runCounter = 40 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) End With End If If runCounter = 50 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) End With End If If runCounter = 60 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) End With End If If runCounter = 70 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = 80 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) End With 502 End If If Worksheets("EChem System").Cells(12, 8).Value > 80 And Worksheets("EChem System").Cells(12, 8).Value < 85 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If End If If runCounter = 85 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If If Worksheets("EChem System").Cells(12, 8).Value > 85 And Worksheets("EChem System").Cells(12, 8).Value <= 90 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) End With End If End If Chart3.Activate With ActiveChart.Legend .Top = 205.1 .Height = 215.1 .Width = 105.3 .Left = 543.8 End With If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel10() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim ChartObj As ChartObject Dim xRng As Range Dim yRng As Range Sheets("Tafel Info").Select 503 ActiveSheet.Shapes.Range(Array("TextBox 2")).Select Selection.ShapeRange.IncrementLeft 4.3 Worksheets("Tafel Info").ChartObjects(1).Activate ActiveChart.ChartType = xlXYScatterLinesNoMarkers With ActiveChart.PlotArea .Format.Line.Visible = msoTrue .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Format.Line.Transparency = 0 End With Set ChartObj = ActiveSheet.ChartObjects("Chart 6") For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 5 Then xPlacement = 8 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 150 .Trendlines(1).DataLabel.Top = 125 504 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 192, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 10 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G5:J26") xPlacement = 8 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(155, 194, 230) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(155, 194, 230) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 105 .Trendlines(1).DataLabel.Top = 215 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(155, 194, 230) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 20 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L5:O26") xPlacement = 8 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(198, 89, 17) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(198, 89, 17) End With Next i 505 Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(198, 89, 17) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 30 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B28:E49") xPlacement = 31 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(112, 173, 71) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(112, 173, 71) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(112, 173, 71) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 40 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G28:J49") xPlacement = 31 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 506 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 217, 102) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 217, 102) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 170 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 217, 102) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 50 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L28:O49") xPlacement = 31 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(166, 166, 166) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(166, 166, 166) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DisplayEquation = True 507 .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(166, 166, 166) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 60 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("B51:E72") xPlacement = 54 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(47, 117, 181) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(47, 117, 181) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 190 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(47, 117, 181) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 70 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G51:J72") xPlacement = 54 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(131, 60, 12) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(131, 60, 12) 508 End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(131, 60, 12) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 275 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(131, 60, 12) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 80 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("L51:O72") xPlacement = 54 yPlacement = 12 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(255, 255, 0) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(255, 255, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 355 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(255, 255, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If runCounter = 90 Then Worksheets("Tafel Info").Range("B5:E26").Copy _ 509 Destination:=Worksheets("Tafel Info").Range("B74:E95") xPlacement = 77 yPlacement = 2 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement - 1, yPlacement) .Interior.Color = RGB(102, 255, 204) End With With Cells(xPlacement + 7, yPlacement) .Interior.Color = RGB(102, 255, 204) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(0, 0, 0) .Trendlines(1).DataLabel.Left = 385 .Trendlines(1).DataLabel.Top = 425 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(102, 255, 204) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If If Worksheets("EChem System").Cells(12, 8).Value > 90 And Worksheets("EChem System").Cells(12, 8).Value <= 100 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then Worksheets("Tafel Info").Range("B5:E26").Copy _ Destination:=Worksheets("Tafel Info").Range("G74:J95") xPlacement = 77 yPlacement = 7 For j = 1 To 2 For i = 1 To 5 Sheets("Tafel Info").Select Cells(i + xPlacement, j + yPlacement).Value = Application.Index(tafelArr1, i, j) With Cells(xPlacement - 3, yPlacement) .Value = "Run " & runCounter .HorizontalAlignment = xlCenter .Merge End With With Cells(xPlacement - 3, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement - 1, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With With Cells(xPlacement + 7, yPlacement) .Font.Color = RGB(255, 255, 255) .Interior.Color = RGB(0, 0, 0) End With Next i Next j Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) 510 Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) With ChartObj.Chart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines.Add .Trendlines(1).Format.Line.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DisplayEquation = True .Trendlines(1).DisplayRSquared = True .Trendlines(1).DataLabel.Font.Size = 20 .Trendlines(1).DataLabel.Font.Color = RGB(255, 255, 255) .Trendlines(1).DataLabel.Left = 575 .Trendlines(1).DataLabel.Top = 115 .Trendlines(1).DataLabel.Format.Fill.ForeColor.RGB = RGB(0, 0, 0) .Trendlines(1).DataLabel.Format.Fill.Solid .Trendlines(1).DataLabel.Format.Line.ForeColor.ObjectThemeColor = msoThemeColorText1 End With End If End If Set Chart = ChartObj.Chart Chart.HasLegend = False If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Public Sub Tafel10Plt() Application.ScreenUpdating = False If AlterRowOptionButton1 = True Then minRowVal = minVal maxRowVal = maxVal Else minRowVal = 5 For i = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Activate maxRowVal = Worksheets("Raw LSV Data").Cells(Rows.Count, i).End(xlUp).Row Next i End If Dim correlArr1(1 To 5100) Dim correlArr2(1 To 5100) Dim xRng As Range Dim yRng As Range Chart3.Activate With Chart3 .ChartType = xlXYScatterLinesNoMarkers End With ActiveChart.Shapes.AddTextbox(msoTextOrientationHorizontal, 197.5, 107.5, _ 191.6666929134, 33.3333070866).Select Selection.ShapeRange.TextFrame2.TextRange.Font.Bold = msoTrue Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = _ Round(Worksheets("Tafel Info").Cells(2, 13)) & " ± " & Round(Worksheets("Tafel Info").Cells(3, 13)) & " mV/decade" With Selection.ShapeRange(1).TextFrame2.TextRange.Characters().Font .Bold = msoTrue .NameComplexScript = "+mn-cs" .NameFarEast = "+mn-ea" .Size = 18 .Name = "+mn-lt" End With Selection.ShapeRange.ScaleWidth 1#, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.IncrementLeft 117 Selection.ShapeRange.IncrementTop 30 Selection.ShapeRange.IncrementRotation 334 For Each Series In ActiveChart.SeriesCollection Series.Delete Next Series runCounter = 1 For Index = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Sheets("Raw LSV Data").Select For i = plotVal - 1 To minRowVal Step -1 511 correlArr1(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(i, Index - 1), Cells(plotVal, Index - 1)), Sheets("Raw LSV Data").Range(Cells(i, Index), Cells(plotVal, Index)))) On Error Resume Next Next i For i = plotVal + 1 To maxRowVal Step 1 correlArr2(i) = Abs(Application.Correl(Sheets("Raw LSV Data").Range(Cells(plotVal, Index - 1), Cells(i, Index - 1)), Sheets("Raw LSV Data").Range(Cells(plotVal, Index), Cells(i, Index)))) On Error Resume Next Next i difference1Old = accVal difference2Old = accVal For j = 1 To 5100 difference1 = Abs(correlVal - Abs(correlArr1(j))) If difference1 < difference1Old Then difference1Old = difference1 jrem1 = j Else End If difference2 = Abs(correlVal - Abs(correlArr2(j))) If difference2 < difference2Old Then difference2Old = difference2 jrem2 = j Else End If Next j Dim tafelArr1() As Variant tafelArr1 = Application.WorksheetFunction.LinEst(Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)), Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)), True, True) If runCounter = 5 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 192, 0) End With End If If runCounter = 10 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(155, 194, 230) End With End If If runCounter = 20 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(198, 89, 17) End With End If If runCounter = 30 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(112, 173, 71) End With 512 End If If runCounter = 40 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 217, 102) End With End If If runCounter = 50 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(166, 166, 166) End With End If If runCounter = 60 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(47, 117, 181) End With End If If runCounter = 70 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(131, 60, 12) End With End If If runCounter = 80 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(255, 255, 0) End With End If If runCounter = 90 Then Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(102, 255, 204) End With End If If Worksheets("EChem System").Cells(12, 8).Value > 90 And Worksheets("EChem System").Cells(12, 8).Value <= 100 Then If runCounter = Worksheets("EChem System").Cells(12, 8).Value Then 513 Sheets("Raw LSV Data").Select Set xRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index), Cells(jrem2, Index)) Set yRng = Sheets("Raw LSV Data").Range(Cells(jrem1, Index - 1), Cells(jrem2, Index - 1)) Chart3.Activate With ActiveChart.SeriesCollection.NewSeries .XValues = xRng .Values = yRng .Name = "Run " & runCounter .Format.Line.ForeColor.RGB = RGB(0, 0, 0) End With End If End If Chart3.Activate With ActiveChart.Legend .Top = 205.1 .Height = 215.1 .Width = 105.3 .Left = 543.8 End With If runCounter = runVal Then runCounter = runCounter Else runCounter = runCounter + 1 End If Next Index Sheets("Tafel Info").Select Application.ScreenUpdating = False End Sub Sub TafRow_Click() Application.ScreenUpdating = False Dim valFind As String Dim iCol, iRow, i As Integer valFind = InputBox("Input an overpotential value (y-axis value) from the linear range of the Tafel plot. Clicking 'Ok' returns a row value to enter for Tafel analysis") If valFind = "" Then Exit Sub For iCol = 11 To (Worksheets("EChem System").Cells(12, 8).Value * 11) Step 11 Worksheets("Raw LSV Data").Select iRow = Worksheets("Raw LSV Data").Cells(Rows.Count, iCol - 1).End(xlUp).Row For i = 5 To iRow Step 1 If Abs(Worksheets("Raw LSV Data").Cells(i, 10).Value - valFind) <= 0.00001 Then MsgBox ("The row value to input for Tafel analysis is: " & i) Chart2.Activate Exit Sub End If Next i Next iCol MsgBox ("The overpotential value (y-axis), " & valFind & " was not found in the overpotential column of Raw LSV Data tab.") Chart2.Activate Application.ScreenUpdating = False End Sub Public Sub newTafImg_Click() TafExport End Sub Private Sub TafReRun_Click() TafReRunForm.Show End Sub Public Sub TafExport() Application.ScreenUpdating = True Worksheets("Tafel Info").Shapes("Button 1").Visible = False strDefpath_1 = Worksheets("StoredInfo(HIDDEN)").Range("C6").Value zipName1 = Worksheets("StoredInfo(HIDDEN)").Range("C8").Value parVal = Worksheets("EChem System").Cells(3, 2).Value multiVal = Worksheets("EChem System").Cells(15, 11).Value If Worksheets("EChem System").Cells(18, 5).Value = "HER" Then myFileName_3 = parVal & " HER EChem System Info.png" myFileName_6 = parVal & " HER Tafel Plot.png" myFileName_9 = parVal & " HER Tafel Plots.png" myFileName_11 = parVal & " HER Average Plots.png" 514 ElseIf Worksheets("EChem System").Cells(18, 5).Value = "OER" Then myFileName_3 = parVal & " OER EChem System Info.png" myFileName_6 = parVal & " OER Tafel Plot.png" myFileName_9 = parVal & " OER Tafel Plots.png" myFileName_11 = parVal & " OER Average Plots.png" End If If Worksheets("EChem System").Cells(27, 11).Value <> "" Then If Worksheets("EChem System").Cells(21, 8).Value <> "none" Then Chart3.Activate Chart3.Export fileName:=strDefpath_1 & "\" & multiVal & myFileName_9, Filtername:="PNG" End If If Worksheets("EChem System").Cells(35, 3).Value = "True" Then Chart6.Activate Chart6.Export fileName:=strDefpath_1 & "\" & multiVal & myFileName_11, Filtername:="PNG" End If Worksheets("EChem System").Activate Worksheets("EChem System").Range("A1:L35").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set oCht = Charts.Add oCht.ChartArea.Select oCht.Paste With oCht .Export fileName:=strDefpath_1 & "\" & multiVal & myFileName_3, Filtername:="PNG" .Delete End With If Worksheets("EChem System").Cells(21, 8).Value <> "none" Then Worksheets("Tafel Info").ChartObjects(1).Activate Worksheets("Tafel Info").ChartObjects(1) _ .Chart.Export fileName:=strDefpath_1 & "\" & multiVal & myFileName_6, Filtername:="PNG" End If Else If Worksheets("EChem System").Cells(21, 8).Value <> "none" Then Chart3.Activate Chart3.Export fileName:=strDefpath_1 & "\All " & myFileName_9, Filtername:="PNG" End If If Worksheets("EChem System").Cells(35, 3).Value = "True" Then Chart6.Activate Chart6.Export fileName:=strDefpath_1 & "\All " & myFileName_11, Filtername:="PNG" End If Worksheets("EChem System").Activate Worksheets("EChem System").Range("A1:L35").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set oCht = Charts.Add oCht.ChartArea.Select oCht.Paste With oCht .Export fileName:=strDefpath_1 & "\All " & myFileName_3, Filtername:="PNG" .Delete End With If Worksheets("EChem System").Cells(21, 8).Value <> "none" Then Worksheets("Tafel Info").ChartObjects(1).Activate Worksheets("Tafel Info").ChartObjects(1) _ .Chart.Export fileName:=strDefpath_1 & "\All " & myFileName_6, Filtername:="PNG" End If End If WorDoc Sheets("EChem System").Activate Application.ScreenUpdating = False ActiveWorkbook.Save End Sub Public Sub TafExport2() Application.ScreenUpdating = True Worksheets("Tafel Info").Shapes("Button 1").Visible = True strDefpath_1 = Worksheets("StoredInfo(HIDDEN)").Range("C6").Value zipName1 = Worksheets("StoredInfo(HIDDEN)").Range("C8").Value parVal = Worksheets("EChem System").Cells(3, 2).Value multiVal = Worksheets("EChem System").Cells(15, 11).Value If Worksheets("EChem System").Cells(18, 5).Value = "HER" Then myFileName_3 = parVal & " HER EChem System Info.png" myFileName_6 = parVal & " HER Tafel Plot.png" myFileName_9 = parVal & " HER Tafel Plots.png" myFileName_11 = parVal & " HER Average Plots.png" 515 ElseIf Worksheets("EChem System").Cells(18, 5).Value = "OER" Then myFileName_3 = parVal & " OER EChem System Info.png" myFileName_6 = parVal & " OER Tafel Plot.png" myFileName_9 = parVal & " OER Tafel Plots.png" myFileName_11 = parVal & " OER Average Plots.png" End If If Worksheets("EChem System").Cells(27, 11).Value <> "" Then If Worksheets("EChem System").Cells(21, 8).Value <> "none" Then Chart3.Activate Chart3.Export fileName:=strDefpath_1 & "\" & multiVal & myFileName_9, Filtername:="PNG" End If If Worksheets("EChem System").Cells(35, 3).Value = "True" Then Chart6.Activate Chart6.Export fileName:=strDefpath_1 & "\" & multiVal & myFileName_11, Filtername:="PNG" End If Worksheets("EChem System").Activate Worksheets("EChem System").Range("A1:L35").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set oCht = Charts.Add oCht.ChartArea.Select oCht.Paste With oCht .Export fileName:=strDefpath_1 & "\" & multiVal & myFileName_3, Filtername:="PNG" .Delete End With If Worksheets("EChem System").Cells(21, 8).Value <> "none" Then Worksheets("Tafel Info").ChartObjects(1).Activate Worksheets("Tafel Info").ChartObjects(1) _ .Chart.Export fileName:=strDefpath_1 & "\" & multiVal & myFileName_6, Filtername:="PNG" End If Else If Worksheets("EChem System").Cells(21, 8).Value <> "none" Then Chart3.Activate Chart3.Export fileName:=strDefpath_1 & "\All " & myFileName_9, Filtername:="PNG" End If If Worksheets("EChem System").Cells(35, 3).Value = "True" Then Chart6.Activate Chart6.Export fileName:=strDefpath_1 & "\All " & myFileName_11, Filtername:="PNG" End If Worksheets("EChem System").Activate Worksheets("EChem System").Range("A1:L35").CopyPicture Appearance:=xlScreen, Format:=xlBitmap Application.DisplayAlerts = False Set oCht = Charts.Add oCht.ChartArea.Select oCht.Paste With oCht .Export fileName:=strDefpath_1 & "\All " & myFileName_3, Filtername:="PNG" .Delete End With If Worksheets("EChem System").Cells(21, 8).Value <> "none" Then Worksheets("Tafel Info").ChartObjects(1).Activate Worksheets("Tafel Info").ChartObjects(1) _ .Chart.Export fileName:=strDefpath_1 & "\All " & myFileName_6, Filtername:="PNG" End If End If Sheets("EChem System").Activate Application.ScreenUpdating = False ActiveWorkbook.Save End Sub C.3.9. WorDocMod Code The WorDoc Sub is a program that creates a Word document file (.docx) with all of the exported images from the Export Sub. The purpose of this program is solely to produce a single file for the user to look at all the selected data that was processed. 516 Sub WorDoc() Application.ScreenUpdating = False Dim objWord Dim objDoc Dim objSelection Dim objShapes Dim objFSO Dim objFolder Dim zipName2, zipName1 As String parVal = Worksheets("EChem System").Cells(3, 2).Value multiVal = Worksheets("EChem System").Cells(12, 11).Value zipName1 = Worksheets("StoredInfo(HIDDEN)").Range("C8").Value zipName2 = Worksheets("StoredInfo(HIDDEN)").Range("C6").Value Set objWord = CreateObject("Word.Application") Set objDoc = objWord.documents.Add Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.GetFolder(zipName2) Set objSelection = objWord.Selection For Each img In objFolder.Files ImgPath = img.Path If Right(img.Path, 3) = "png" Then qVal = Split(img.Path, "\",, vbTextCompare) rVal = qVal(UBound(qVal)) sVal = Left(rVal, Len(rVal) - 4) With objSelection.InlineShapes.AddPicture(ImgPath) .LockAspectRatio = msoTrue .Width = Application.InchesToPoints(6.83) objSelection.TypeText (vbNewLine) objSelection.TypeText (sVal) objSelection.TypeText (vbNewLine) End With End If Next If Worksheets("EChem System").Cells(18, 5).Value = "HER" Then If Worksheets("EChem System").Cells(12, 11).Value <> "" Then objDoc.SaveAs (zipName1 & "\" & multiVal & parVal & " HER Images for Notebook.docx") Else objDoc.SaveAs (zipName1 & "\All " & parVal & " HER Images for Notebook.docx") End If ElseIf Worksheets("EChem System").Cells(18, 5).Value = "OER" Then If Worksheets("EChem System").Cells(12, 11).Value <> "" Then objDoc.SaveAs (zipName1 & "\" & multiVal & parVal & " OER Images for Notebook.docx") Else objDoc.SaveAs (zipName1 & "\All " & parVal & " OER Images for Notebook.docx") End If End If objDoc.Activate With objDoc.PageSetup .LeftMargin = Application.InchesToPoints(0.5) .RightMargin = Application.InchesToPoints(0.5) .TopMargin = Application.InchesToPoints(0.5) .BottomMargin = Application.InchesToPoints(0.5) End With Application.ScreenUpdating = False objDoc.Application.Quit SaveChanges:=wdSaveChanges End Sub All of the iRComp Mods were not included in this text as their code is nearly identical to their similar named Mods without iR compensation, with the exception that the data is collected from different cells of the Raw LSV Data Sheet where the iR compensated data was placed during processing. 517

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.