Sub Project_35_ES(ByVal VecType, m, n, m1, n1 As Integer) ' 35_Potencial de cargas puntuales_ES ' 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 ="0.1" 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,3554688 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 ="Potencial el ctrico" Cells(m + 4, n + 12).FormulaR1C1 ="POTENCIAL DE UN CAMPO ELECTROSTçTICO" Cells(m + 4, n + 24).FormulaR1C1 ="INSTRUCCIONES" 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 ="Constante elŽctrica:" 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 ="La simulaci—n permite calcular y visualizar en tres dimensiones el potencial elŽctrico debido a" 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 ="<< --- Punto de observaci—n del potencial" Cells(m + 8, n + 21).FormulaR1C1 ="varias cargas que se encuentran distribuidas en el espacio. En el modelo se toman 4 cargas q1, q2, q3, q4," 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 ="Magnitud de el potencial" Cells(m + 9, n + 21).FormulaR1C1 ="aunque es posible a–adir o disminuir m‡s cargas q y calcular el potencial elŽctrico en cualquier" 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 ="punto del espacio. El procedimiento para a–adir m‡s cargas se describe al final." 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 ="=""<< -- Magnitud y color de q""&RC[-3]/2" Cells(m + 3, n + 21).FormulaR1C1 ="El potencial total se puede calcular aplicando el principio de superposici—n, como la suma escalar" Cells(m + 4, n + -1).FormulaR1C1 ="1" Cells(m + 4, n + 0).FormulaR1C1 ="9" Cells(m + 4, n + 4).FormulaR1C1 ="Nœmero de cargas:" Cells(m + 4, n + 21).FormulaR1C1 ="de los potenciales individuales generados por cada carga en el punto por cada carga" 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 ="en el punto en cuesti—n:" Cells(m + 6, n + 4).FormulaR1C1 ="(Para agregar m‡s cargas" 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 ="=""<< -- Posici—n de q""&R[-4]C[-3]/2" Cells(m + 7, n + 4).FormulaR1C1 =" presione +OBJ.)" Cells(m + 8, n + 2).FormulaR1C1 ="=IF(R[-4]C[-1]>1,"" <-- Variable coordinates"","""")" Cells(m + 8, n + 4).FormulaR1C1 ="Mostrar potenciales" Cells(m + 8, n + 27).FormulaR1C1 ="(Eq-34-1)" 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 =" de cada carga" 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 ="SI=0, NO=1" Cells(m + 10, n + 5).FormulaR1C1 ="1" Cells(m + 10, n + 21).FormulaR1C1 ="Donde ri es la distancia entre cada carga, qi y el punto de evaluaci—n y k es la constante de " 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 ="proporcionalidad que depende del sistema de unidades y se ingresa en la celda G10. Estas " 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 ="Vistas del campo (magn.):" Cells(m + 3, n + 21).FormulaR1C1 ="ecuaciones se encuentran respectivamente para cada carga y cada coordenada en las filas " Cells(m + 4, n + -1).FormulaR1C1 ="1" Cells(m + 4, n + 0).FormulaR1C1 ="146" Cells(m + 4, n + 4).FormulaR1C1 ="(0, 1 o 2 )" Cells(m + 4, n + 21).FormulaR1C1 ="30, 48, 66 y 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 =" No =" 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 ="(oprimir 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 ="En la siguiente tabla se muestran las celdas para configurar la posici—n, magnitud " 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 ="de las cargas y el punto donde se estudia el potencial elŽctrico." 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 ="CARGA" Cells(m + 11, n + 22).FormulaR1C1 ="MAGNITUD" Cells(m + 11, n + 23).FormulaR1C1 ="POSICIîN" Cells(m + 11, n + 24).FormulaR1C1 ="POSICIîN" Cells(m + 11, n + 25).FormulaR1C1 ="POSICIîN" 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 ="=""<< -- Magnitud y color de 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 ="=""<< -- Posici—n de 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 ="El color de la carga se modifica en la misma celda de la magnitud, la cual puede ser negativa o positiva." 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 ="El potencial total se muestra como un punto de color verde en el plano." 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 ="De acuerdo con la tabla anterior, modifique la magnitud, la posici—n y el signo de las cargas " 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 ="segœn su criterio y observe los resultados presionando el bot—n XYZ o cualquier bot—n " Cells(m + 6, n + 21).FormulaR1C1 ="de coordenadas. Identifique los puntos de simetr’a (x,y,z) en el espacio e ingrese sus " 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 ="coordenadas en A11, B11, C11." 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 + 21).FormulaR1C1 ="El modelo est‡ dise–ado para agregar m‡s cargas en el espacio. Para agregar una carga adicional," 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 ="haga lo siguiente:" 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 ="1. Presione el bot—n +OBJ." 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 ="=""<< -- Magnitud y color de q""&RC[-3]/2" Cells(m + 3, n + 21).FormulaR1C1 ="2. Ingrese A91 =3, B91=3, C91=6 para la posici—n de la nueva carga. Presione XYZ para ver el resultado." Cells(m + 4, n + -1).FormulaR1C1 ="1" Cells(m + 4, n + 0).FormulaR1C1 ="9" Cells(m + 4, n + 21).FormulaR1C1 ="Presione >>C para ver el resultado con claridad." 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 ="Para agregar m‡s cargas, el procedimiento es similar." Cells(m + 6, n + 21).FormulaR1C1 ="El valor total del Potencial se muestra en la celda 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 ="=""<< -- Posici—n de 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 ="Ejemplo:" 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 ="Dadas cuatro cargas q1= q2 = q3 = q4 =1x10^-8 ubicadas en diferentes puntos." 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 ="a) Hallar el Potencial elŽctrico resultante en el punto 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 ="Soluci—n:" 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 ="Magnitud" Cells(m + 4, n + 24).FormulaR1C1 ="Posici—n" 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 ="Oprima 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 ="=""<< -- Magnitud y color de q""&RC[-3]/2" Cells(m + 3, n + 21).FormulaR1C1 ="Observaci—n: introducimos un sistema de unidades en el que k=8,9E9." Cells(m + 4, n + -1).FormulaR1C1 ="1" Cells(m + 4, n + 0).FormulaR1C1 ="9" Cells(m + 4, n + 21).FormulaR1C1 ="RESULTADO: " 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 ="=""<< -- Posici—n de 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 ="Ejercicios:" 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. Calcule el potencial elŽctrico de cuatro cargas iguales, q=2E9. Est‡n ubicadas en los siguientes " 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 ="puntos: 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 + 22).FormulaR1C1 ="a) calcule el potencial en el punto P(2,3,5) suponiendo que todas las cargas son positivas" 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 + 22).FormulaR1C1 ="b) calcule el potencial en el punto 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. Calcule el potencial de una carga puntual q=5 que esta ubicada en el origen de coordenadas" 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 ="calcule el potencial en el punto 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 ="Nota: utilice el bot—n -OBJ para eliminar cargas." 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 ="utilice el bot—n +OBJ para agregar cargas." 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 + 13, n + 21).FormulaR1C1 ="Ejemplo:" Cells(m + 14, n + 21).FormulaR1C1 ="Dadas cuatro cargas q1= q2 = q3 = q4 = 3C ubicadas en los vŽrtices de un cuadrado de lado 8." Cells(m + 15, n + 22).FormulaR1C1 ="Hallar el potencial resultante en un punto," Cells(m + 16, n + 22).FormulaR1C1 ="a) en el centro del cuadrado," Cells(m + 17, n + 22).FormulaR1C1 ="b) a una altura del centro del cuadrado z=5," Cells(m + 18, n + 22).FormulaR1C1 ="c) sobre el eje y a y=10." Cells(m + 19, n + 21).FormulaR1C1 ="Soluci—n:" Cells(m + 20, n + 21).FormulaR1C1 ="a)" Cells(m + 20, n + 22).FormulaR1C1 ="Magnitud" Cells(m + 20, n + 24).FormulaR1C1 ="Posici—n" Cells(m + 21, n + 21).FormulaR1C1 ="q1 = C15 =" Cells(m + 21, n + 22).FormulaR1C1 ="3" Cells(m + 21, n + 24).FormulaR1C1 ="(A19=0, B19=0, C19=0)" Cells(m + 22, n + 21).FormulaR1C1 ="q2 = C33 =" Cells(m + 22, n + 22).FormulaR1C1 ="3" Cells(m + 22, n + 24).FormulaR1C1 ="(A37=8, B37=0, C37=0)" Cells(m + 23, n + 21).FormulaR1C1 ="q3 = C51 =" Cells(m + 23, n + 22).FormulaR1C1 ="3" Cells(m + 23, n + 24).FormulaR1C1 ="(A55=8, B55=8, C55=0)" Cells(m + 24, n + 21).FormulaR1C1 ="q4 = C69 =" Cells(m + 24, n + 22).FormulaR1C1 ="3" Cells(m + 24, n + 24).FormulaR1C1 ="(A73=0, B73=8, C73=0)" Cells(m + 25, n + 21).FormulaR1C1 ="P (x, y, z) =" Cells(m + 25, n + 24).FormulaR1C1 ="(A11=4, B11=4, C11=0)" Cells(m + 26, n + 21).FormulaR1C1 =" k = G10 =" Cells(m + 26, n + 22).FormulaR1C1 ="8.9" Cells(m + 27, n + 21).FormulaR1C1 ="Oprima XYZ " Cells(m + 28, n + 21).FormulaR1C1 ="Observaci—n: introducimos un sistema de unidades en el que k=8,9." Cells(m + 29, n + 21).FormulaR1C1 ="RESULTADO: " Cells(m + 30, n + 21).FormulaR1C1 ="V = G14 =" Cells(m + 30, n + 22).FormulaR1C1 ="57.4" Cells(m + 32, n + 21).FormulaR1C1 ="b) " Cells(m + 33, n + 21).FormulaR1C1 ="P (x, y, z) =" Cells(m + 33, n + 24).FormulaR1C1 ="(A11=4, B11=4, C11=5)" Cells(m + 34, n + 21).FormulaR1C1 ="RESULTADO: " Cells(m + 35, n + 21).FormulaR1C1 ="V = G14 =" Cells(m + 35, n + 22).FormulaR1C1 ="57.4" Cells(m + 36, n + 21).FormulaR1C1 ="Ex = A12 =" Cells(m + 36, n + 22).FormulaR1C1 ="0" Cells(m + 37, n + 21).FormulaR1C1 ="Ey = B12 = " Cells(m + 37, n + 22).FormulaR1C1 ="0" Cells(m + 38, n + 21).FormulaR1C1 ="Ez = C12 = " Cells(m + 38, n + 22).FormulaR1C1 ="1.39" Cells(m + 39, n + 21).FormulaR1C1 ="Oprima XYZ o YZ" Cells(m + 41, n + 21).FormulaR1C1 ="c) " Cells(m + 42, n + 21).FormulaR1C1 ="P (x, y, z) =" Cells(m + 42, n + 24).FormulaR1C1 ="(A11=0, B11=10, C11=0)" Cells(m + 43, n + 21).FormulaR1C1 ="RESULTADO: " Cells(m + 44, n + 21).FormulaR1C1 ="|E| = G14 =" Cells(m + 44, n + 22).FormulaR1C1 ="8.07" Cells(m + 45, n + 21).FormulaR1C1 ="Ex = A12 =" Cells(m + 45, n + 22).FormulaR1C1 ="-0.5" Cells(m + 46, n + 21).FormulaR1C1 ="Ey = B12 = " Cells(m + 46, n + 22).FormulaR1C1 ="8.05" Cells(m + 47, n + 21).FormulaR1C1 ="Ez = C12 = " Cells(m + 47, n + 22).FormulaR1C1 ="0" Cells(m + 48, n + 21).FormulaR1C1 ="Oprima XY" Call BlackWhiteDesk Call PutEqBut end if ' actualizar hoja End Sub