I have recently taken an interest in VBA, Despite searching through various forums I am unable to figure out how to do what I need.
I want to loop through column A (which is a list of names), if the first letter begins with 'a' I want to copy into column c,
This is what I have so far:
Sub copy data()
' 1. Get the worksheet
Dim shNames As Worksheet
Set shNames = ThisWorkbook.Worksheets("Names")
' 2. Get Range
Dim r As Range
Set r = shNames.Range("A1:A100")
' 3. Clear existing formats
r.ClearFormats
Dim rCell As Range
For Each rCell In r
' Check if the first letter of name is A
For i = 1 To 100
If Left(rCell.Value, 1) = "A" Then ????????????
End If
Next rCell
I want to loop through column A (which is a list of names), if the first letter begins with 'a' I want to copy into column c,
This is what I have so far:
Sub copy data()
' 1. Get the worksheet
Dim shNames As Worksheet
Set shNames = ThisWorkbook.Worksheets("Names")
' 2. Get Range
Dim r As Range
Set r = shNames.Range("A1:A100")
' 3. Clear existing formats
r.ClearFormats
Dim rCell As Range
For Each rCell In r
' Check if the first letter of name is A
For i = 1 To 100
If Left(rCell.Value, 1) = "A" Then ????????????
End If
Next rCell