Solved

cut filtered-selected rows from a sheet1 then paste in another sheet2

Posted on 2013-01-01
5
615 Views
Last Modified: 2013-01-05
Hi,
I have sheet1 with columns and rows, and did a filter in column A (select first row middle one and last row), when i come and cut these selected rows and paste them in sheet2 , it paste me them. but in sheet1 all the other unselected row vanished.
 
i need to fix this problem by using vba i need to using this cut into a macro.
thnx in regard.
0
Comment
Question by:drtopserv
5 Comments
 
LVL 20

Expert Comment

by:Russ Suter
ID: 38734598
Use Copy and Paste instead of Cut and Paste then the rows will remain in Sheet1 also.
0
 
LVL 31

Expert Comment

by:Rob Henson
ID: 38736230
If you then want to get rid of the filtered rows (and only the filtered rows) deleting the rows while filtered will only delete the visible rows.

Thanks
Rob H
0
 
LVL 29

Accepted Solution

by:
gowflow earned 500 total points
ID: 38739260
Is this what your looking for ?
Just make sure your macroes are activated and filter this sample file in Sheet1 under any column or combination and activate the button Transfer to Sheet2 and check the results in Sheet2 and then remove the filtering in sheet1 and also check it.

Let me know if it answers your question.
gowflow
TransferFilteredRows.xls
0
 

Author Closing Comment

by:drtopserv
ID: 38747061
Perfect0!!
thanx alot thats what i want exactly :]
0
 
LVL 29

Expert Comment

by:gowflow
ID: 38747109
Your welcome my pleasure glad I could help you.
gowflow
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now