Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 02-08-2010, 08:15 AM
junada0 junada0 is offline
Registered User
 
Join Date: 16 Aug 2009
Location: Sheffield
MS Office Version:Excel 2007
Posts: 22
junada0 is becoming part of the community
Post Form picker and copy text to another sheet

Please Register to Remove these Ads

Hi Guys,

Hope you could help, I would like to create a spreadsheet that when a selected number of cells are set to "yes" then a lookup to a small table should then copy 3 columns of text at the side of that table, if the criteria is met with a "1".

If either f2, f3 or F4 = "Yes" then look up A9:c16 and if there is a "1" in respective column then copy all text to the right in columns D, E & F to "result" work sheet.

I am trying to create auto copy of selected data without the use of a filter, by pressing a cell / button

I have added an example, hope this makes sense.

Many thanks as always.
Attached Files
File Type: xlsx Task Picker 1.0.xlsx (11.0 KB, 3 views)

Last edited by junada0; 02-08-2010 at 12:18 PM.
Reply With Quote
  #2  
Old 02-08-2010, 09:24 AM
blane245 blane245 is offline
Valued Forum Contributor
 
Join Date: 20 Feb 2009
Location: Melbourne, FL
MS Office Version:Excel 2003
Posts: 285
blane245 has an addiction to Excel
Re: Form picker and copy text to another sheet

Try this one. I've put a button on cell E6 that will run a macro. Note that the macro writes the results to Results2 rather than result so as not to blow away your example.Task Picker 1.0.xls
__________________
Bob
Tip my scale if my answer helped you.
Reply With Quote
  #3  
Old 02-08-2010, 11:44 AM
junada0 junada0 is offline
Registered User
 
Join Date: 16 Aug 2009
Location: Sheffield
MS Office Version:Excel 2007
Posts: 22
junada0 is becoming part of the community
Re: Form picker and copy text to another sheet

Hi this is great, and works fine, really appreciate your help.

However could I ask one more favour, as I am trying to adapt your very good code into a more specific document that has many more columns.

I am no expert with VBA, but I did try to edit this so that I could add say 2 more methods i.e Method D & E, but when I added 2 extra columns ater C:C I got lost in the code.

Enclosed version 3.xls to see my errors..


Appreciate any help
Attached Files
File Type: xls Task Picker 3.0.xls (47.5 KB, 1 views)
Reply With Quote
  #4  
Old 02-08-2010, 11:58 AM
blane245 blane245 is offline
Valued Forum Contributor
 
Join Date: 20 Feb 2009
Location: Melbourne, FL
MS Office Version:Excel 2003
Posts: 285
blane245 has an addiction to Excel
Re: Form picker and copy text to another sheet

You were using the wrong range for Methods (it is column I not F. Also, you need to watch the row and column indeces in the loops. There offsets were wrong.

Task Picker 3.0.xls
__________________
Bob
Tip my scale if my answer helped you.
Reply With Quote
  #5  
Old 02-08-2010, 12:17 PM
junada0 junada0 is offline
Registered User
 
Join Date: 16 Aug 2009
Location: Sheffield
MS Office Version:Excel 2007
Posts: 22
junada0 is becoming part of the community
Re: Form picker and copy text to another sheet

Silly mistake on my part, many thanks for this, will mark as solved.

Cheers
Reply With Quote


Reply

Bookmarks

Tags
copy , filter , form , lookup


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump