Thread
:
Deleting columns on multiple sheets
View Single Post
#
5
Posted to microsoft.public.excel.programming
Don Guillett
external usenet poster
Posts: 10,124
Deleting columns on multiple sheets
One way
Sub deletecolainallshts()
For i = 1 To Sheets.Count
Sheets(i).Columns("a").Delete
Next i
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"KHogwood-Thompson" wrote in
message ...
Hi,
I have a macro that attempts to delete column A on all sheets in the
workbook. What it currently does s delete all columns on the first sheet
(activesheet) only.
For Each ws In ActiveWorkbook.Worksheets
Columns("A:A").Select
Selection.Delete Shift:=xlToLeft
Next
Can anyone help to modify the code??
--
K Hogwood-Thompson
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett