I am having problems with my code. I want to select a range in cells S2:BI in worksheet "DailyUpdateForm" and copy data, then go to worksheet "SupervisorUpdateData' and find the last row in column A, then move down 1-cell and paste special values only. Then go back to worksheet "DailyUpdateForm" and select cell C2 as active cell. I have been at this for hours. My code is below. The problem is that it works fine, but as soon as I click in the "SupervisorsUpdateData" sheet" the code next time that it runs it loses orientation because when it ran the first time the whole line would be selected and kept continuing down until I click another cell when exploring data. What am I doing wrong?? Any help would be greatly appreciated.
Sub UpdateSupervisorsData()
'
' UpdateSupervisorsData Macro
' Update Supervisors Data Table
'
' Keyboard Shortcut: Ctrl+u
'
Range("S2").Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Sheets("SupervisorUpdateData").Select
Sheets("SupervisorUpdateData").Name = "SupervisorUpdateData"
ActiveCell.Offset(-2, 0).Range("A1").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("DailyUpdateForm").Select
Range("C2:D2").Select
Application.CutCopyMode = False
End Sub
Sub UpdateSupervisorsData()
'
' UpdateSupervisorsData Macro
' Update Supervisors Data Table
'
' Keyboard Shortcut: Ctrl+u
'
Range("S2").Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Sheets("SupervisorUpdateData").Select
Sheets("SupervisorUpdateData").Name = "SupervisorUpdateData"
ActiveCell.Offset(-2, 0).Range("A1").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("DailyUpdateForm").Select
Range("C2:D2").Select
Application.CutCopyMode = False
End Sub