String in Rows
String in Rows
August 2020
Sub Expandiso()
cnd = "EXPANDIDO"
cnd1 = "Expandido"
rngFound = "BACHAQ"
pc = 0
ct = 0
cam = "Campo"
Match5.Offset(0, 0).Select
'The onset of the autofilter looking for rows with cells containing the word "EXPANDIDO"
With Worksheets("Hoja1").Cells
Match1.Offset(0, 0).Select
Range(Selection, Selection.End(xlDown)).Select
Set he = Selection
ch = he.Rows.Count
For v = 1 To ch
'MsgBox dnc
pc = pc + Match1.Offset(v, 6).Value
ct = ct + 1
Case Is = "CARDON"
Case Else
'Do nothing
End Select
Case Else
'do nothing
End Select
Next v
End Sub
Bibliography
Jelen, B., Syrstad, T. 2016. Excel 2016 VBA and Macros. Pearson Education.
Alexander, M. & Walkenbach, J. 2018. Excel VBA Programming For Dummies. Wiley