I have been using the following code to open a workbook to a specific sheet and going to the next available row for data entry. It had been working fine. Then in the course of testing, It stopped working and I would get a "ws = nothing" error...
This is probably simple but it is bugging me... I'm still learning but apparently not enough.
Code:
Private Sub Workbook_Open()
Dim ws As Worksheet
'Set ws = ActiveSheet
Set ws = ActiveWorkbook.Sheets("Contents")
ws.Cells(ws.Rows.Count, 1).End(xlUp).Offset(1, 0).Select
End Sub
This is probably simple but it is bugging me... I'm still learning but apparently not enough.