excel - Deleting multiple columns returns an error -
i'm trying delete multiple columns using code below:
dim filesheet worksheet set filesheet = wb.activesheet filesheet.range("d:f, j:m, p:r, t:v, z:ae,ag").entirecolumn.delete when i'm on line of deleting columns, returns, method 'range' of object'_worksheet' failed error. don't want delete column-by-column takes time executing code. knows part of have wrong command?
does corrects error ?sorry phone cannot test or reproduce right now.
filesheet.range("d:f, j:m, p:r, t:v, z:ae,ag:ag").entirecolumn.delete
Comments
Post a Comment