Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-24-2015, 08:31 PM
Sandhya Sandhya is offline Extract the filter data Windows 7 32bit Extract the filter data Office 2007
Novice
Extract the filter data
 
Join Date: Nov 2014
Posts: 21
Sandhya is on a distinguished road
Arrow Extract the filter data


Hi,

I am using below code to extract the filter data, but it is giving probolem.
can any one help me to resolve the same.
Code:
Private Sub CommandButton1_Click()
Sheet1.Activate
Sheet1.Range("A1,G1").Select
Selection.Copy
Sheets("Sheet4").Select
Range("A1:B1").PasteSpecial
Columns("A:A").EntireColumn.AutoFit
Columns("B:B").EntireColumn.AutoFit
Range("C4").Select
Sheets("Sheet1").Select
Application.CutCopyMode = False
Sheet1.Range("A3").Select
Sheets("Sheet4").Select
Sheets("Sheet1").Range("A1:G9").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Sheets("Sheet1").Range("I1:I2"), CopyToRange:=Sheets("Sheet4").Range("A1:B1"), Unique:=False
End Sub
Attached Files
File Type: xlsx Book1.xlsx (16.3 KB, 10 views)

Last edited by macropod; 10-25-2015 at 06:19 PM. Reason: Added code tags
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Vba to Filter data saurabhlotankar Excel Programming 5 05-29-2015 06:07 AM
Extract the filter data Extract Excel Data from Chart in Word cillianmccolgan Word 1 08-15-2014 01:42 AM
Extract the filter data Extract data from web - Take a long time edneco Excel Programming 11 06-28-2014 05:54 PM
Extract the filter data How to Extract key data from word iliauk Word 3 11-08-2013 04:37 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:36 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft