I have a workbook with 10+ sheets, and I need to delete the first column in every sheet.
Instead of manually doing this, I was wondering if anyone knew a short VBA macro that could do this for me?
Thanks!
You need to loop over all the worksheets:
Sub qwerty()
Dim ws As Worksheet
For Each ws In Sheets
ws.Cells(1, 1).EntireColumn.Delete
Next ws
End Sub
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.