You can protect the sheet through code and then allow to draw a line through code. To do this, protect the sheet(s) by

Code:
Sheet1.Protect UserInterfaceOnly:=True, Password:="xyz"