|
-
Jun 9th, 2010, 10:51 AM
#1
Thread Starter
Junior Member
Filtering and then copying
I am having problems with my VB language. I have a data set which I then filter to get the data elements I need. I am having a problem with offsetting (scrolling down) from the column labels to the first row of applicable data.
So Cell "A4" is the start of the column headings. When I filter the data, the first row of data showing is in row 41.
What language do I use to go scroll down from A4 to A41? so I can then select the data elements I need.
Thanks
-
Jun 9th, 2010, 01:41 PM
#2
-
Jun 15th, 2010, 07:01 AM
#3
Re: Filtering and then copying
After using AutoFilter, try this:
Code:
Sheet1.AutoFilter.Range.Offset(1, 0).SpecialCells(xlCellTypeVisible)(1).Select
Debug.Print ActiveCell.Row
-
Jun 15th, 2010, 08:18 AM
#4
Addicted Member
Re: Filtering and then copying
Hi Jeff,
If your filtering code happens to be scrolling some of the results out of view, then this command should scroll them back into view.
Code:
ActiveWindow.ScrollRow = 5
Last edited by SQLADOman; Jun 15th, 2010 at 08:22 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|