Hi folks,
I'm wondering if anyone can help me figure out why this part of my code is not working...
It is inside a bigger bit of code, but this is the bit that I have been working on.
What I want it to do is
...
I'm wondering if anyone can help me figure out why this part of my code is not working...
It is inside a bigger bit of code, but this is the bit that I have been working on.
What I want it to do is
- to copy the variable values assigned (from sheet 4) above
- to a different sheet (sheet 1) and append below any copied earlier.
- below I was testing a direct copy of cell B2, but I would prefer to use the variables n through s
...
VBA Code:
Dim n As Double
Dim m As Double
Dim o As Double
Dim p As Double
Dim q As String
Dim r As Double
Dim s As Double
Dim addRow As Long
n = Sheet4.Range("H196").Value
m = Sheet4.Range("M194").Value
o = Sheet4.Range("L55").Value
p = Sheet4.Range("T60").Value
q = Sheet4.Range("B2").Value
r = Sheet4.Range("C18").Value
s = Sheet4.Range("L16").Value
' MsgBox "Values " & n & " " & m & " " & o & " " & p & " " & q & " " & r & " " & s
If n > 0.25 And m > -0.15 And o > 8 And p < 96 Then
addRow = Sheet1.Cells(Rows.Count, "B").End(xlUp).row
Sheet4.Range("B2").Copy Sheet1.Range("B3" & addRow + 1)
Call CreatePowerPoint
End If
Last edited by a moderator: