Hello All, another thread about loops that I hope you guys can help me with. Ideally, I would like to troubleshoot this in order to understand what I’m missing and how to go about finding the steps to fixing the macro.
So, I’m exporting a certain file into Excel. Row 1 will always be the headers. I want “B2” to copy what is on “E2” and then find the next range. Here is the code I have so far.
Sub Macro14()
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=RC[3]"
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.End(xlDown).Select
Selection.End(xlDown).Select
ActiveCell.Offset(-1, 0).Range("A1").Select
End Sub
The problem is that on today’s sheet on “B69” there is nothing beneath it therefore Excel is bypassing that row and is stopping in the row prior to it reaching a “non-blank” cell. I want Excel to copy whatever is on “E2” into “B2” as
as long as “A1” is filled.
I know the macro I have is nowhere close to doing that yet. I’m trying to put it all together little by little with your help and the help of the macro recorder.
So, I’m exporting a certain file into Excel. Row 1 will always be the headers. I want “B2” to copy what is on “E2” and then find the next range. Here is the code I have so far.
Sub Macro14()
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=RC[3]"
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.End(xlDown).Select
Selection.End(xlDown).Select
ActiveCell.Offset(-1, 0).Range("A1").Select
End Sub
The problem is that on today’s sheet on “B69” there is nothing beneath it therefore Excel is bypassing that row and is stopping in the row prior to it reaching a “non-blank” cell. I want Excel to copy whatever is on “E2” into “B2” as
as long as “A1” is filled.
I know the macro I have is nowhere close to doing that yet. I’m trying to put it all together little by little with your help and the help of the macro recorder.