• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Vba

kramer

Fingers like lightning
Joined
Mar 30, 2006
Messages
985
Likes received
4
Thanks received
4
Excel + VBA + Headache + Rain + sub of the day = a total pain in the A$$!

How do i find a row number given a maximum top value?
 
what was today's sub of the day? I'm sick of sweet chilli chicken.
 
kramer said:
Excel + VBA + Headache + Rain + sub of the day = a total pain in the A$$!

How do i find a row number given a maximum top value?

Use HLOOKUP?
 
kramer said:
Excel + VBA + Headache + Rain + sub of the day = a total pain in the A$$!

How do i find a row number given a maximum top value?
counter = [start row number]
While cells(counter, 1).value < topvalue
counter = counter + 1
Wend

msgbox counter
 
This in-built function should do it:

docmd.FindRowNumberGivenMaximumTopValue.bothered
 
kramer said:
todays sub of the day is


Italian BMT

My word... I love those. Now all I need to do is casually find out what Mrs Zorba has planned for tea and see if it's worth getting one of these instead... mmmm.
 

Advertisers

Back
Top