Code:
Private Sub UpdateData()
'Initialise variables
strDataAddress = wbNB.Worksheets("Calculations").Range("rDataAddress").Value
'Open data file
Workbooks.Open (strDataAddress)
Set wbData = ActiveWorkbook
Set wsData = wbData.ActiveSheet
'Delete unrequired rows
wsData.Rows("1:5").Delete
End Sub
Hi
My above code keeps coming up with the error 'Expected End Sub' but i've no idea why. The routine is called from a public routine that is assigned to a button. Can anybody help as it's driving me mental.
Thank you