PC Review


Reply
Thread Tools Rate Thread

copy and paste challenge

 
 
Terry Freedman
Guest
Posts: n/a
 
      6th Aug 2008
Hi

I'd be grateful for any help on trying to do the following, please.
I've had a go at it myself, but am sort of getting lost. I've looked
in previous posts, and can't find one that addresses this exact
problem, and have found it hard putting together a macro from
different "bits". Basically, I need to be
able to do this:

1. Select from a range of criteria (eg cells in column D on Sheet1 are
not blank)
2. From the data that meets that criterion, copy/paste the cells from
particular columns from Sheet1 to the next blank worksheet
3. go back to step 1, but select a different criterion

If this is possible, I'd be grateful for some help.

Thanks very much, and apologies for cross-posting

Terry
 
Reply With Quote
 
 
 
 
Skinman
Guest
Posts: n/a
 
      6th Aug 2008
Not sure of an elegant way but if you set up column D with auto filter
turned on in a header
for your data, name the range with the data, use the filter to get the data
you want
Then a macro to do the rest:-
On the sheet you are moving data to, select the cell in the first instance
where you want
the data to start. I set it so each time you run the macro it will paste to
the column
on the right of the last paste. If you want it below each time change the
offset with End (xlDown)
I named the range "send" Also replace sheets with what your sheets are named

Sub Transfer_Data()
Application.ScreenUpdating = False
Application.Goto Reference:="send"
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.Copy
Sheets("Sheet2").Select
ActiveCell.Select
ActiveSheet.Paste
ActiveCell.Offset(0, 1).Range("A1").Select
Sheets("Sheet1").Select
Application.CutCopyMode = False
Application.ScreenUpdating = False
End Sub
As I saw no expert help I thought I would try to help, Please excuse this
amatuer attempt
Skinman

"Terry Freedman" <(E-Mail Removed)> wrote in message
news:45c071ec-e381-4ded-b849-(E-Mail Removed)...
> Hi
>
> I'd be grateful for any help on trying to do the following, please.
> I've had a go at it myself, but am sort of getting lost. I've looked
> in previous posts, and can't find one that addresses this exact
> problem, and have found it hard putting together a macro from
> different "bits". Basically, I need to be
> able to do this:
>
> 1. Select from a range of criteria (eg cells in column D on Sheet1 are
> not blank)
> 2. From the data that meets that criterion, copy/paste the cells from
> particular columns from Sheet1 to the next blank worksheet
> 3. go back to step 1, but select a different criterion
>
> If this is possible, I'd be grateful for some help.
>
> Thanks very much, and apologies for cross-posting
>
> Terry


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Challenge: Copy across surname notyetnoob Microsoft Excel Worksheet Functions 2 1st Aug 2006 03:31 AM
Help: Reformatting worksheet: paste special challenge =?Utf-8?B?QmV0dGVyZ2FpbnM=?= Microsoft Excel Misc 2 17th Sep 2005 12:44 AM
How do I get copy/paste to copy/paste text and not the whole page =?Utf-8?B?Q2Fyb2wgSi4=?= Microsoft Word Document Management 1 6th May 2005 09:03 PM
Copy & Paste Object without using the Excel Copy Paste functions =?Utf-8?B?R2Fueg==?= Microsoft Excel New Users 0 10th Mar 2004 07:06 AM
Copy & Paste Object without using the Excel Copy Paste functions =?Utf-8?B?R2Fueg==?= Microsoft Excel Misc 0 10th Mar 2004 07:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:10 AM.