Mr_Ragweed2
Board Regular
- Joined
- Nov 11, 2022
- Messages
- 145
- Office Version
- 365
- Platform
- Windows
Hello and thanks.
I have four cells on a Sheet1 ("T39", "T47", "T57", "N61:N62") that i would like to copy and paste to the next available row on Sheet2 in range ("N:Q").
It is not working however. (earlier in code "ThisFinal" is written as a FinalRow Statement that works in other parts of the code.)
Thought 1: I'm a vba novice and the fix is easy.
Thought 2: The ElseIf statement is causing problems. I have an IF statement before that executes code based on any cell in column C, rows 19-31 that have content Then do x. It runs fine. What i'm trying to accomplish with my elseif statement is that once the first loop finds a blank in column C, then it copies the four cells i referenced in the beginning.
Thought 3: Thoughts 1 & 2 can be true at the same time
Thanks for your interest and time.
I have four cells on a Sheet1 ("T39", "T47", "T57", "N61:N62") that i would like to copy and paste to the next available row on Sheet2 in range ("N:Q").
VBA Code:
ElseIf Cells(i, 3).Value = "" Then
Sheets("Sheet 1").Range("T39", "T47", "T57", "N61:N62").Copy
Sheets("Sheet 2").Cells(ThisFinal + 1, 14).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
End If
It is not working however. (earlier in code "ThisFinal" is written as a FinalRow Statement that works in other parts of the code.)
Thought 1: I'm a vba novice and the fix is easy.
Thought 2: The ElseIf statement is causing problems. I have an IF statement before that executes code based on any cell in column C, rows 19-31 that have content Then do x. It runs fine. What i'm trying to accomplish with my elseif statement is that once the first loop finds a blank in column C, then it copies the four cells i referenced in the beginning.
Thought 3: Thoughts 1 & 2 can be true at the same time
Thanks for your interest and time.