Private Sub replace_value_Click() Dim i As Long Dim LastRow As Long Dim Found As Boolean If Len(Trim(search.Text)) = 0 Then Exit Sub For i = 1 To MSHFlexGrid1.Rows - 1 If search.Text = Mid(MSHFlexGrid1.TextMatrix(i, 2), 1, Len(Trim(search.Text))) Then LastRow = i Found = True If Found = True Then MSHFlexGrid1.TextMatrix(i, 2) = replace.Text Exit Sub Else End If End If Next End Sub
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
An Experts Exchange subscription includes unlimited access to online courses.Get Started
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE