Sub CreateTable()
Dim wsTest As Worksheet
'''Sheet Name
SheetName = "Table"
Set wsTest = Nothing
On Error Resume Next
Set wsTest = ActiveWorkbook.Worksheets(SheetName)
On Error GoTo 0
If wsTest Is Nothing Then
Worksheets.Add.Name = SheetName '''If sheet is not exist
End If
Sheets(SheetName).Select
'''Columns Names
Range("A1").Value = "x"
Range("B1").Value = "y=x^-2"
Range("C1").Value = "y=x^-1"
Range("D1").Value = "y=x^0"
Range("E1").Value = "y=x^1"
Range("F1").Value = "y=x^2"
Range("G1").Value = "y=x^3"
x = 0
Row = 2
Do While x <= 10
If x = 0 Then
x = x + 0.1
End If
'''Formulas
Cells(Row, 1).Value = x
Cells(Row, 2).Value = x ^ -2
Cells(Row, 3).Value = x ^ -1
Cells(Row, 4).Value = x ^ 0
Cells(Row, 5).Value = x ^ 1
Cells(Row, 6).Value = x ^ 2
Cells(Row, 7).Value = x ^ 3
Row = Row + 1
x = x + 0.1
Loop
'''Draw Borders
Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
'''Heading in Bold
Range("A1:G1").Select
Selection.Font.Bold = True
ActiveWorkbook.Save
MsgBox ("Done")
End Sub
Use VBA to create a table of in Excel for 0 < x lessthanorequalto 10 incrementing...
Create a sub in excel vba called "RandomColors" that assigns colors in a random way to each cell of the range d4:h8. (hint:set the colorindex property of each cell in the range to a random integer between 1 and 10)
Psi(x) = {Ax(a-x), for 0 lessthanorequalto X lessthanorequalto A otherwise Psi(x) to compute value of A Calculate the expectation value of the energy association with this state. Recall that <E>= integral^infinity_-infinity Psi*h Psi dx HERE h = -H^2/2M D^2/DX^2 + v
I need this problem to be solved in Excel VBA code. Need full code in VBA. Please solve 1st Task : '5 or 0'. Please help me urgently with proper answer and coding solutions which I can run in Excel/vba. Thanks Course: Programming languages Second laboratory work File and string processing Create a program that processes text file according to task variant. Requirements: 1. Create text file (use notepad) with some lines of data according to task variant. 2. Ask...
Construct a MATLAB/EXCEL program that will perform a "grid search" on the region from 0< x<10 and 0y 10. Use this grid search to find the (x,y) that minimizes the following function: 28y3 97x2295y2 264x 1386y 577 f(x, y) x4y - 16x3.
ASAP. I need VBA code, for Excel please 5. Create text file with notepad. Each line contains only one word. Open it and, if the word begins with capital letter, output it to column A, otherwise in column B.
sin 4x f fx)complete the following table and use the results to predict lim f(x), if it exists. x→0 - 0.01 0.1 0.1 0.001 0.01 - 0.001 fx) Complete the following table. 0.001 0.001 0.01 0.1 - 0.01 f(x) (Type an integer or decimal rounded to seven decimal places as needed.) Select the correct choice below and, if necessary, fill in the answer box to complete your choice. A. lim f(x)= | x→0 | (Round to the nearest integer as...
Use a MATLAB built-in solver to numerically solve: dy/dx = -yx^2 + 1.5y for 0 lessthanorequalto x lessthanorequalto 3 with y(0) = 2 Make a plot of the numerical solution as a solid red line and the exact solution as green circles as shown. The exact solution is y = 2e^-(2x63 - 9x)/6 Use a MATLAB built-in function to numerically calculate the area of the solution. Use the text command to plot the area with 2-digits of precision as shown.
the macro must be done through VBA (visual basic aid) on excel. thank you 1 Create a macro to extract all of the data from the year 2015 and copy it into a separate block. 2 create a table that displays the minimum concentration for each month in the copyed data. 3 Add a button to run the macro. 5 Date Concentration (mcg/I) 6 2/21/2015 79/2/2015 8 1/17/2015 9 4/30/2015 01/1/2016 11 10/31/2015 12 8/26/2016 13 12/6/2016 14 5/19/2015 15...
can someone please help me out with this? i have to write this in vba excel. Question 2: (40 Pointsy) The total cnerey, E. ofa movins hint i comual to energy, E, of a moving object is equal to the sum of its kinetic and potential energieS: where m is the mass (in kg) v is the velocity (in m/s) h is the height of the object (in m) g is the acceleration due to gravity (9.81 m/s') 5 m/s...
Consider fx (x)=e*, 0<x and joint probability density function fx (x, y) = e) for 0<x<y. Determine the following: (a) Conditional probability distribution of Y given X =1. (b) ECY X = 1) = (c) P(Y <2 X = 1) = (d) Conditional probability distribution of X given Y = 4.