Please help!
I am trying to enter the worksheet function CountA in a whole column to count how many blank cells exist in each of the rows. I have a for each loop which will work down the column but I can't figure out how to get the formula (or result) into each of the cells. I have nicked bits of code from all over the internet to try this so its quite possible that I am miles away from where I should be now
For MyRow = 1 To Range("a655360").End(xlUp).Row
MyRange = Range(Cells(ActiveCell.Row, 1), Cells(ActiveCell.Row, 22))
ActiveCell.Value = WorksheetFunction.CountA(Range(MyRange))
ActiveCell.Offset(1, 0).Select
Next MyRow
Please forgive my ignorance with this! And thanks in advance for any help!
I am trying to enter the worksheet function CountA in a whole column to count how many blank cells exist in each of the rows. I have a for each loop which will work down the column but I can't figure out how to get the formula (or result) into each of the cells. I have nicked bits of code from all over the internet to try this so its quite possible that I am miles away from where I should be now
For MyRow = 1 To Range("a655360").End(xlUp).Row
MyRange = Range(Cells(ActiveCell.Row, 1), Cells(ActiveCell.Row, 22))
ActiveCell.Value = WorksheetFunction.CountA(Range(MyRange))
ActiveCell.Offset(1, 0).Select
Next MyRow
Please forgive my ignorance with this! And thanks in advance for any help!