0

I am trying to get the next non blank cell of a column.

I would like to find a way to do it with something already existing (without a custom loop).

For example, I searched around the Find function :

item = Worksheets(ws).Columns(1).Find(what:= something , after:= previousitem)

But here I would need a what:= parameters, which mean non blank

Foxhunt
  • 764
  • 1
  • 9
  • 23

2 Answers2

1

This can be done, using following key combination:

Ctrl + Arrow-Down

Record this in a macro and Excel will generate the correct VBA code for it.

Dominique
  • 16,450
  • 15
  • 56
  • 112
1

So this works :

item = Worksheets(ws).Columns(1).Find(what:= "*" , after:= previousitem)
Foxhunt
  • 764
  • 1
  • 9
  • 23