Sub Project_35_EN(ByVal VecType, m, n, m1, n1 As Integer) ' 35_Potential of point charges_EN ' Updated: 14/11/24 ' Created by: Ortiz Daniela, Valderrama Sebastian, Hernandez Aaron, Jimenez Gabriel (14/11/24) ' Modified by: _________________ ' This is the code of your new project. ' Steps to embed the code to ScienSolar: ' Note 1: The number 35 in the name of this function must match the one in the list of the CONFIG sheet for this project. If not, please correct it. ' Note 2: This code will be integrated into the main code (into the VBA editor) to automate the download of the project. ' Note 3: The formulas and cell values generated here correspond only to the first 30 columns in the sheet. All your formulas and values are recommended to be written in these columns. ' Step 1. Go to the CONFIG sheet (at the end of column C) and add the number of your new project to the last row in the projects list, and a short name in the corresponding langage column. ' Step 2. Make sure that the list of projects in CONFIG sheet has the correct ascending numbering. ' Step 4. Open the VBA editor (Alt + F11 in Windows or Fn + Option + F11 in macOS). To avoid mistakes, make sure you only have one workbook open. ' Step 5. On the left, in the project explorer, select a non full module (or add a new one). ' Step 6. Select all the code in this file, copy and paste it at the end of the existing code in the module (or in the new one). ' Step 7. To load the project and to check it in a new sheet, go to the CONFIG sheet and click the New Sheet button, then select the project from the list and click the +Vector button. ' Step 8. Click any XYZ button to get the project in the coordinate system. Enjoy it! ' Visit www.sciensolar.com for news and updates of © ScienSolar. Cells(m1 -1, n1 + 2).FormulaR1C1 ="1" Cells(m1 + 0, n1 + 0).FormulaR1C1 ="15" Cells(m1 + 0, n1 + 1).FormulaR1C1 ="32" Cells(m1 + 0, n1 + 2).FormulaR1C1 ="=CONFIG!R3C4" Cells(m1 + 0, n1 + 3).FormulaR1C1 ="850" Cells(m1 + 0, n1 + 6).FormulaR1C1 ="=CONFIG!R3C8" Cells(m1 + 0, n1 + 7).FormulaR1C1 ="8" Cells(m1 + 0, n1 + 8).FormulaR1C1 ="Ortiz Daniela, Valderrama Sebastian, Hernandez Aaron, Jimenez Gabriel (14/11/24)" Cells(m1 + 1, n1 + 2).FormulaR1C1 ="=CONFIG!R4C4" Cells(m1 + 1, n1 + 3).FormulaR1C1 ="400" Cells(m1 + 1, n1 + 4).FormulaR1C1 ="=CONFIG!R4C6" Cells(m1 + 1, n1 + 5).FormulaR1C1 ="0" Cells(m1 + 1, n1 + 6).FormulaR1C1 ="=CONFIG!R4C8" Cells(m1 + 1, n1 + 7).FormulaR1C1 ="45" Cells(m1 + 2, n1 + 0).FormulaR1C1 ="t = 0,05078125 s." Cells(m1 + 2, n1 + 2).FormulaR1C1 ="=CONFIG!R5C4" Cells(m1 + 2, n1 + 3).FormulaR1C1 ="20" Cells(m1 + 2, n1 + 4).FormulaR1C1 ="=CONFIG!R5C6" Cells(m1 + 2, n1 + 5).FormulaR1C1 ="15" Cells(m1 + 2, n1 + 6).FormulaR1C1 ="=CONFIG!R5C8" Cells(m1 + 2, n1 + 7).FormulaR1C1 ="0" Cells(m1 + 3, n1 + 0).FormulaR1C1 ="=""V(""&R[5]C[-1]&"",""&R[5]C&"",""&R[5]C[1]&"") = ""&ROUND(R[8]C[5],1)&"" V.""" Cells(m1 + 3, n1 + 2).FormulaR1C1 ="=CONFIG!R6C4" Cells(m1 + 3, n1 + 3).FormulaR1C1 ="200" Cells(m1 + 3, n1 + 4).FormulaR1C1 ="=CONFIG!R6C6" Cells(m1 + 3, n1 + 5).FormulaR1C1 ="15" Cells(m1, n1 + 9).FormulaR1C1 = "HELP" Dim HELPtxt as String HELPtxt = "CAMPO DE UN CUADRUPOLO EL CTRICO" & Chr(10) & _ " (See english version at the end)" & Chr(10) & _ " Un cuadrupolo el ctrico se puede definir como el conjunto de cuatro cargas puntuales q distribuidas en el espacio. La forma m s sencilla de un cuadrupolo son cuatro cargas distribuidas en los v rtices de un cuadrado. Para hallar el campo el ctrico de un cuadrupolo en cualquier punto del espacio, se aplica el principio de superposici n, es decir, en cada punto del espacio el campo el ctrico del dipolo es la suma vectorial de los campos el ctricos de las cuatro cargas por aparte: " & Chr(10) & _ " E = E1 + E2 + E3 + E4, E1 = k q1 /r1^2, E2 = k q2 /r2^2, E3 = k q3 /r3^2, E4 = k q4 /r4^2 ." & Chr(10) & _ " En las celdas A84, B84 y C84 est n las componentes para el campo resultante de las cuatro cargas cargas. En las celdas A10, B10 y C210 se introducen las coordenadas en el espacio en donde se ubica la primera carga y en las celdas A21, B21, C21 est n ubicadaa las ecuaciones para calcular el campo el ctrico de la primera carga: " & Chr(10) & _ " E1x= k q1(x1 x01)/((x1 x01)^2 + (y1 y01)^2 + (z1 z01)^2)^(3/2)" & Chr(10) & _ " E1y = k q1(y1 y01)/((x1 x01)^2 + (y1 y01)^2 + (z1 z01)^2)^(3/)2 " & Chr(10) & _ " E1z= k q1(z1 z01)/((x1 x01)^2 + (y1 y01)^2 + (z1 z01)^2)^(3/2)." & Chr(10) & _ " De manera similar en A28, B28, C28 se introduce la posici[on de la segunda carga y su campo en A39, B39, C39; en A46, B46, C46 la posici n de la tercera carga y su campo en A57, B57, C57, finalmente en A64, B64, C64 la posici n de la tercera carga y su campo en A75, B75, C75. " & Chr(10) & _ " Modifique la magnitud de las cargas y su signo en las celdas C6, C24, C42 y C60, as como el color de su apariencia. Para calcular el campo el ctrico en cualquier punto del espacio, introduzca las coordenadas del punto en A83, B83, C83 y oprima cualquier bot n de coordenadas. " & Chr(10) & _ " La configuraci n espacial del campo se puede visualizar en diferentes tipos de coordenadas utilizando la celda C79. Para ver el campo en coordenadas esf ricas coloque C79=s, en cil ndricas C79=c y en cartesianas C79=o y oprima cualquier bot n de coordenadas. Modifique a conveniencia los par metros del campo en la cadena que aparece en esta misma celda. " & Chr(10) & _ " Para visdualizar el campo el ctrico resultante con mayor resoluci n, en la celda C43 modifique entre los primeros par ntesis cuadrados el valor, poniendo uno m s peque o, por ejemplo o[0,5]; entre m peque o sea el valor, mejor ser la resoluci n pero tardar m s tiempo en renderizar. Para ver de nuevo los vectores campo solamente en un punto en particular, borre el contenido del la celda C43 y escriba las coordenadas en donde desee ver el campo en las celdas en A83, B83, C83, por ejemplo A47=0, B47=0, C47=3. " & Chr(10) & _ " (ENGLISH)" & Chr(10) & _ " FIELD OF AN ELECTRICAL QUADRUPOLE" & Chr(10) & _ " An electric quadrupole can be defined as the set of four point charges q distributed in space. The simplest form of a quadrupole is four charges distributed at the vertices of a square. To find the electric field of a quadrupole at any point in space, the superposition principle is applied, that is, at each point in space the electric field of the dipole is the vector sum of the electric fields of the four charges separately:" & Chr(10) & _ " E = E1 + E2 + E3 + E4, E1 = k q1 /r1^2, E2 = k q2 /r2^2, E3 = k q3 /r3^2, E4 = k q4 /r4^2 ." & Chr(10) & _ " In cells A84, B84 and C84 are the components of the field resulting from the four charges. In cells A10, B10 and C210 the coordinates in space where the first charge is located are entered and in cells A21, B21, C21 the equations are located to calculate the electric field of the first charge:" & Chr(10) & _ " E1x= k q1(x1 x01)/((x1 x01)^2 + (y1 y01)^2 + (z1 z01)^2)^(3/2)" & Chr(10) & _ " E1y = k q1(y1 y01)/((x1 x01)^2 + (y1 y01)^2 + (z1 z01)^2)^(3/)2" & Chr(10) & _ " E1z= k q1(z1 z01)/((x1 x01)^2 + (y1 y01)^2 + (z1 z01)^2)^(3/2)." & Chr(10) & _ " Similarly in A28, B28, C28 the position of the second charge and its field are entered in A39, B39, C39; in A46, B46, C46 the position of the third charge and its field in A57, B57, C57, finally in A64, B64, C64 the position of the third charge and its field in A75, B75, C75." & Chr(10) & _ " Change the magnitude of the charges and their sign in cells C6, C24, C42 and C60, as well as the color of their appearance. To calculate the electric field at any point in space, enter the coordinates of the point at A83, B83, C83 and press any coordinate button." & Chr(10) & _ " The spatial configuration of the field can be displayed in different types of coordinates using cell C79. To see the field in spherical coordinates, place C79=s, in cylindrical C79=c and in Cartesian C79=o and press any coordinate button. Modify the field parameters in the string that appears in this very cell. To visualize the resulting electric field with greater resolution, in cell C43 modify the value between the first brackets, putting a smaller one, for example o[0,5]; the smaller the value, the better the resolution, but it will take longer to render. To return to seeing the field vectors only at a particular point, delete the contents of cell C43 and type the coordinates where you want to see the field in cells A83, B83, C83, for example A47=0, B47=0, C47 =3." & Chr(10) & _ " " On Error Resume Next Cells(m1 , n1 + 9).Comment.Text Text:= HELPtxt If m = m1 + 0 Then ' vector 9 Cells(m + 3, n + -1).FormulaR1C1 ="1" Cells(m + 3, n + 0).FormulaR1C1 ="=""V(""&R[5]C[-1]&"",""&R[5]C&"",""&R[5]C[1]&"") = ""&ROUND(R[8]C[5],1)&"" V.""" Cells(m + 3, n + 2).FormulaR1C1 ="=CONFIG!R6C4" Cells(m + 3, n + 3).FormulaR1C1 ="200" Cells(m + 3, n + 4).FormulaR1C1 ="=CONFIG!R6C6" Cells(m + 3, n + 5).FormulaR1C1 ="15" Cells(m + 4, n + -1).FormulaR1C1 ="1" Cells(m + 4, n + 0).FormulaR1C1 ="9" Cells(m + 4, n + 1).FormulaR1C1 ="=IF(R[19]C[4]=1,R[20]C[4],IF(R[19]C[4]=2,R[21]C[4],""""))" Cells(m + 4, n + 2).FormulaR1C1 ="Electric Potential" Cells(m + 4, n + 12).FormulaR1C1 ="POTENTIAL OF AN ELECTROSTATIC FIELD" Cells(m + 4, n + 24).FormulaR1C1 ="INSTRUCTIONS" Cells(m + 5, n + -1).FormulaR1C1 ="1" Cells(m + 5, n + 0).FormulaR1C1 ="1" Cells(m + 5, n + 1).FormulaR1C1 ="0" Cells(m + 6, n + -1).FormulaR1C1 ="=SUMIFS(C[2],C[3],""V_*"")" Cells(m + 6, n + 0).FormulaR1C1 ="=SUMIFS(C[-1],C[2],""V_*"")" Cells(m + 6, n + 1).FormulaR1C1 ="=SUMIFS(C[-1],C[1],""V_*"")" Cells(m + 6, n + 4).FormulaR1C1 ="Electric constant:" Cells(m + 7, n + -1).FormulaR1C1 ="=R[1]C" Cells(m + 7, n + 0).FormulaR1C1 ="=R[1]C" Cells(m + 7, n + 1).FormulaR1C1 ="=R[1]C" Cells(m + 7, n + 4).FormulaR1C1 ="k=" Cells(m + 7, n + 5).FormulaR1C1 ="8900000000" Cells(m + 7, n + 21).FormulaR1C1 ="The simulation allows to calculate and visualize in three dimensions the electrical potential due to" Cells(m + 8, n + -1).FormulaR1C1 ="4" Cells(m + 8, n + 0).FormulaR1C1 ="4" Cells(m + 8, n + 1).FormulaR1C1 ="8" Cells(m + 8, n + 2).FormulaR1C1 ="<< --- Field study point" Cells(m + 8, n + 21).FormulaR1C1 ="several charges that are distributed in space. In the model, 4 charges q1, q2, q3, q4 are taken," Cells(m + 9, n + -1).FormulaR1C1 ="=R[-3]C[1]" Cells(m + 9, n + 0).FormulaR1C1 ="=R[-3]C[1]" Cells(m + 9, n + 1).FormulaR1C1 ="=R[-3]C[-2]" Cells(m + 9, n + 2).FormulaR1C1 ="=IF(R[-5]C[-1]>1,"" <-- Field formulae"","""")" Cells(m + 9, n + 4).FormulaR1C1 ="Magnitude of the " Cells(m + 9, n + 21).FormulaR1C1 ="Although it is possible to add or decrease more charges q and calculate the electric potential at any" Cells(m + 10, n + -1).FormulaR1C1 ="1" Cells(m + 10, n + 0).FormulaR1C1 ="0" Cells(m + 10, n + 1).FormulaR1C1 ="1" Cells(m + 10, n + 4).FormulaR1C1 ="resulting field:" Cells(m + 10, n + 21).FormulaR1C1 ="point in space. The procedure for adding more charges is described at the end." Cells(m + 11, n + -1).FormulaR1C1 ="3" Cells(m + 11, n + 0).FormulaR1C1 ="0" Cells(m + 11, n + 1).FormulaR1C1 ="4" Cells(m + 11, n + 4).FormulaR1C1 =" V=" Cells(m + 11, n + 5).FormulaR1C1 ="=R[-2]C[-6]" Cells(m + 3, n + 1).Interior.Color = "5287936" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = " - q1" Call AddNewVector end if ' vector ends If m = m1 + 9 Then ' vector 8 Cells(m + 3, n + -1).FormulaR1C1 ="=R[-9]C+1" Cells(m + 3, n + 0).FormulaR1C1 ="=IF(RC[1]<0, "" - "", "" + "")&""q""&RC[-1]/2" Cells(m + 3, n + 1).FormulaR1C1 ="-0.00000001" Cells(m + 3, n + 2).FormulaR1C1 ="=""<< -- Magnitude and color of q""&RC[-3]/2" Cells(m + 3, n + 21).FormulaR1C1 ="The total potential can be calculated by applying the principle of superposition, such as " Cells(m + 4, n + -1).FormulaR1C1 ="1" Cells(m + 4, n + 0).FormulaR1C1 ="9" Cells(m + 4, n + 4).FormulaR1C1 ="Number of charges:" Cells(m + 4, n + 21).FormulaR1C1 ="scalar addition, of the individual potentials generated by each charge at the point for each charge" Cells(m + 5, n + -1).FormulaR1C1 ="1" Cells(m + 5, n + 0).FormulaR1C1 ="1" Cells(m + 5, n + 1).FormulaR1C1 ="0" Cells(m + 5, n + 4).FormulaR1C1 =" n =" Cells(m + 5, n + 5).FormulaR1C1 ="=COUNTIF(C[-3],""V_*"")" Cells(m + 5, n + 21).FormulaR1C1 ="at the point in question:" Cells(m + 6, n + 4).FormulaR1C1 ="(to add more charges" Cells(m + 7, n + -1).FormulaR1C1 ="0" Cells(m + 7, n + 0).FormulaR1C1 ="=R[-4]C[-1]/2-1" Cells(m + 7, n + 1).FormulaR1C1 ="=R[-4]C[-2]/4-0.5" Cells(m + 7, n + 2).FormulaR1C1 ="=""<< -- Position of q""&R[-4]C[-3]/2" Cells(m + 7, n + 4).FormulaR1C1 =" press +OBJ.)" Cells(m + 7, n + 27).FormulaR1C1 ="(Eq-34-1)" Cells(m + 8, n + 2).FormulaR1C1 ="=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 9, n + -1).FormulaR1C1 ="=R[-10]C+1" Cells(m + 9, n + 0).FormulaR1C1 ="=R[-10]C+1" Cells(m + 9, n + 1).FormulaR1C1 ="=R[-10]C-1" Cells(m + 9, n + 2).FormulaR1C1 ="=IF(R[-5]C[-1]>1,"" <-- Field formulae"","""")" Cells(m + 9, n + 4).FormulaR1C1 ="Show auxiliary vectors:" Cells(m + 10, n + -1).FormulaR1C1 ="1" Cells(m + 10, n + 0).FormulaR1C1 ="0" Cells(m + 10, n + 1).FormulaR1C1 ="1" Cells(m + 10, n + 4).FormulaR1C1 ="YES=0, NO=1" Cells(m + 10, n + 5).FormulaR1C1 ="1" Cells(m + 10, n + 21).FormulaR1C1 ="Where ri is the distance between each charge qi and the evaluation point, and k is " Cells(m + 11, n + -1).FormulaR1C1 ="1" Cells(m + 11, n + 0).FormulaR1C1 ="0" Cells(m + 11, n + 1).FormulaR1C1 ="8" Cells(m + 11, n + 21).FormulaR1C1 ="constant of proportionality which depends on the system of units and is entered in cell G10." Cells(m + 3, n + 1).Interior.Color = "13998939" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = "" Call AddNewVector end if ' vector ends If m = m1 + 18 Then ' vector 7 Cells(m + 3, n + -1).FormulaR1C1 ="=R[-9]C+1" Cells(m + 3, n + 4).FormulaR1C1 ="Field views (magnitude):" Cells(m + 3, n + 21).FormulaR1C1 ="These equations are located respectively for each load and each coordinate in" Cells(m + 4, n + -1).FormulaR1C1 ="1" Cells(m + 4, n + 0).FormulaR1C1 ="146" Cells(m + 4, n + 4).FormulaR1C1 ="(0, 1 or 2 )" Cells(m + 4, n + 21).FormulaR1C1 ="rows 30, 48, 66 and 84." Cells(m + 5, n + -1).FormulaR1C1 ="1" Cells(m + 5, n + 0).FormulaR1C1 ="2" Cells(m + 5, n + 1).FormulaR1C1 ="=R22C7" Cells(m + 5, n + 4).FormulaR1C1 =" Nr =" Cells(m + 5, n + 5).FormulaR1C1 ="0" Cells(m + 6, n + 5).FormulaR1C1 ="o[0,5]x=[0;0]o2[0,5]y=[-10;10]o3[0,5]z=[-10;10]color=[40]origin[cart.]=[4;4;1,6]tfactor=0,003223469s" Cells(m + 6, n + 6).FormulaR1C1 =" " Cells(m + 6, n + 27).FormulaR1C1 ="(Eq-34-2)" Cells(m + 7, n + -1).FormulaR1C1 ="=R[-17]C+1" Cells(m + 7, n + 0).FormulaR1C1 ="=R[-17]C+1" Cells(m + 7, n + 1).FormulaR1C1 ="=R[-17]C+1" Cells(m + 7, n + 5).FormulaR1C1 ="o[0,5]x=[-10;15]o2[0,5]y=[-10;10]o3[0,5]z=[0;0]color=[60]origin[cart.]=[4;4;0]tfactor=0,003484255s" Cells(m + 7, n + 6).FormulaR1C1 =" " Cells(m + 8, n + -1).FormulaR1C1 ="=R[-1]C+1" Cells(m + 8, n + 0).FormulaR1C1 ="=R[-1]C+1" Cells(m + 8, n + 1).FormulaR1C1 ="=R[-1]C+1" Cells(m + 8, n + 2).FormulaR1C1 ="=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 8, n + 4).FormulaR1C1 ="(Press XYZ)" Cells(m + 9, n + -1).FormulaR1C1 ="=1/(POWER(POWER(R11C1-R[-11]C,2)+POWER(R11C2-R[-11]C[1],2)+POWER(R11C3-R[-11]C[2],2),1/2))*R10C7*R[-15]C[2]" Cells(m + 9, n + 0).FormulaR1C1 ="=1/(POWER(POWER(R11C1-R[-11]C[-1],2)+POWER(R11C2-R[-11]C,2)+POWER(R11C3-R[-11]C[1],2),1/2))*R10C7*R[-15]C[1]" Cells(m + 9, n + 1).FormulaR1C1 ="=1/(POWER(POWER(R11C1-R[-11]C[-2],2)+POWER(R11C2-R[-11]C[-1],2)+POWER(R11C3-R[-11]C,2),1/2))*R10C7*R[-15]C" Cells(m + 9, n + 2).FormulaR1C1 ="=""V_""&R[-15]C[-3]/2" Cells(m + 9, n + 21).FormulaR1C1 ="The following table shows the cells for setting the position, magnitude of the loads, and" Cells(m + 10, n + -1).FormulaR1C1 ="1" Cells(m + 10, n + 0).FormulaR1C1 ="0" Cells(m + 10, n + 1).FormulaR1C1 ="1" Cells(m + 10, n + 21).FormulaR1C1 ="the point where the electric potential is studied." Cells(m + 11, n + -1).FormulaR1C1 ="2" Cells(m + 11, n + 0).FormulaR1C1 ="0" Cells(m + 11, n + 1).FormulaR1C1 ="7" Cells(m + 11, n + 21).FormulaR1C1 ="CHARGE" Cells(m + 11, n + 22).FormulaR1C1 ="MAGNITUDE" Cells(m + 11, n + 23).FormulaR1C1 ="POSITION" Cells(m + 11, n + 24).FormulaR1C1 ="POSITION" Cells(m + 11, n + 25).FormulaR1C1 ="POSITION" Cells(m + 3, n + 1).Interior.Color = "255" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = " - q2" Call AddNewVector end if ' vector ends If m = m1 + 27 Then ' vector 6 Cells(m + 3, n + -1).FormulaR1C1 ="=R[-9]C+1" Cells(m + 3, n + 0).FormulaR1C1 ="=IF(RC[1]<0, "" - "", "" + "")&""q""&RC[-1]/2" Cells(m + 3, n + 1).FormulaR1C1 ="-0.00000001" Cells(m + 3, n + 2).FormulaR1C1 ="=""<< -- Magnitude and color of q""&RC[-3]/2" Cells(m + 3, n + 23).FormulaR1C1 ="X" Cells(m + 3, n + 24).FormulaR1C1 ="Y" Cells(m + 3, n + 25).FormulaR1C1 ="Z" Cells(m + 4, n + -1).FormulaR1C1 ="1" Cells(m + 4, n + 0).FormulaR1C1 ="9" Cells(m + 4, n + 21).FormulaR1C1 ="q1" Cells(m + 4, n + 22).FormulaR1C1 ="C15" Cells(m + 4, n + 23).FormulaR1C1 ="A19" Cells(m + 4, n + 24).FormulaR1C1 ="B19" Cells(m + 4, n + 25).FormulaR1C1 ="C19" Cells(m + 5, n + -1).FormulaR1C1 ="1" Cells(m + 5, n + 0).FormulaR1C1 ="1" Cells(m + 5, n + 1).FormulaR1C1 ="0" Cells(m + 5, n + 21).FormulaR1C1 ="q2" Cells(m + 5, n + 22).FormulaR1C1 ="C33" Cells(m + 5, n + 23).FormulaR1C1 ="A37" Cells(m + 5, n + 24).FormulaR1C1 ="B37" Cells(m + 5, n + 25).FormulaR1C1 ="C37" Cells(m + 6, n + 21).FormulaR1C1 ="q3" Cells(m + 6, n + 22).FormulaR1C1 ="C51" Cells(m + 6, n + 23).FormulaR1C1 ="A55" Cells(m + 6, n + 24).FormulaR1C1 ="B55" Cells(m + 6, n + 25).FormulaR1C1 ="C55" Cells(m + 7, n + -1).FormulaR1C1 ="8" Cells(m + 7, n + 0).FormulaR1C1 ="0" Cells(m + 7, n + 1).FormulaR1C1 ="0" Cells(m + 7, n + 2).FormulaR1C1 ="=""<< -- Position of q""&R[-4]C[-3]/2" Cells(m + 7, n + 21).FormulaR1C1 ="q4" Cells(m + 7, n + 22).FormulaR1C1 ="C69" Cells(m + 7, n + 23).FormulaR1C1 ="A73" Cells(m + 7, n + 24).FormulaR1C1 ="B73" Cells(m + 7, n + 25).FormulaR1C1 ="C73" Cells(m + 8, n + 2).FormulaR1C1 ="=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 8, n + 21).FormulaR1C1 ="P (x, y, z) =" Cells(m + 8, n + 23).FormulaR1C1 ="A11" Cells(m + 8, n + 24).FormulaR1C1 ="B11" Cells(m + 8, n + 25).FormulaR1C1 ="C11" Cells(m + 9, n + -1).FormulaR1C1 ="=R[-10]C+1" Cells(m + 9, n + 0).FormulaR1C1 ="=R[-10]C+1" Cells(m + 9, n + 1).FormulaR1C1 ="=R[-10]C-1" Cells(m + 9, n + 2).FormulaR1C1 ="=IF(R[-5]C[-1]>1,"" <-- Field formulae"","""")" Cells(m + 10, n + -1).FormulaR1C1 ="1" Cells(m + 10, n + 0).FormulaR1C1 ="0" Cells(m + 10, n + 1).FormulaR1C1 ="1" Cells(m + 10, n + 21).FormulaR1C1 ="The color of the charge is modified in the same cell as the magnitude, which can be negative " Cells(m + 11, n + -1).FormulaR1C1 ="1" Cells(m + 11, n + 0).FormulaR1C1 ="0" Cells(m + 11, n + 1).FormulaR1C1 ="8" Cells(m + 11, n + 21).FormulaR1C1 ="or positive. The total potential is shown as a green dot on the plane." Cells(m + 3, n + 1).Interior.Color = "13998939" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = "" Call AddNewVector end if ' vector ends If m = m1 + 36 Then ' vector 5 Cells(m + 3, n + -1).FormulaR1C1 ="=R[-9]C+1" Cells(m + 4, n + -1).FormulaR1C1 ="1" Cells(m + 4, n + 0).FormulaR1C1 ="146" Cells(m + 4, n + 21).FormulaR1C1 ="According to the table above, modify the magnitude, position and sign of the charges according to" Cells(m + 5, n + -1).FormulaR1C1 ="1" Cells(m + 5, n + 0).FormulaR1C1 ="2" Cells(m + 5, n + 1).FormulaR1C1 ="=R22C7" Cells(m + 5, n + 21).FormulaR1C1 ="your criteria and view the results by pressing the XYZ button or any coordinate button." Cells(m + 6, n + 21).FormulaR1C1 ="Identify points of symmetry (x,y,z) in space and enter their coordinates in A11, B11, C11." Cells(m + 7, n + -1).FormulaR1C1 ="=R[-17]C+1" Cells(m + 7, n + 0).FormulaR1C1 ="=R[-17]C+1" Cells(m + 7, n + 1).FormulaR1C1 ="=R[-17]C+1" Cells(m + 8, n + -1).FormulaR1C1 ="=R[-1]C+1" Cells(m + 8, n + 0).FormulaR1C1 ="=R[-1]C+1" Cells(m + 8, n + 1).FormulaR1C1 ="=R[-1]C+1" Cells(m + 8, n + 2).FormulaR1C1 ="=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 8, n + 21).FormulaR1C1 ="The model is designed to add more charges in space. To add an additional charge" Cells(m + 9, n + -1).FormulaR1C1 ="=1/(POWER(POWER(R11C1-R[-11]C,2)+POWER(R11C2-R[-11]C[1],2)+POWER(R11C3-R[-11]C[2],2),1/2))*R10C7*R[-15]C[2]" Cells(m + 9, n + 0).FormulaR1C1 ="=1/(POWER(POWER(R11C1-R[-11]C[-1],2)+POWER(R11C2-R[-11]C,2)+POWER(R11C3-R[-11]C[1],2),1/2))*R10C7*R[-15]C[1]" Cells(m + 9, n + 1).FormulaR1C1 ="=1/(POWER(POWER(R11C1-R[-11]C[-2],2)+POWER(R11C2-R[-11]C[-1],2)+POWER(R11C3-R[-11]C,2),1/2))*R10C7*R[-15]C" Cells(m + 9, n + 2).FormulaR1C1 ="=""V_""&R[-15]C[-3]/2" Cells(m + 9, n + 21).FormulaR1C1 ="Do the following:" Cells(m + 10, n + -1).FormulaR1C1 ="1" Cells(m + 10, n + 0).FormulaR1C1 ="0" Cells(m + 10, n + 1).FormulaR1C1 ="1" Cells(m + 10, n + 21).FormulaR1C1 ="1. Press the +OBJ button." Cells(m + 11, n + -1).FormulaR1C1 ="2" Cells(m + 11, n + 0).FormulaR1C1 ="0" Cells(m + 11, n + 1).FormulaR1C1 ="7" Cells(m + 11, n + 21).FormulaR1C1 ="2. Enter A91=3, B91=3, C91=6 for new load position. Press XYZ to view the" Cells(m + 3, n + 1).Interior.Color = "255" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = " + q3" Call AddNewVector end if ' vector ends If m = m1 + 45 Then ' vector 4 Cells(m + 3, n + -1).FormulaR1C1 ="=R[-9]C+1" Cells(m + 3, n + 0).FormulaR1C1 ="=IF(RC[1]<0, "" - "", "" + "")&""q""&RC[-1]/2" Cells(m + 3, n + 1).FormulaR1C1 ="0.00000001" Cells(m + 3, n + 2).FormulaR1C1 ="=""<< -- Magnitude and color of q""&RC[-3]/2" Cells(m + 3, n + 21).FormulaR1C1 ="result." Cells(m + 4, n + -1).FormulaR1C1 ="1" Cells(m + 4, n + 0).FormulaR1C1 ="9" Cells(m + 4, n + 21).FormulaR1C1 ="Press >>C to see the result clearly." Cells(m + 5, n + -1).FormulaR1C1 ="1" Cells(m + 5, n + 0).FormulaR1C1 ="1" Cells(m + 5, n + 1).FormulaR1C1 ="0" Cells(m + 5, n + 21).FormulaR1C1 ="To add more charges the procedure is similar." Cells(m + 6, n + 21).FormulaR1C1 ="The total value of the Potential is shown in cell G14." Cells(m + 7, n + -1).FormulaR1C1 ="8" Cells(m + 7, n + 0).FormulaR1C1 ="8" Cells(m + 7, n + 1).FormulaR1C1 ="0" Cells(m + 7, n + 2).FormulaR1C1 ="=""<< -- Position of q""&R[-4]C[-3]/2" Cells(m + 8, n + 2).FormulaR1C1 ="=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 8, n + 21).FormulaR1C1 ="Example:" Cells(m + 9, n + -1).FormulaR1C1 ="=R[-10]C+1" Cells(m + 9, n + 0).FormulaR1C1 ="=R[-10]C+1" Cells(m + 9, n + 1).FormulaR1C1 ="=R[-10]C-1" Cells(m + 9, n + 2).FormulaR1C1 ="=IF(R[-5]C[-1]>1,"" <-- Field formulae"","""")" Cells(m + 9, n + 21).FormulaR1C1 ="Given four charges q1 = q2 = q3 = q4 = 1E-8 located at different points." Cells(m + 10, n + -1).FormulaR1C1 ="1" Cells(m + 10, n + 0).FormulaR1C1 ="0" Cells(m + 10, n + 1).FormulaR1C1 ="1" Cells(m + 10, n + 21).FormulaR1C1 ="a) Find the resulting electric potential at point P(1,2,3)" Cells(m + 11, n + -1).FormulaR1C1 ="1" Cells(m + 11, n + 0).FormulaR1C1 ="0" Cells(m + 11, n + 1).FormulaR1C1 ="8" Cells(m + 3, n + 1).Interior.Color = "255" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = "" Call AddNewVector end if ' vector ends If m = m1 + 54 Then ' vector 3 Cells(m + 3, n + -1).FormulaR1C1 ="=R[-9]C+1" Cells(m + 3, n + 21).FormulaR1C1 ="Solution:" Cells(m + 4, n + -1).FormulaR1C1 ="1" Cells(m + 4, n + 0).FormulaR1C1 ="146" Cells(m + 4, n + 21).FormulaR1C1 ="a)" Cells(m + 4, n + 22).FormulaR1C1 ="Magnitude" Cells(m + 4, n + 24).FormulaR1C1 ="Position" Cells(m + 5, n + -1).FormulaR1C1 ="1" Cells(m + 5, n + 0).FormulaR1C1 ="2" Cells(m + 5, n + 1).FormulaR1C1 ="=R22C7" Cells(m + 5, n + 21).FormulaR1C1 ="q1 = C15 =" Cells(m + 5, n + 22).FormulaR1C1 ="0.00000001" Cells(m + 5, n + 24).FormulaR1C1 ="(A19=0, B19=0, C19=0)" Cells(m + 6, n + 21).FormulaR1C1 ="q2 = C33 =" Cells(m + 6, n + 22).FormulaR1C1 ="0.00000001" Cells(m + 6, n + 24).FormulaR1C1 ="(A37=1, B37=0, C37=0)" Cells(m + 7, n + -1).FormulaR1C1 ="=R[-17]C+1" Cells(m + 7, n + 0).FormulaR1C1 ="=R[-17]C+1" Cells(m + 7, n + 1).FormulaR1C1 ="=R[-17]C+1" Cells(m + 7, n + 21).FormulaR1C1 ="q3 = C51 =" Cells(m + 7, n + 22).FormulaR1C1 ="0.00000001" Cells(m + 7, n + 24).FormulaR1C1 ="(A55=0, B55=1, C55=2)" Cells(m + 8, n + -1).FormulaR1C1 ="=R[-1]C+1" Cells(m + 8, n + 0).FormulaR1C1 ="=R[-1]C+1" Cells(m + 8, n + 1).FormulaR1C1 ="=R[-1]C+1" Cells(m + 8, n + 2).FormulaR1C1 ="=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 8, n + 21).FormulaR1C1 ="q4 = C69 =" Cells(m + 8, n + 22).FormulaR1C1 ="0.00000001" Cells(m + 8, n + 24).FormulaR1C1 ="(A73=0, B73=0, C73=1)" Cells(m + 9, n + -1).FormulaR1C1 ="=1/(POWER(POWER(R11C1-R[-11]C,2)+POWER(R11C2-R[-11]C[1],2)+POWER(R11C3-R[-11]C[2],2),1/2))*R10C7*R[-15]C[2]" Cells(m + 9, n + 0).FormulaR1C1 ="=1/(POWER(POWER(R11C1-R[-11]C[-1],2)+POWER(R11C2-R[-11]C,2)+POWER(R11C3-R[-11]C[1],2),1/2))*R10C7*R[-15]C[1]" Cells(m + 9, n + 1).FormulaR1C1 ="=1/(POWER(POWER(R11C1-R[-11]C[-2],2)+POWER(R11C2-R[-11]C[-1],2)+POWER(R11C3-R[-11]C,2),1/2))*R10C7*R[-15]C" Cells(m + 9, n + 2).FormulaR1C1 ="=""V_""&R[-15]C[-3]/2" Cells(m + 9, n + 21).FormulaR1C1 ="P (x, y, z) =" Cells(m + 9, n + 24).FormulaR1C1 ="(A11=1, B11=2, C11=3)" Cells(m + 10, n + -1).FormulaR1C1 ="1" Cells(m + 10, n + 0).FormulaR1C1 ="0" Cells(m + 10, n + 1).FormulaR1C1 ="1" Cells(m + 10, n + 21).FormulaR1C1 =" k = G10 =" Cells(m + 10, n + 22).FormulaR1C1 ="8900000000" Cells(m + 11, n + -1).FormulaR1C1 ="2" Cells(m + 11, n + 0).FormulaR1C1 ="0" Cells(m + 11, n + 1).FormulaR1C1 ="7" Cells(m + 11, n + 21).FormulaR1C1 ="Press: XYZ " Cells(m + 3, n + 1).Interior.Color = "255" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = " + q4" Call AddNewVector end if ' vector ends If m = m1 + 63 Then ' vector 2 Cells(m + 3, n + -1).FormulaR1C1 ="=R[-9]C+1" Cells(m + 3, n + 0).FormulaR1C1 ="=IF(RC[1]<0, "" - "", "" + "")&""q""&RC[-1]/2" Cells(m + 3, n + 1).FormulaR1C1 ="0.00000001" Cells(m + 3, n + 2).FormulaR1C1 ="=""<< -- Magnitude and color of q""&RC[-3]/2" Cells(m + 3, n + 21).FormulaR1C1 ="Note: we introduce a system of units in which k=8.9E9." Cells(m + 4, n + -1).FormulaR1C1 ="1" Cells(m + 4, n + 0).FormulaR1C1 ="9" Cells(m + 4, n + 21).FormulaR1C1 ="RESULT:" Cells(m + 5, n + -1).FormulaR1C1 ="1" Cells(m + 5, n + 0).FormulaR1C1 ="1" Cells(m + 5, n + 1).FormulaR1C1 ="0" Cells(m + 5, n + 21).FormulaR1C1 ="V = G14 =" Cells(m + 5, n + 22).FormulaR1C1 ="129.5212" Cells(m + 7, n + -1).FormulaR1C1 ="0" Cells(m + 7, n + 0).FormulaR1C1 ="8" Cells(m + 7, n + 1).FormulaR1C1 ="0" Cells(m + 7, n + 2).FormulaR1C1 ="=""<< -- Position of q""&R[-4]C[-3]/2" Cells(m + 8, n + 2).FormulaR1C1 ="=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 8, n + 21).FormulaR1C1 ="Exercises:" Cells(m + 9, n + -1).FormulaR1C1 ="=R[-10]C+1" Cells(m + 9, n + 0).FormulaR1C1 ="=R[-10]C+1" Cells(m + 9, n + 1).FormulaR1C1 ="=R[-10]C-1" Cells(m + 9, n + 2).FormulaR1C1 ="=IF(R[-5]C[-1]>1,"" <-- Field formulae"","""")" Cells(m + 9, n + 21).FormulaR1C1 ="1. Calculate the electric potential of four equal charges, q=2E9. They are located in the following" Cells(m + 10, n + -1).FormulaR1C1 ="1" Cells(m + 10, n + 0).FormulaR1C1 ="0" Cells(m + 10, n + 1).FormulaR1C1 ="1" Cells(m + 10, n + 21).FormulaR1C1 ="points: q1=(0,0,1);q2=(0,2,0);q3=(3,0,0);q4=(1,1,2)" Cells(m + 11, n + -1).FormulaR1C1 ="1" Cells(m + 11, n + 0).FormulaR1C1 ="0" Cells(m + 11, n + 1).FormulaR1C1 ="8" Cells(m + 11, n + 21).FormulaR1C1 ="a) calculate the potential at point P(2,3,5) assuming all charges are positive" Cells(m + 3, n + 1).Interior.Color = "255" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = "" Call AddNewVector end if ' vector ends If m = m1 + 72 Then ' vector 1 Cells(m + 3, n + -1).FormulaR1C1 ="=R[-9]C+1" Cells(m + 3, n + 21).FormulaR1C1 ="b) calculate the potential at point P(0,1,6)" Cells(m + 4, n + -1).FormulaR1C1 ="1" Cells(m + 4, n + 0).FormulaR1C1 ="146" Cells(m + 5, n + -1).FormulaR1C1 ="1" Cells(m + 5, n + 0).FormulaR1C1 ="2" Cells(m + 5, n + 1).FormulaR1C1 ="=R22C7" Cells(m + 6, n + 21).FormulaR1C1 ="2. Calculate the potential of a point charge q=5 that is located at the origin of the coordinates" Cells(m + 7, n + -1).FormulaR1C1 ="=R[-17]C+1" Cells(m + 7, n + 0).FormulaR1C1 ="=R[-17]C+1" Cells(m + 7, n + 1).FormulaR1C1 ="=R[-17]C+1" Cells(m + 7, n + 21).FormulaR1C1 ="calculate the potential at point P(1,3,6)" Cells(m + 8, n + -1).FormulaR1C1 ="=R[-1]C+1" Cells(m + 8, n + 0).FormulaR1C1 ="=R[-1]C+1" Cells(m + 8, n + 1).FormulaR1C1 ="=R[-1]C+1" Cells(m + 8, n + 2).FormulaR1C1 ="=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 9, n + -1).FormulaR1C1 ="=1/(POWER(POWER(R11C1-R[-11]C,2)+POWER(R11C2-R[-11]C[1],2)+POWER(R11C3-R[-11]C[2],2),1/2))*R10C7*R[-15]C[2]" Cells(m + 9, n + 0).FormulaR1C1 ="=1/(POWER(POWER(R11C1-R[-11]C[-1],2)+POWER(R11C2-R[-11]C,2)+POWER(R11C3-R[-11]C[1],2),1/2))*R10C7*R[-15]C[1]" Cells(m + 9, n + 1).FormulaR1C1 ="=1/(POWER(POWER(R11C1-R[-11]C[-2],2)+POWER(R11C2-R[-11]C[-1],2)+POWER(R11C3-R[-11]C,2),1/2))*R10C7*R[-15]C" Cells(m + 9, n + 2).FormulaR1C1 ="=""V_""&R[-15]C[-3]/2" Cells(m + 9, n + 22).FormulaR1C1 ="Note: Press the -OBJ button to remove charges" Cells(m + 10, n + -1).FormulaR1C1 ="1" Cells(m + 10, n + 0).FormulaR1C1 ="0" Cells(m + 10, n + 1).FormulaR1C1 ="1" Cells(m + 10, n + 22).FormulaR1C1 ="Press the + OBJ button to add charges." Cells(m + 11, n + -1).FormulaR1C1 ="2" Cells(m + 11, n + 0).FormulaR1C1 ="0" Cells(m + 11, n + 1).FormulaR1C1 ="7" Cells(m + 3, n + 1).Interior.Color = "255" Cells(m + 3, n + 1).Font.Size = "11" Cells(m + 3, n + 1).Font.name = "Calibri" Cells(m + 4, n - 1).Value = 1 Cells(m1 + 1, n1 + 1).Value = "" Cells(m1 + 2, n1 - 1).Value = 9 end if ' vector ends If m = m1 + 72 Then Cells(m + 12, n + 21).FormulaR1C1 ="Example:" Cells(m + 13, n + 21).FormulaR1C1 ="Given four charges q1 = q2 = q3 = q4 = 3C located at the vertices of a square with side 8." Cells(m + 14, n + 22).FormulaR1C1 ="Find the resulting potential at a point," Cells(m + 15, n + 22).FormulaR1C1 ="a) in the center of the square," Cells(m + 16, n + 22).FormulaR1C1 ="b) at a height from the center of the square z=5," Cells(m + 17, n + 22).FormulaR1C1 ="c) on the y-axis at y=10." Cells(m + 19, n + 21).FormulaR1C1 ="Solution:" Cells(m + 20, n + 21).FormulaR1C1 ="Solution:" Cells(m + 22, n + 21).FormulaR1C1 ="a)" Cells(m + 22, n + 22).FormulaR1C1 ="Magnitude" Cells(m + 22, n + 24).FormulaR1C1 ="Position" Cells(m + 23, n + 21).FormulaR1C1 ="q1 = C15 =" Cells(m + 23, n + 22).FormulaR1C1 ="3" Cells(m + 23, n + 24).FormulaR1C1 ="(A19=0, B19=0, C19=0)" Cells(m + 24, n + 21).FormulaR1C1 ="q2 = C33 =" Cells(m + 24, n + 22).FormulaR1C1 ="3" Cells(m + 24, n + 24).FormulaR1C1 ="(A37=8, B37=0, C37=0)" Cells(m + 25, n + 21).FormulaR1C1 ="q3 = C51 =" Cells(m + 25, n + 22).FormulaR1C1 ="3" Cells(m + 25, n + 24).FormulaR1C1 ="(A55=8, B55=8, C55=0)" Cells(m + 26, n + 21).FormulaR1C1 ="q4 = C69 =" Cells(m + 26, n + 22).FormulaR1C1 ="3" Cells(m + 26, n + 24).FormulaR1C1 ="(A73=0, B73=8, C73=0)" Cells(m + 27, n + 21).FormulaR1C1 ="P (x, y, z) =" Cells(m + 27, n + 24).FormulaR1C1 ="(A11=4, B11=4, C11=0)" Cells(m + 28, n + 21).FormulaR1C1 =" k = G10 =" Cells(m + 28, n + 22).FormulaR1C1 ="8.9" Cells(m + 29, n + 21).FormulaR1C1 ="Press: XYZ " Cells(m + 31, n + 21).FormulaR1C1 ="RESULT:" Cells(m + 32, n + 21).FormulaR1C1 ="V = G14 =" Cells(m + 32, n + 22).FormulaR1C1 ="57.4" Cells(m + 34, n + 21).FormulaR1C1 ="b) " Cells(m + 35, n + 21).FormulaR1C1 ="P (x, y, z) =" Cells(m + 35, n + 24).FormulaR1C1 ="(A11=4, B11=4, C11=5)" Cells(m + 36, n + 21).FormulaR1C1 ="RESULT:" Cells(m + 37, n + 21).FormulaR1C1 ="V = G14 =" Cells(m + 37, n + 22).FormulaR1C1 ="57.4" Cells(m + 38, n + 21).FormulaR1C1 ="Ex = A12 =" Cells(m + 38, n + 22).FormulaR1C1 ="0" Cells(m + 39, n + 21).FormulaR1C1 ="Ey = B12 = " Cells(m + 39, n + 22).FormulaR1C1 ="0" Cells(m + 40, n + 21).FormulaR1C1 ="Ez = C12 = " Cells(m + 40, n + 22).FormulaR1C1 ="1.39" Cells(m + 41, n + 21).FormulaR1C1 ="Press XYZ or YZ" Cells(m + 43, n + 21).FormulaR1C1 ="c) " Cells(m + 44, n + 21).FormulaR1C1 ="P (x, y, z) =" Cells(m + 44, n + 24).FormulaR1C1 ="(A11=0, B11=10, C11=0)" Cells(m + 45, n + 21).FormulaR1C1 ="RESULT:" Cells(m + 46, n + 21).FormulaR1C1 ="|E| = G14 =" Cells(m + 46, n + 22).FormulaR1C1 ="8.07" Cells(m + 47, n + 21).FormulaR1C1 ="Ex = A12 =" Cells(m + 47, n + 22).FormulaR1C1 ="-0.5" Cells(m + 48, n + 21).FormulaR1C1 ="Ey = B12 = " Cells(m + 48, n + 22).FormulaR1C1 ="8.05" Cells(m + 49, n + 21).FormulaR1C1 ="Ez = C12 = " Cells(m + 49, n + 22).FormulaR1C1 ="0" Cells(m + 50, n + 21).FormulaR1C1 ="Press XY" Call BlackWhiteDesk Call PutEqBut end if ' actualizar hoja End Sub