this is my first post on this site so I hope I post it properly
I have posted this on MrExcel and recieved a macro but not working properly and no further help
I have an employee calendar and when I enter a name I would like the name to appear on another sheet in column A. I have attached a calendar for july and the macro I was sent
Sub LinkText()
Dim Dd As Date, Sname As String
Dim Lrow As Long, I As Long, Rcol As Byte, K As Byte, J As Long
J = 1
Rcol = Range("IV1").End(xlToLeft).Column
For K = 1 To Rcol
Lrow = Cells(65536, K).End(xlUp).Row
Dd = Cells(1, K)
For I = 2 To Lrow
If Len(Cells(I, K)) > 0 Then
Sname = Cells(I, K) & "-----" & CStr(Dd)
Sheet2.Range("A" & J) = Sname
J = J + 1
End If
Next I
Next K
End Sub
Bookmarks