Thread
:
Deleting columns on multiple sheets
View Single Post
#
2
Posted to microsoft.public.excel.programming
Ardus Petus
external usenet poster
Posts: 718
Deleting columns on multiple sheets
Try this:
Dim ws as Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Columns("A").Delete Shift:=xlToLeft
Next
HTH
--
AP
"KHogwood-Thompson" a écrit
dans le message de news:
...
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
Ardus Petus
View Public Profile
Find all posts by Ardus Petus