Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi all,
I tried to record a macro to delete some column. Here is what I got but when I run the macro it didn't performe correctly: Sub Selection() Sheets("Negotiation Tool Report").Select Sheets("Negotiation Tool Report").Copy After:=Sheets(1) Sheets("Negotiation Tool Report (2)").Select Sheets("Negotiation Tool Report (2)").Name = "Selection" Columns("A:A").Select ActiveCell.Delete Shift:=xlToLeft Columns("M:Z").Select Selection.Delete Shift:=xlToLeft Sheets.Add After:=Sheets(Sheets.Count) When I run it keep come out as error on Selection.Delete. I've tried changing Selection to ActiveCell but the result is that it select the cell but didn't delete them. Can anyone help? Thanks. Kim |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy column header to next column, delete & delete every nth colum | New Users to Excel | |||
Macro to Delete first words in a column | Excel Discussion (Misc queries) | |||
macro to delete the last value in each column | Excel Worksheet Functions | |||
Delete a Column when in a Macro-Worksheet Event? | Excel Worksheet Functions | |||
set up a macro to delete characters in each cell of a column | Excel Discussion (Misc queries) |