Link to home
Start Free TrialLog in
Avatar of Svgmassive
Svgmassive

asked on

Visible cells to a New workbook

I need a function that will create a new workbook from the visible cells only.
thanks
ASKER CERTIFIED SOLUTION
Avatar of Skylar
Skylar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
A small change to Skylar-Barlow's code for no credit.

When done this way Dim tBook,sBook as Workbook, tBook is defined as a Variant and not as a Workbook, and since Variants are the slowest type of variable, a very small, probably unnoticeable, amount will be added to the time the code needs to execute, so do Dim tBook As Workbook ,sBook as Workbook instead.
Avatar of Svgmassive
Svgmassive

ASKER

i used the autofilter copy so rob and skylar i will spit the point