Hi, guys! I want to create a two variable function that will check a column and iterate in its rows to find a blank cell, but I can't find a way to return the row and column value to my sub. Any help will do, Thanks!
Sample code:
--------------------------------------------------------------------------------------------
Public Sub Testing()
x = 2
y = 5
Blank_finder (x, y)
End Sub
---------------------------------------------------------------------------------------------
Public Function Blank_finder(ByVal x As Integer, ByVal y As Integer) As Integer
Do While Cells(x, y).Value <> ""
x = x + 1
Loop
--------------------------------------------------------------------------------------------
Sample code:
--------------------------------------------------------------------------------------------
Public Sub Testing()
x = 2
y = 5
Blank_finder (x, y)
End Sub
---------------------------------------------------------------------------------------------
Public Function Blank_finder(ByVal x As Integer, ByVal y As Integer) As Integer
Do While Cells(x, y).Value <> ""
x = x + 1
Loop
--------------------------------------------------------------------------------------------