VBA - How to Select/Copy first 12 Visible cells on filtered data (minus header A1)

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
888
Office Version
  1. 365
Platform
  1. Windows
Hello

I have googled this question but have yet to find something that works and seem to be having an off day...

I have a table called "DATA" and what I am looking for is a VBA code that will select the first 12 cells in column A (minus the header in A1), copy those visible cells and paste them into 2 separate spreadsheets.

How would I go about selecting the first 12 visible cells in column A on a filtered table?

Thank you to anyone who can help :)

Carla
 
Then that would select A2 even if it is hidden.

I have decided to go with the most recent code I posted and just accept the header and up my selection to 13.
I was hoping there was an easier solution but the Dim looper As Integer code I found seems to be doing what I need with the exception of it grabbing the reference point.

Thank you for your help :)
 
Upvote 0

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Carla

Are you sure your code will only copying the first 12 filtered values?
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,178
Members
449,071
Latest member
cdnMech

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