Hi there,
Sorry for the massive title!
I am using a helper column that works well, but I want it to smarten my find code up to avoid finding the first empty cell in row 1 as often the columns with an empty header still contain data but someone has often been messy when designing a spreadsheet and left a header blank. So I want the find code to avoid blank cells if there is non-blank cells to the right of it. Does anyone know how I would re-wire my code to achieve this?
So in my terrible example below I want my find code to avoid Column C as there is data to the right of the cell
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD] Sunny[/TD]
[TD]Rainy[/TD]
[TD][/TD]
[TD]Cloudy[/TD]
[TD]Stormy[/TD]
[TD]This is the cell
i want to reference[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]5 days[/TD]
[TD]1 day[/TD]
[TD]days present[/TD]
[TD]3 days[/TD]
[TD]0 days[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Cheers,
Milos
Sorry for the massive title!
I am using a helper column that works well, but I want it to smarten my find code up to avoid finding the first empty cell in row 1 as often the columns with an empty header still contain data but someone has often been messy when designing a spreadsheet and left a header blank. So I want the find code to avoid blank cells if there is non-blank cells to the right of it. Does anyone know how I would re-wire my code to achieve this?
Code:
Set helper_column = range("1:1").Find("", , , xlWhole, , , False, , False)
So in my terrible example below I want my find code to avoid Column C as there is data to the right of the cell
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD] Sunny[/TD]
[TD]Rainy[/TD]
[TD][/TD]
[TD]Cloudy[/TD]
[TD]Stormy[/TD]
[TD]This is the cell
i want to reference[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]5 days[/TD]
[TD]1 day[/TD]
[TD]days present[/TD]
[TD]3 days[/TD]
[TD]0 days[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Cheers,
Milos