Hi Everyone,
So, for some reason my code isn't working properly. I want it to skip over the blank cells when copying over the data from one worksheet to the other, but it's not doing it. Any suggestions? Thanks!
Dim x As Range, Allele As Range
Dim NextCell
Set x = Worksheets("Class II").Rows(1).Find(cmbLotII)
Set NextCell = Worksheets("Sheet1").Cells([3], [2])
If Not x Is Nothing Then Set Allele = x.Offset(1).Resize(99)
For Each d In Allele
If Not d = "" Then
NextCell.Value = (d.Value)
End If
NextCell.Select
Set NextCell = ActiveCell.Offset(0, 1)
Next d
So, for some reason my code isn't working properly. I want it to skip over the blank cells when copying over the data from one worksheet to the other, but it's not doing it. Any suggestions? Thanks!
Dim x As Range, Allele As Range
Dim NextCell
Set x = Worksheets("Class II").Rows(1).Find(cmbLotII)
Set NextCell = Worksheets("Sheet1").Cells([3], [2])
If Not x Is Nothing Then Set Allele = x.Offset(1).Resize(99)
For Each d In Allele
If Not d = "" Then
NextCell.Value = (d.Value)
End If
NextCell.Select
Set NextCell = ActiveCell.Offset(0, 1)
Next d