I am trying to delete the range of columns but getting error "Application Defined or object defined error". In the below code wks is the worksheet and colStart and colEnd are variables with values.
Dim colDelete As String
colDelete = wks.Range(wks.Cells(1, colStart), wks.Cells(1, colEnd)).EntireColumn.Delete

wksis a properly assigned worksheet object, andcolStartandcolEndare >0 whole numbers? Are you sure the worksheet is not protected? Can you post some more of your code?