Tompanilla
New Member
- Joined
- Nov 3, 2005
- Messages
- 47
In the end of a large macro I have this:
...
Dim i As Long
For i = 1 To Range("A65536").End(xlUp).Row
If IsError(Application.Find("Summa", Cells(i, 1), 1)) Then 'Cells(i,2).Font.Bold = False
Else
Cells(i, 1).Font.Bold = True 'Makes the selected cell in bold
Range(Cells(i, 7), Cells(i, 7)).Font.Bold = True
End If
Next i
End Sub
I would like the macro also to select all (i, 7) and then make a copy so I can paste them on another worksheet.
Have tryed to insert:
Cells(i, 7).Select
Cells(i, 7).Activate
I now that there is something missing as Cells(i, 7) needs to be added in a selection somehow before the activating or copy command.
Anyone that has the solution for me?

...
Dim i As Long
For i = 1 To Range("A65536").End(xlUp).Row
If IsError(Application.Find("Summa", Cells(i, 1), 1)) Then 'Cells(i,2).Font.Bold = False
Else
Cells(i, 1).Font.Bold = True 'Makes the selected cell in bold
Range(Cells(i, 7), Cells(i, 7)).Font.Bold = True
End If
Next i
End Sub
I would like the macro also to select all (i, 7) and then make a copy so I can paste them on another worksheet.
Have tryed to insert:
Cells(i, 7).Select
Cells(i, 7).Activate
I now that there is something missing as Cells(i, 7) needs to be added in a selection somehow before the activating or copy command.
Anyone that has the solution for me?