Select visible column data after AutoFilter

pkew22

New Member
Joined
Aug 30, 2013
Messages
38
I am using Excel 2010.

How does one select the data in a column after it has been filtered with the help of AutoFilter? I would like to select the visible cells in Column F because the records that are filtered have to be in Blue Font and Bold.

I have 30 odd columns and 412 rows of data and I have filtered Column F by recording a macro.

After the filter is applied, the first visible row is 17. This changes depending on what is filtered.

How can I select F17 to the last cell with the help of VBA? (What I would really like to do is select the first visible cell to the last visible cell in Column F and both change on a daily basis.)

Help would be greatly appreciated.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi pkew22 - You might try the code below which takes the visible cells in Range("A1:D20") and copies them to the Destination Ranges starting at F1. Hope this helps.

Code:
Sub pkew22_Copy_Paste_Visible()
Range("A1:D20").SpecialCells(xlCellTypeVisible).Copy _
    Destination:=Sheets("pkew22").Range("F1")
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top