Link to home
Start Free TrialLog in
Avatar of Svgmassive
Svgmassive

asked on

Copy non contiguous range

I would like to copy the non contiguous date range to another column
Book2.xlsb
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

In general you can do it like this where range D19:D32 will be cleared along with cells D32, D36 and D46. Note the the dollar signs in the following are usually not necessary.

Range("$D$19:$D$32,$D$36:$D$46").Copy

Open in new window

Do you like to do it with a macro or just manually?
If you want a formula for column R, you may try this...

In R7
=IF(ISNUMBER(A7),A7,"")

Open in new window

and then copy it down and custom format the formula cells with "mm/dd/yy".
Avatar of Svgmassive
Svgmassive

ASKER

I would like to use a macro
ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

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
Good answer Subodh Tiwari
Thanks Alfredo! :)