Working on PC using excel 2016.
I have a userform macro that once filled out takes to user to the applicable worksheet and selects the applicable row. What I can't seem to get fixed is autoscrolling that work sheet to the active row. The active row location is always unknown (could be the first row or the last).
My code is:
I get a 'type mismatch' error.
When I hover in the debugger, ComboxBox3 value is correct but when I hover over the scrollrow it is incorrect even the the correct row is selected (highlighted as active).
Thanks in advance!
I have a userform macro that once filled out takes to user to the applicable worksheet and selects the applicable row. What I can't seem to get fixed is autoscrolling that work sheet to the active row. The active row location is always unknown (could be the first row or the last).
My code is:
Code:
ActiveSheet.Range("C:C").Find(Sheets("shhet2").Range("D1"), Lookin:=xlValues, LookAt:=xlWhole, Ma
tchCase:=True).EntireRow.Select
'the above works just fine
"the below doesn't
Activewindow.Scrollrow = ComboBox3.value
I get a 'type mismatch' error.
When I hover in the debugger, ComboxBox3 value is correct but when I hover over the scrollrow it is incorrect even the the correct row is selected (highlighted as active).
Thanks in advance!