I am very new to VBA (first time using it today) and I am trying to write a program.
I have a data set and in column C, I want it to look for a certain letter (b) and when it finds that letter, copy the row above it, paste it into the row that the letter was found in, then change that cell in column C back to the original letter (b).
What I've gotten so far looking at various tutorials, but I can't find anything that will copy an entire row above and paste it.
Sub TestProgram()
Dim det As String, Result As String
det = Range(C1, C214511).Value
If det = b Then
Replace(
I wasn't sure what to use the replace function for since I couldn't figure out how to make it replace a full row with the row above it. Maybe I need a different function?
Or maybe I'm just completely lost!
Thanks!