Need to edge out the competition for your dream job? Train for certifications today.
Experts Exchange Solution brought to you by
"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.
Dim RowID As Integer, RowID1 As Integer, RowID2 As Integer, RowID3 As Integer, Val0 As String, Count0 As Integer, Item1 As String, Pos0 As Integer, Pos1 As Integer, Item2 As String
RowID = 2
RowID1 = 1
RowID2 = 1: RowID3 = 0
Count0 = 0
Do While True
Item1 = Trim(Worksheets("Cont0").Cells(RowID, 2).Value)
If Item1 = "" Then
Count0 = Count0 + 1
Count0 = 0
If Count0 = 5 Then
If Item1 <> "" Then
Set c1 = Worksheets("Cont1").Cells.Find(Item1)
If c1 Is Nothing Then
'Pos0 = InStr(Worksheets("Cont1").Cells(c1.Row, 10).Value, " ")
'Pos1 = Len(Trim(Worksheets("Cont1").Cells(c1.Row, 10).Value))
'Worksheets("Cont0").Cells(RowID, 11).Value = Trim(Mid(Worksheets("Cont1").Cells(c1.Row, 10).Value, Pos0 + 1, Pos1 - Pos0))
'Worksheets("Cont0").Cells(RowID, 11).Value = Replace(Worksheets("Cont1").Cells(c1.Row, 10).Value, Item1, "")
RowID3 = RowID3 + 1: Worksheets("Cont2").Cells(RowID3, 1).Value = Worksheets("Cont0").Cells(RowID, 1).Value
Worksheets("Cont2").Cells(RowID3, 2).Value = Worksheets("Cont0").Cells(RowID, 2).Value
RowID = RowID + 1
Open in new window
Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.
Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment