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: 1
Default Autofilter and choosing filtered columns

Hi,

Have Sheet1 and have written code to filter data, but slightly stuck o
the copying thereof. I only want to copy to Sheet2 selected columns o
filtered data (10 of over 30 cols).

The code I am using is not brilliant, should do the job, but fails fo
reason I cannot quite fathom.

Worksheets("Sheet1").Activate
Range("A1").Activate
ActiveCell.Offset(1, iIssuerPos - 1).Activate
ActiveCell.Range(Selection
Selection.End(xlDown)).SpecialCells(xlCellTypeVisi ble).Select
Selection.Copy
WorkSheets("Sheet2").Activate
ActiveSheet.Paste

iIssuerPos is the col no. of the data I want to copy (4 in this case).
The second line take me to the correct column
The next line chooses the filtered data from the column 3 to the right
This error is always the column number -1 (in this case 4-1=3).

Thanks in advanc

--
Message posted from http://www.ExcelForum.com

 
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
Counting Filtered Results Using Autofilter jj Excel Worksheet Functions 2 April 2nd 10 12:18 AM
Autofilter and count on filtered data gr8posts Excel Worksheet Functions 7 October 19th 07 09:17 PM
How do i view only the filtered results from autofilter ? Simon Excel Discussion (Misc queries) 3 August 16th 06 03:05 PM
User Choosing Which Columns to View Colin Vicary Excel Discussion (Misc queries) 3 June 29th 06 05:57 PM
Way to display filtered results from more than one autofilter per GS Excel Worksheet Functions 1 May 5th 06 12:01 AM


All times are GMT +1. The time now is 03:44 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"