VB Code:
Sub DecideUserInput()
Dim bText As String
Dim bsheet As String
Dim rng As Range
Dim rng2 As Range
Dim i As Integer
Dim y As Integer
Dim r As Long
Dim c, d As Integer
Dim c1 As Integer
Dim c2 As Integer
Dim a As Integer
Dim b As Integer
' here is the INPUTBOX-function :
bText = InputBox("Insert in a text", "This accepts any input")
' here is the INPUTBOX-method :
ActiveCell.FormulaR1C1 = bText
Set rng = Sheet1.UsedRange
'Set rng2 = Sheet1.UsedRange.Rows
'a = Selection.Column.Value ' i tried to extract the location of the active cell so that i can get row and column number
'b = Selection.row.Value
Worksheets("sheet2").Select
Range("b1").Select
' initial state
c = 4 'colloum
i = 1 'row
d = a + 1
c1 = c + 1
c2 = c
Do
For i = 1 To 60
If Sheet2.Cells(i, c).Value = bText Then
Do
For y = c1 To 8
Sheet2.Cells(i, y).Copy
Sheet1.Select
Sheet1.Cells(b, d).Paste
Next y
Loop Until y = 8
Sheet2.Select
Sheet2.Cells(i, c2).Copy
Sheet1.Select
Sheet1.Cells(1, 3).Select
activeselection.Paste
End If
Next i
Loop Until i = 60
End Sub