LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default Coulmn Fields delete.

I have code were i am copy data from sheet1 to sheet2 with help of advance
filter. but after advance filter i want to delete some of the columns from
sheet2 (i.e. from report) But it's depend on the report want so is there any
way that what ever fields i have it will display on dialog box and i mark
that column fields which i want to delete from the report sheet and it will
delete that column from sheet.

Is this is possible any help thanks in advance.

Code is .....

Sub Reins()
Sheets("Sheet2").Select

Columns("a:az").Select
Selection.Delete

Sheets("Sheet2").Select
Sheets("Sheet1").Range("A4:AL26").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Sheets("Sheet1").Range("A1:AL2"),
CopyToRange:=Range("A1"), _
Unique:=False
End Sub

****al Shah
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I delete duplicate fields in Excell Hoosier56 Excel Discussion (Misc queries) 0 June 17th 08 07:00 PM
How do I put a delete button on excel that will clear the fields? Dave Excel Worksheet Functions 3 August 1st 07 11:34 PM
Dates in a coulmn?? edju Excel Discussion (Misc queries) 4 January 11th 07 02:04 AM
Delete All calculated fields nc Excel Discussion (Misc queries) 0 May 17th 06 03:21 PM
How to do two way lookup for more than 400 row & Coulmn? shital shah Excel Worksheet Functions 5 February 6th 05 11:22 AM


All times are GMT +1. The time now is 05:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright 2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"