So, i have a problem about selecting the exact cell of a formulated value. Im really new to VBA and i searched the internet for atleast 2 days for a valuable answer. Here let me show you the code im trying to put and explain what it does afterwards;
Dim r As Range
MinTime = WorksheetFunction.Min(Range("C5:L14"))
Set r = ActiveSheet.Cells.Find(MinTime)
r.Select
MinRow = ActiveCell.Row
MinCol = ActiveCell.Column
So what im trying to do is to find the minimum number in a range with worksheetfunction.min and select the cell which i 've just found. Then direct the row and column information to other 2 variable. But this code is not working always. Sometimes it works just fine sometimes it doesnt and i am clueless at the moment. Any kind of help would be appreciated. Thank you already.